Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.