About Pippin Williamson

Pippin Williamson is a WordPress developer based in Lawrence, KS. WordPress is his expertise: custom theme / plugin development, e-commerce solutions, content management, and everything else WordPress.

His personal site can be found at PippinsPlugins.com. There he publishes frequent WordPress tutorials, tips and tricks. He also host a variety of his own free WordPress plugins. Join the site and receive member only benefits, including exclusive tutorial access and source file downloads.

Find more about me on:

Here are my most recent posts

Monthy Custom Post Type Archives

Anyone who has played around with WP 3.0+ custom post types knows that they . . . can be a pain at times, particularly when it comes to custom post type archives. Thankfully a few people have taken it upon themselves to develop plugins that care care of many of the grievances of custom post type archives. Brought to us by rATRIJS, a developer from Scotland, Custom Post Type Archives is a top-notch plugin that fills many of the gaps left by the core WP developers. This plugin will enable custom post type archives (also yearly, monthly and daily) together […]

Adding Plugin Action Links

Plugin action links are the links that appear just below the plugin name in your WP plugins menu, such as “Edit” and “Activate”. Have you ever seen those plugins that have somehow added additional links to that list, such as “Settings” or “Donate”? It’s actually quite simple. First, we are going to create a function that will display our links. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 function our_plugin_action_links($links, $file) { static $this_plugin;   if (!$this_plugin) { $this_plugin = plugin_basename(__FILE__); }   // check to make sure we are on […]

Stylesheet Per Page WordPress Plugin

Just released a few days ago, Stylesheet Per page for WordPress, by jkohlbach, looks to be a very promising plugin. It allows you to create specific stylesheets for individual posts and pages, and it even supports custom post types. Having custom stylesheets for individual posts/pages is extremely useful, especially when you wish to create art directed posts. The plugin also provides you to ability to create IE-specific stylesheets. How to Use It To use this plugin, just add stylesheets in the following formats to your theme’s base directory or a “css” subdirectory inside your theme’s base directory: For pages use […]

Custom Post Type Publish Action Hook

This is an extension of the post I wrote a while back that described how to perform an action whenever a post is published. The action hook used in that post was for regular WordPress posts and looked like this: 1 2 3 4 5 6 7 8 // function to be executed when a post is published function run_when_post_published() { // your function code here } add_action(’new_to_publish’, ‘run_when_post_published’); add_action(’draft_to_publish’, ‘run_when_post_published’); add_action(’pending_to_publish’, ‘run_when_post_published’); Well, what about custom post types? Unfortunately, the hooks above don’t fire when a custom post type is published. However, thankfully, we have another nearly identical hook […]

Four Very Useful WordPress Snippets

Each of these snippets are extremely useful for accomplishing a variety of tasks. Get Page ID by Page Name 1 2 3 4 5 6 function get_ID_by_page_name($page_name) { global $wpdb; $page_name_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = ‘".$page_name."’"); return $page_name_id; } You can use this function in scenarios where you want to display link to a particular page, but would prefer that WordPress generate the link for you, rather than just typing it out yourself (never a great idea). For example, maybe you want to link to your about page: 1 2 $page_id = get_ID_by_page_name(’About’); wp_list_pages(’include=’ . $page_ID); […]