Sunday 15 September 2013

php - Single post template for specific Custom Post Type using Types plugin Wordpress -



php - Single post template for specific Custom Post Type using Types plugin Wordpress -

i'm attempting setup custom template posts under specific custom post type, using types plugin. i've looked extensively through documentation , spent while attempting find results on google can't find anything.

the recommended single-[name].php setup isn't working/taking effect.

is there i'm missing? custom code functions.php file?

please advise.

kind regards, patrick

single-your_post_type.php should called, if single post of your_post_type. suspect 1 of 2 conditions not met. place next code @ top in header.php , check debug-output.

echo is_single() ? 'single' : 'not single'; echo ' : '; echo get_post_type();

it possible alter default template hierarchy i.e. 'single_template' hook. check whether there exists such filter:

echo has_filter( 'single_template' ) ? 'there 1 or more single_template filter' : 'no filter exists single_template';

php wordpress plugins types

No comments:

Post a Comment