Posted By

davebowker on 01/07/09


Tagged

page wordpress item current currentpageitem


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

davebowker
umang_nine
raondo
tmbrenneke


WordPress Current Page .current_page_item


 / Published in: PHP
 

Better way to echo a .currentpageitem class on a list nav.

  1. <ul><li <?php if (is_page($post->ID)) { echo'class="current_page_item"'; } ?>>Menu Item 1</li></ul>

Report this snippet  

You need to login to post a comment.