[resolved] child links disappear when clicked (3 posts)

  1. lmann
    Posted 9 years ago #

    I have problem when child links are clicked on. Here's the situation:

    I have a sidebar that only lists child pages of a particular parent page. For example I have a parent page called "Articles" and when clicked, goes to a page template that only lists child pages of "Articles" in the sidebar. This is the code Im using below to achieve this:

      <?php $current_page_id = $wp_query->post->ID;
      wp_list_pages("title_li=&child_of=$current_page_id&depth=1"); ?>

    Works great but for a small problem. Whenever I click a child link on the sidebar all the other child links disappear. Anyone having this problem?

  2. FruitFly
    Posted 9 years ago #

    A link to the site would help a lot, so we can see it in action. What do you mean by disappears? When you click the link are you taken to the correct destination?

    I don't know that I can solve the problem, but that should help someone get an idea of what's happening.

  3. lmann
    Posted 9 years ago #

    Took a different approach. Thanks anyways.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.