• Hi

    *** Update – I pasted the code after the ?> (oooops!) in functions.php – now I have the Template showing as available in the Custom Post Type – just working on the actual template content ***

    I’ve managed to create a Custom Post Type and I’m now looking to create a template to use on the different sites.

    I’ve copied into …theme/functions.php

    /** * Hooks the WP cpt_post_types filter * * @param array $post_types An array of post type names that the templates be used by * @return array The array of post type names that the templates be used by **/ function my_cpt_post_types( $post_types ) { $post_types[] = ‘Articles’; $post_types[] = ‘News’; return $post_types; } add_filter( ‘cpt_post_types’, ‘my_cpt_post_types’ );

    …and this just displays at the top of the WP Dashboard.

    I’ve also created file called articles.php which is in the same directory..

    Where am I going wrong ?

    Thanks

    John

    http://ww.wp.xz.cn/extend/plugins/custom-post-template/

The topic ‘Does this work on Network WPMU ?’ is closed to new replies.