Custom Post Type archive page

[ad_1]

Looking for advice on the best way to do this. I feel like it’s always been messy and I’m always left thinking “there’s gotta be a better way?!”

For example, I have a “services” custom post type. I want the permalink to be “/services/[post_slug].” I want /services to exist and be editable as a traditional page (right along side home, about, contact, etc.).

What’s the best way to make that happen? I know I can rewrite the slug or whatever (might be forgetting the actual array key) in my service plugin to get the permalink I want, but that causes issues with the “services” page itself.

I suppose I could make my CPT hierarchical, then create “services” as a parent for a bunch of individual service posts. But I don’t like that, either. Though now I’m not sure why… Maybe that’s the way to go?

Any tips or links or whatever are all appreciated!!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer