Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Very easy way to get show the current page you're on including the homepage in Wordpress-->
- <ul id="nav_bar">
- <li <?php if($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] == 'someurl.com/') {echo 'class="current_page_item"';}?>><a href="/" >Home</a></li>
- <?php wp_list_pages('title_li='); ?>
- </ul>
Add Comment
Please, Sign In to add comment