I have a piece of code that splits my wp_list_pages
navigation into two columns:
One of my customer has many pages that have the same titles, although their content is different.
This code works well to display child pages of the parent page while viewing both the parent page and child page. It doesn’t apply the current_page_item
CSS class to the parent while viewing it (and only it, not interested in it being applied while on the children) – any suggestions?
I’m looking to style my wp_list_pages with a span class. I’d like to give it a unique class so that I can give each a specific icon.
I am looking for a way to output all page IDs from the following menu:
I just can’t find a way to make it possible to show only current parent items down to current page item in a vertical menu the “wordpress way”.
In some cases it might be useful to use multiple post & page parameters in your WP_Query
object. In my case, I would like to display children of a parent page including the parent page itself.