I’ve created a custom sidebar that grabs the post parent’s pages:
query_posts("post_type=page&post_parent=6");
I’d like to grab the title of the post_parent (i.e. “About”). the_title won’t work because it’s the title of the child pages.
How can I output the post_parent title?
It looks like you’ve already got the ID of the parent post, so you can just use this:
(Insert your parent post id at $parent_post_id)
Ref: http://codex.wordpress.org/Function_Reference/get_post