Category Archives: WordPress

Different template for different category, single post

To use a different template for a particular category, just create another template page named category-nameofyourcatetory.php. WordPress automatically picks up on it. It’s a little more complicated to assign a different single post template for a particular category. In single.php, … Continue reading

Show only post excerpts on twentyten homepage

This solution is simple, but requires a modification to a template page. In loop.php, change this line: to this: That’s it. Will work like a charm. Digg this postRecommend on FacebookTumblr itBookmark in BrowserTell a friend

Adding jQuery to WordPress

You could add your custom jQuery to Wordpress by using the script tag in your head template, but this method can cause conflicts with JavaScript in other Wordpress plugins.

Instead, use the wp_enqueue_script, the Wordpress-friendly method. You will need direct access to your Wordpress files. Continue reading