• I’m wp_list_pages and for some reason the current page you’re on keeps dissapearing. I’m not sure why it’s happening as it doesn’t seem to have happened with any other site I’ve done.

    Here’s the code:

    <?php wp_list_pages('title_li=&child_of=7&depth=2&exclude=146,148,150,'.$post->ID.''); ?>

    Any ideas why it might be happening like that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

    Thread Starter chazVnG

    (@chazvng)

    Good point, forgot about that. Here’s the link to the page: https://omnispring.vineandgrain.com/

    Specifically I’m concerned about the dropdown under services. When you click on any of those child pages, the current page disappears.

    Sorry to state the obvious but that would be because as soon as you select a child page, you’re not on the parent In the Services page any more, yes? Perhaps you need to look at setting up a custom navigation menu instead? In theory, that would give you more CSS specificity.

    Thread Starter chazVnG

    (@chazvng)

    In that case wouldn’t it be the same case if I was in any of the other top level pages?
    I put the child_of in there so it would always show those child pages. Is there something I need to change in the string?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_list_pages not showing the current page for some reason.’ is closed to new replies.