Excluding Categories from Your WordPress RSS Feed

Chris — March 1, 2009

As a supplement to my previous post about having a separate template for a specific category I thought I should let you know how I excluded a category from a RSS feed. Say you have a news category that looks different and says something different than the rest of your blog, you might want to [...]

Categories: Web Development,Wordpress — Tags: , , ,

Use Different Single Post Templates for Different Categories in WordPress

Chris — February 24, 2009

I recently had to figure out how to use a separate post template for a specific category like you can with pages in wordpress. I found a solution at nathanrice.net. Just add the following code to you functions.php file: <?php add_filter(‘single_template’, create_function(‘$t’, ‘foreach( (array) get_the_category() as $cat ) { if ( file_exists(TEMPLATEPATH . “/single-{$cat->term_id}.php”) ) [...]

Second Loop in WordPress

Chris — January 13, 2009

Twice today I wanted, tried and failed to create a loop to list all the children pages of the current page in wordpress. Adn yes I know I could use “wp_page_menu” or “wp_list_pages” but the problem is I wanted to include custom fields in the output. Look at my works page. I wanted each website [...]

Categories: Web Development,Wordpress — Tags: , ,