Hot answers tagged

1

This is a little old but you can also try this: Create a template for the custom post type: single-*custom-post-type-slug*.php The file should check the slug and verify if a file exists, if not, fallback to a default template file: <?php $slug = get_post_field( 'post_name', get_post() ); $slug = ( locate_template( 'templates/*custom-post-...



Only top voted, non community-wiki answers of a minimum length are eligible