How to create your own post type template correctly?
-
How to create your own post type template correctly?
1. single.php
get_header(); if ( ! function_exists('elementor_theme_do_location') || ! elementor_theme_do_location('single') ) { get_template_part('template-parts/single'); } //+ MY CTP PAGE if ( ! function_exists('elementor_theme_do_location') || ! elementor_theme_do_location('single') ) { get_template_part('template-parts/single-mycpt'); } //- MY CTP PAGE get_footer();
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to create your own post type template correctly?’ is closed to new replies.