WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Template
[resolved] Won't show up with custom post types (3 posts)

  1. rwzdoorn
    Member
    Posted 1 year ago #

    Hi all,

    I'm having trouble with this plugin. It works no normal posts, but it won't show up with my CTP. I created a CTP called 'portfolio' (see http://pastebin.com/SmV3fiEt ) and using the CTP snippet in my functions.php

    Does anyone els have this problem?

    Thanks in advance!

    http://wordpress.org/extend/plugins/custom-post-template/

  2. gaspas
    Member
    Posted 1 year ago #

    It work for me.

    Did u put in functions.php
    http://wordpress.org/extend/plugins/custom-post-template/other_notes/

    function my_cpt_post_types( $post_types ) {
        $post_types[] = 'portfolio';
        return $post_types;
    }
    add_filter( 'cpt_post_types', 'my_cpt_post_types' );
  3. rwzdoorn
    Member
    Posted 1 year ago #

    Ok topic can be closed,

    Noobisched thing ever: I opend with <? instead of <?php..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags