Home › Forums › Back End › WordPress: Displaying sub-pages only for the current page › Re: WordPress: Displaying sub-pages only for the current page
August 10, 2009 at 6:09 pm
#62027
davesgonebananas
Member
Actually this can be achieved using just a little css – and it will work exactly as in your example too.
Code:
Code:
ul#pagenavi li ul { display: none; }
ul#pagenavi li.current_page_item ul, ul#pagenavi li.current_page_ancestor ul { display: block; }
ul#pagenavi li.current_page_item ul, ul#pagenavi li.current_page_ancestor ul { display: block; }