• Resolved Dorvalla

    (@dorvalla)


    I am trying to get support for the template system of Live Composer on my Custom Post Type, so it can use the templating system as well, which saves me time.

    I am using PODS as my custom post type generator.

    I found here documentation:

    https://livecomposer.help/article/133-add-post-templates-support-to-a-cpt (documentation) https://gist.github.com/jessicahawkins3344/b29b255f671d2b1f7e2f098a0508b6d7 (example)

    So when I add the support as following:

    function moods_add_post_templates_support( $cpt ) {
        $cpt['custom_post_type'] = 'mood';    
        return $cpt;
    }

    add_filter( ‘dslc_post_templates_post_types’, ‘moods_add_post_templates_support’ );

    I see the CPT being placed in the screen where I can add support to CPT (it’s the mood CPT)

    But when I hit save and get back to the main template page, it wont show me the correct item (its says custom_post_type, rather than mood) plus it wont add it to the CPT

    Anybody got an idea?

    • This topic was modified 7 years, 9 months ago by Dorvalla.
    • This topic was modified 7 years, 9 months ago by Dorvalla.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding LC support to CPT’ is closed to new replies.