More often then we would like to admit, we are unwilling or unable to submit our WordPress plugins back to the repository for everyone to use. But how do you exclude your plugin from WordPress updates? As usual, the answer is with filters. Check out the code below to see how.
function exclude_my_plugin( $r, $url ) { if ( 0 !== strpos( $url, 'http://api.wordpress.org/plugins/update-check' ) ) >return $r; $plugins = unserialize( $r['body']['plugins'] ); unset( $plugins->plugins[ plugin_basename( __FILE__ ) ] ); unset( $plugins->active[ array_search( plugin_basename( __FILE__ ), $plugins->active ) ] ); $r['body']['plugins'] = serialize( $plugins ); return $r; } add_filter( 'http_request_args', 'exclude_my_plugin', 5, 2);
Attribute: This code is originally from a lead WordPress Developer, Mark Jaquith (thanks Mark!)
But how does this exclude your plugin from the update? First, it takes the HTTP Request args and unserializes the ['body']['plugins'] part of it. From there, it’s as simple as unsetting your plugin from the array, then re-serializing the request args. Also the first part checks to see if this is actually and update check. If it’s not, you exit the function.
One of the smaller (yet still welcome) features that snuck it’s way into WordPress 3 was custom backgrounds. In most cases, this allows you to change the background picture and color of your blog (Note: This may not work if your theme has a background already). This is great, because you don’t have to know CSS to make it work. Really, all you need to do is add the following code to your theme’s functions.php file.
add_custom_background();
After that, under the Appearance menu you should have a “Background” option link. When clicked, it will look like this.
From there, upload your custom background and bask in your own glory!
Aug 10
28
It’s not easy knowing what to write about. When you run a niche site like this, it’s even harder. One of the tools I rely heavily on to tell whether I should invest the time writing a post or not is the Google Keyword Tool. The Google Keyword Tool allows you enter key words, and then it tells you the monthly search volume on those words, the competition, and even monthly local searches. But it doesn’t stop there, it gives you other keywords that may be relevant to you and displays statistics on those as well. By far though, the most important feature is the competition rating. It lets you see if you should even bother trying to go after that niche or not.
Aug 10
28
The default behavior in WordPress when an image is clicked is to open another page of your blog. Sometimes though, you want a more elegant solution. One of the more trendy ways to open an image of the past few years has been using something called a lightbox. A lightbox dims the screen via a modal window, and then displays your image. If you would like something of this nature to be your default image behavior, check out Lightbox 2 (http://wordpress.org/extend/plugins/lightbox-2/). Don’t just take my word for it though, try out this WordPress lightbox by clicking the image below.
Since version 2.9 of WordPress, it’s been possible to have post thumbnails. Once these thumbnails have been set, they can be used throughout your site whenever your post is called. Using post thumbnails is easy, and so is enabling them. It’s only a few steps, so let’s get started.
The first step to using post thumbnails in WordPress is to enable them. To do that, all you need to do is put the following in you themes functions.php file.
add_theme_support('post-thumbnails');
Once you’ve added this code, you should see a box underneath “Post Tags” in the Edit Post screen.

Now that you have the featured image box in you WordPress Edit Post area, you need to click the “Set featured image” link. Once you do that, you’ll be greeted with the usual WordPress image upload screen. Select the image you would like to upload, and then let WordPress do it’s image crunching magic. Now comes the most important part, you need need to click “Use as featured image”.

Once you’ve done that, you’ll get a thumbnail version of the photo you just uploaded in the lower-right hand corner of you Edit Posts screen.
Obviously post thumbnails aren’t much use to you if nobody can see them. To see them in your theme, you need to call the following function while inside The Loop.
<? the_post_thumbnail(); ?>
That’s it! It’s now easier than ever you have each one of your posts have a thumbnail. If you have any questions, please leave them in the comments.
Aug 10
26
I was recently checking out the new version of Digg, when I hit their error page.
Nice job leveraging Oregon Trail guys.