I want to display the parent and child pages of a specified ID to show in a sidebar on single posts.
My pages are using topmost ancestor and children, which is working great, but when it comes to viewing single posts, it is blank.
I’ve tried using child_of where I can specify the parent page ID of the children I want to display, but it isn’t working (returns nothing).
Can anyone PLEASE help me to get child pages (of a specified page ID) to display in a sidebar that is used on single post?
Just to clarify, I DON’T want to display POSTS on my single.php sidebar. I DO want to display a specified PAGE and its children.
Thanks for any help.
- The topic ‘child_of not working’ is closed to new replies.