Assign separate template for CPT’s
-
Hello,
I have some custom post type that I will assign a separate template for them.
Now, on index.php file in line 73 is:<?php // Get post entry content if ( is_post_type_archive( 'cpt' ) ) { get_template_part( 'partials/cpt-entry/layout' ); } // All other post types. else { get_template_part( 'partials/entry/layout', get_post_type() ); } ?>
How to call template files for other CPT on OceanWP?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Assign separate template for CPT’s’ is closed to new replies.