How to add content to an Archive template specifically for a custom post type

Question

I’m on wordpress 5.9+ and creating CPT’s has become relatively easy. But having a landing page for a CPT is new grounds for me.

  • I have successfully created a custom post type called Career Finders
  • I have created an archive template for this CPT, named archive-career-finders.php
  • I can see that template being used from the browser when I go to my local URL my-site.com/career-finders

But how do we create either a page or post from WP-admin, that connects to this archive template, and “is” this landing page for the CPT?

I want editors to be able to add content to this landing page through wp-admin. This is where I am stuck…

My initial thought:
On this new archive template, do I use the WP-Query loop to get that “1” page or post that represents the content needed to be displayed here, and also have that page set to Private? Is that the way to go?

Many thanks!

0
klewis 5 months 2022-03-15T15:42:25-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse