child links disappear when clicked
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘child links disappear when clicked’ is closed to new replies.