WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.