Reputation: 105
I am outputting a list of children menu options in WordPress which I'm able to do successfully using wp_list_pages('child_of = 91');.
91 is the ID of the parent whose children I'm outputting. However, I'd like to display the actual name of the parent as well and not just the children. I can McGuyver the scenario if I had to, but I'd like to learn how to do it properly :)
Thanks in advance for the help.
D
Upvotes: 0
Views: 945
Reputation: 4204
Tried something like this?
wp_list_pages('child_of = 91&title_li=&include='.$post->post_parent);
Upvotes: 1