Adding CPT + template via plugin.

Hi devs, I’m old school and from the time we did get_header().

Now I’m trying to create a new plugin with an cpt. I can add a single-cpt.html template.

But I can’t figure out how to add the header and footer from theme

Can anyone point me in right direction?

Thanx!

1 Comment

 

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