Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I noticed something when I var_dump(); on a single page in wordpress. Its not linked to its archive page at all or any parents. Is it at all possible to get the single pages archive information as if it were a parent page?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

To get the archive link of a post type use get_post_type_archive_link():

print get_post_type_archive_link( get_post_type( $GLOBALS['post']->ID ) );
share|improve this answer
thank you very much – Robert Aug 8 '12 at 18:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.