Dynamically highlight current page
October 20, 2008
The function used to create a list of published pages, wp_list_pages(), automatically add a class current_page_item to the list item corresponding to the page you’re viewing. You just have to add the .current_page_item class to your style.css file: /* Style the list element */ li.current_page_item{ background:#eee; color:#777; } /* Style the link element */ li.current_page_item a{ text-decoration:underline; } Read More →
Converting Your Category Pages to Display Post Titles
May 12, 2008
I’ve always liked the idea of showing only the post titles on your category pages. If you are good at making post titles, this should help someone navigating your categories to find what they are looking for. First, you’ll want to open your archive.php file and find the post loop. It usually starts with this code (or something similar): <?php if (have_posts()) : while (have_posts()) : the_post(); ?> You’ll want to delete everything from that code down to the end of the loop, which usually ends with this: <?php... [Read the full story]



















