Francisco J. Gutierrez

WordPress tips #1

(this is all in PHP so assume that it has the opening and closing php tags around them)

Get current year automatically

echo date("Y"); 

only show posts from a certain categories on home page

place right before the loop (very first thing in loop.php or before the “If have posts” in the index.php)

 if (!is_paged() and is_home()) {
query_posts('cat=6,9,5,4,7');
}
wp_reset_query();

you can find the category ids by going to your category section under Posts in the admin/dashboard and hovering over each category title and looking at the link (most browsers show this on the very bottom left of the window)