• Resolved Mike_sa

    (@mike_sa)


    Hi

    I am trying out the SuperCPT plugin but just cannot seem to get it too work.

    I have created a child theme using the canvas framework.

    I added

    add_action('init','test_post_type');
    function test_post_type(){
        if(!class_exists('Super_Custom_Post_Type'))
            return;
        $actors = new Super_Custom_Post_Type( 'actor' );
    }

    I added this in my functions file.
    It does not seem to do anything, what am I doing wrong.

    The superCPT plugin is activated ….

    Thanks

    https://www.ads-software.com/extend/plugins/super-cpt/

Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Author Matthew Boynes

    (@mboynes)

    Oh, fantastic! Glad to hear this is all sorted out!

    Cheers,
    Matt

    Thread Starter Mike_sa

    (@mike_sa)

    One last question ??

    Does the SuperCPt plugin have the option of repeater fields ?
    Thanks ??

    Plugin Author Matthew Boynes

    (@mboynes)

    It does not, but it’s on the very short list of upcoming features. I expect to roll that out, along with a few other things, within the next two weeks!

    Thread Starter Mike_sa

    (@mike_sa)

    Awesome, I can already see that I will prefer this plugin to Custom Post type UI and WCK Fields.

    Thanks for all the help, have an awesome weekend ??

    Plugin Author Matthew Boynes

    (@mboynes)

    You too!

    Thread Starter Mike_sa

    (@mike_sa)

    Hi Mathew

    Sorry to bug you again… I am having an issue adding a meta box…. I keep geting the fatal error that the function add_meta_box is not defined .

    add_action('after_setup_theme','cont_boxes_home');
    function cont_boxes_home(){
        if(!class_exists('Super_Custom_Post_Meta'))
            return;
    
        $post_meta = new Super_Custom_Post_Meta('page');
        $post_meta = add_meta_box( array(
    	'id' => 'boxes',
    	'title' => 'content boxes',
            'context' => 'normal',
    	'fields' => array(
    		'content-box1' => array( 'type' => 'wysiwyg' )
    	)
    ) );
    
    }

    I tried using the add_action(‘add_meta_boxes’,’cont_boxes_home’);

    Same error message….

    Have I done something wrong ?

    Thread Starter Mike_sa

    (@mike_sa)

    It is not my weekend for coding ??

    sorry saw it was a typo used = instead of ->

    Sorry for bothering you ??

    Plugin Author Matthew Boynes

    (@mboynes)

    Hi Mike,
    Glad to hear you figured that out!

    I’ve got a growing documentation resource at https://github.com/mboynes/super-cpt/wiki, where I’ve got some demos, and will continue adding more. Hopefully this will help you get the most out of the plugin!

    Cheers,
    Matt

    Thread Starter Mike_sa

    (@mike_sa)

    Thanks ??

    I am actually following it ??
    is there an option for just an upload button ?

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Not able to get SuperCPT too work’ is closed to new replies.