current_page_parent is wrong?!
-
I’m using the a call to
wp_list_pages()
in my sidebar and would like to setup some JS/CSS to hide all the sub-pages of other parent-pages. My page structure is:# Visitors’ Guide (
page-id-7
)
* Events Calendar
* Island News
* Services
* Island History & Culture
* Attractions
* Accommodations
* Find Local Businesses
* Directions & Travel Info
# Getting Here
* Island Map
# About
* Site Map
* For AdvertisersFor some reason, on some pages that are children of Visitors’ Guide,
.current_page_parent
is assigned to the wrong li.For example:
– when Island News or Events Calendar are the current page, Island news is assigned.current_page_parent
– when Directions & Travel Info is the current page, Visitors’ Guide is assigned.current_page_parent
(as it should be)The wierdest thing is that Events Calendar & Island News have a div
#content
with the class.parent-pageid-7
(as it should be), so it’s not messed up everywhere.Where do you think this is getting screwed up? (Deleting the Island News page and re-creating it did not help.)
- The topic ‘current_page_parent is wrong?!’ is closed to new replies.