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  

Comments

RSS Icon Subscribe to comments
Posted By: Jacky888 on August 6, 2018

universal drivers for mobile phones computer http://bestdriversforpc.com/article/universal-drivers-for-mobile-phones-for-computer

You need to login to post a comment.