• I’m currently using the wp_list_pages to display my pages in a navigation bar and using the fact that it applies a “current_page_item” it so that I can make the page I’m on highlighted (through my css)

    All works fine, except when I drill down in the blog from a post, or into a category then nothing is highlighted in the Nav Bar.

    I would like the blog page to stay higlighted in these situations.

    Is there a plugin I can use or do I need to modify/make my own wm_list_pages??

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter aodhan

    (@aodhan)

    This is what i did to resove this issue I stopped usint the wp_list_pages and used the plugin wp_pages_nav:

    <?php /* wp_list_pages('depth=1&title_li=0&sort_column=menu_order'); */?>
    				<?php if(function_exists("wp_pages_nav")) {
    					if(is_page() ) {
    						wp_pages_nav("show_all_parents=1&sort_column=menu_order");
    					}
    					else
    					{
    						wp_pages_nav("show_all_parents=1&sort_column=menu_order&current=24");
    					}
    				} ?>

    Seems to work fine.

Viewing 1 replies (of 1 total)

The topic ‘how to higlight a page in the nav bar when drilling down’ is closed to new replies.