conditional tags for the output of a plugin

You code is not wrong, probably the only problem is that you are using is_home() when you need is_front_page. However, just for a tip, I want show how your code can be semplified a lot: class donor_pdf_plugin extends WP_Widget { static $fields = array(); // Constructor function donor_pdf_plugin() { self::$fields = array( ‘link’ => __(‘Menu … Read more

Different page content for default pages on WordPress Multisite

Make your $default_pages array being associated array, where a key is page title and a value is page content. Then modify your foreach loop to fetch $key => $value pairs and use it for the wp_insert_post function. Like this: function default_pages( $blog_id ) { $default_pages = array( ‘Contact’ => “This is your ‘Contact’ page. Enter … Read more

How can I show a .swf file?

The below link would help in placing the swf file in your home page http://www.w3schools.com/html/html_object.asp You could mention the path as /wp-content/uploads/your.swf or you could use wp_upload_dir(); References : http://codex.wordpress.org/Function_Reference/wp_upload_dir

Set featured link not showing

your theme needs to support Post Thumbnails to have the featured image meta box… Add this to your functions.php file: add_theme_support( ‘post-thumbnails’ ); See http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails

Adding data to options table

This is an expansion of my comment on OP: function is_forum_subscribed($user_ID) { if($user_ID) { $useremail = $this->get_userdata($user_ID, ‘user_email’); $list = get_option(“mf_forum_subscribers_”.$this->current_forum, array()); if(in_array($useremail, $list)) return true; } return false; } } You can call this function like this, instead: is_forum_subscribed($player->ID);

Can figure out how to get wordpress to go .com not .com/directory

try Install WordPress in a subdirectory, such as /2012. In your root folder (not the subdirectory folder), download and open your .htaccess file. Add the following to your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$ RewriteRule ^(/)?$ blog [L] In the above code, change the “YourDomain.com” value to your root domain. In the above code, … Read more