Dynamic menu highlighting, wp_list_pages and sub-pages
current_page_itemclass that is generated by the wp_list_pages tag when viewing a Page I could apply the “knowledge” in the Dynamic highlighting Codex article easily.
However, if the Page has a child Page (aka sub-page) it gets highlighted, too – because it is listed in as a nested list inside the “current_page_item” list item.
Any workaround not to get the children highlighted?
- The topic ‘Dynamic menu highlighting, wp_list_pages and sub-pages’ is closed to new replies.