This topic has 15 replies, 4 voices, and was last updated 9 years by Radu.

  • Author
  • #131452
     alkross
    Participant

    I create some Custom Post Type with CPT UI plugin. All works fine, but how can I apply the Kleo features as Kleo Theme General  settings, post layout or Mail Menu options?

    #131494
     Radu
    Moderator
    Not marked as solution
    #131503
     alkross
    Participant
    Not marked as solution
    #131648
     Radu
    Moderator
    Not marked as solution
    #133129
     alkross
    Participant
    Not marked as solution
    #133209
     Radu
    Moderator
    Not marked as solution
    #133223
     alkross
    Participant
    Not marked as solution
    #133400
     Radu
    Moderator
    Hi, To can benefit for all theme features just replace the metaboxes.php form wp-content/themes/kleo/lib/ with the attached file after you unzip it. This will be implemented in the next theme update. Then you should add these functions in the wp-content/themes/kleo-child/functions.php
    
    // Add Theme Settings to CPT //
    // Replace superpost with your CPT slug //
    function my_cpt_sq_metabox_general_settings($post_types) {
    
        $post_types[] = 'superpost';
        $post_types[] = 'superpost2';
        return $post_types;
    }
    
    add_filter('sq_metabox_general_settings', 'my_cpt_sq_metabox_general_settings');
    
    // Add post layout settings to CPT
    // Replace superpost with your CPT slug
    function my_cpt_sq_metabox_post_layout($post_types) {
    
        $post_types[] = 'superpost';
        $post_types[] = 'superpost2';
        return $post_types;
    
    }
    add_filter('sq_metabox_post_layout', 'my_cpt_sq_metabox_post_layout');
    
    Replace superpost with your custom post type... also if you want to add to multiple cpt replace superpost2 with the your cpt slug. Cheers R.
    #133574
     CompanyGolfClub
    Participant
    Not marked as solution
    #133687
     Radu
    Moderator
    Not marked as solution
    #133917
     alkross
    Participant
    Not marked as solution
    #133968
     Radu
    Moderator
    Not marked as solution
    #136585
     michaelnobbs
    Participant
    Not marked as solution
    #136630
     Radu
    Moderator
    Not marked as solution
    #136678
     michaelnobbs
    Participant
    Not marked as solution
    #136688
     Radu
    Moderator
    Not marked as solution
Viewing 16 posts - 1 through 16 (of 16 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?