• Resolved lmann

    (@lmann)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter lmann

    (@lmann)

    Took a different approach. Thanks anyways.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘child links disappear when clicked’ is closed to new replies.