WPIntell

Source evidence

Adding to custom post types

Post Template · support · 2012-12-24T11:40:00+00:00

neutralsentiment
lowseverity
0.32relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 36 rows with source links

19.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Tristan Bacon resolved
Hi, My site will be making use of custom post types, and I want to adapt your plugin to let me select templates for custom posts. You mention in the readme and the Other Notes section that there is some code for the functions.php file ‘below’, but I can’t find it. Can you help? Thanks, Tristan http://wordpress.org/extend/plugins/wp-post-template/ in function.php add_filter(‘cpt_post_types’, ‘my_custom_post_type’); function my_custom_post_type($_post_type) { $_post_type[] = ‘your_post_type’ return $_post_type; }

Comments

1 shown
IndiaNIC 2013-02-19T13:25:00+00:00

in function.php add_filter(‘cpt_post_types’, ‘my_custom_post_type’); function my_custom_post_type($_post_type) { $_post_type[] = ‘your_post_type’ return $_post_type; }