Hello everyone
I'm trying to tweak a tiny bit a wordpress, but i am level 0 in php, so i kinda suck :/
I want to add a custom 'tweet this' button (i know there already is a gazillion of them, i just wanted to do it on my own, for fun)
So, i'm trying this :
<a href="http://twitter.com/home?status=<?php strip_tags(the_excerpt()) ?>...
the question is related to wordpress coding only. If it possible, the code solution is able to use inside a wordpress blog.
$wpdb is only work with database that been declare in wp-config. So it possible to clone $wpdb then use the clone to access different database ?
...
wpdb class in wordpress is used for making connection to database.
is there any substitute to this class in PHP repository?
So i can access different database then the original database that have been initiate in wp-config ?
...
Hey all,
Quick question about Wordpress PHP:
I am writing a theme and I want to display (on the main index page) one icon if my post has one tag, and another if it has the other.
I wrote something like
<?php has_tag('pc') { ?><img src="<?php bloginfo('template_directory'); ?>/images/pc-icon.gif"><?php }; ?>
<?php has_tag('mb') { ?><i...
I'm using Eclipse to write php and naturally I get color coding like all IDEs do.
How do I get the same effect in a blog?
See this example (scroll down to see the code colors), he has full colors, green, red, blue, pretty acceptable I'd say
http://www.tellinya.com/read/2007/06/15/20.html
Is there something that's standalone PHP that...
I have a WordPress website that needs to have its articles in multiple languages. The authors will be writing the articles themselves so I don't need an automatic translation tool. The plan is that a user can choose a language from a drop-down list which will then show the different language. Any ideas on how I can do this?
...
Hi
Anyone know of a way to remove the main editor from the page edit screen? And not just with css. I've added a few other meta boxes with the tinymce and they collide with the main one.
I have a class that removes other meta boxes from the edit screen, but I cant get rid of the main editor this way. I've tried to add 'divpostrich' and...
Hi there,
I am working on a blog for my friend. I want to gift him the blog on his birthday.
Just for some fun I want to restrict access to the blog. e.g.
The website.
www.myfriend.com opens with a splash screen. The screen has his picture and a question regarding him.
these questions can be.
If you know me....
What is my nickname...
Hi,
I have a wordpress blog and I need to make one of the pages secure. I have been told to make the link to that page point to https://claimpage.html as opposed to http://claimpage.html.
The problem is I don't actually create the menu that links the user to the individual pages. This is done automatically by the code in the backgrou...
A few of my customers are reporting that they are getting "500" Internal Server errors lately. I believe it might be caused by various plugins they are using but each time, the hosting company (multiple hosts) are saying that the htaccess file had to be replaced to fix the issue.
I'm submitting the code below from my custom theme becaus...
I'm trying to get content from an RSS2 feed from one of my sites and use it in another site.
The feed is here. And the code I'm using is taken from this nice site and has been modified like the following:
$doc = new DOMDocument();
$doc->load('http://tripleax.com/john/?feed=rss2');
$arrFeeds = array();
foreach ($doc->getElementsByTagNa...
Hi,
Because of weird security policies of my hosting provider I have to define my rewrite rules in /etc/apache2/conf.d/examplesite.conf instead of writing them on an .htaccess on the www folder of that site.
What I'm trying to do is setup a Wordpress Mu server (http://mu.wordpress.org/forums/topic/17349 ) and so far its working on a 50...
I have created a searchfrom.php for wordpress but then it's giving me a false returns you can try the search yourself here
Here is the code for my search form
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<input type="text" class="form-text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
<in...
I'm helping a colleague with a recurring issue that's just started happening to multiple sites of his after upgrading to the latest release of WP... He had 4 sites go down today. Here's the message he received back from the server host...
The coding that wordpress posts into
the .htaccess file is basically being
re-pasted in a ma...
//deep linking
$("document").ready(function(){
contM = $('#main-content');
contS = $('#second-content');
$(contM).hide();
$(contM).addClass('hidden');
$(contS).hide();
$(contS).addClass('hidden');
function loadURL(URL) {
//console.log("loadURL: " + URL);
$.ajax({ url: URL,
ty...
I need a way to limit the meta box to a single page (ID=84) ... if I do the following it works, but sbumit data does not go through and data is not saved ...
add_action('admin_init','violin_init');
function violin_init()
{
if ($_GET['post'] == '84')
{
wp_enqueue_style('violin_admin_css', VIOLIN_THEME_PATH . '/custom/met...
Currently I am creating a project with CodeIgniter that is contained within a subdirectory of my domain. For this example we'll call it domain.com/test.
I also have Wordpress installed on this domain, and all of its files are in the root. For instance, if you navigate to my domain.com then it pulls up the Wordpress blog. I currently hav...
I have added a function to functions.php on my theme.
function insertAds($content) {
$content = $content.' add goes here';
return $content;}
add_filter('the_content_feed', 'insertAds');
add_filter('the_excerpt_rss', 'insertAds');
The problem is that I'm having the add displayed under each content, and not at the end of the rss page...
I want to get the content which are displayed by a particular page in WordPress back-end.
Say, for [ROOT]/wp-admin/profile.php
I want to remove the First Name and Last Name fields from this page. So, I can run a str_replace() to remove the lines.
In this case, I have $search and $replace ... but I need $subject [Ref - http://php.net/m...
Hi there folks,
I'm researching the prospect of incorporating a blog into my site. Currently, my site is written using the Zend Framework so it's not just a case of using Wordpress and that be the end of it.
I was wondering. Has someone already done what I'm thinking of doing and written a blog infrastructure with comments and so forth...