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;
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?
- The topic ‘child links disappear when clicked’ is closed to new replies.