I am using WordPress to develop a picture gallery website. I have albums and galleries, with different permalinks...
http://url.com/gallery, but only the albums appear in the main navigation.
The code for my navigation looks like:
<div id="nav"> <ul> <?php wp_list_pages("title_li="); ?> </ul> </div>
Because I am using the
wp_list_pages() function, the current page that you're on gets a
current_page_item class added to the
The gallery page is not part of the main navigation, so when someone is viewing one of the gallery pages, nothing is highlighted in the main navigation.
I'd like to highlight the album page in the main navigation when someone is viewing a gallery page. Because each gallery is in album, it makes sense to highlight that page.
Can anyone point me in the right direction?