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'm looking to set a static page as the parent for a custom post type. Right now the parent page is showing all archives for that custom post type.

For example http://mysite.com/cpt would show content from page ID 20.

Is this possible?

Edit: I created a new Page with the slug /cpt, it did not override the custom post type archive parent.

share|improve this question
up vote 0 down vote accepted

Create a new template file named archive-cpt.php, where cpt is the slug of your CPT with the custom content and upload in your theme root.

More on Template Hierarchy.

share|improve this answer

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.