Custom Page for CPT
-
Hey all!
I’ve been experimenting with plugin development recently. For my plugin, I’ve got some custom post types going. Now, what I want is that when a user is linked to ig, e.g. linkto.page/course/course-title, it shows whatever that CPT’s content is. After doing some research, I thought I’d have to create a single-course.php file, which I tried. I’ve had it in /, in /templates/, but neither seems to work. No matter what, I seem to never get a change in what I see, which is (what seems to be) an archive page for normal posts, not even my CPT’s posts… Any helpful insights?
Filestructure for the templates what I have now is:
/ + /templates + single-course.php + archive-course.php
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Page for CPT’ is closed to new replies.