WordPress.org

Ready to get started?Download WordPress

Forums

SuperCPT
[resolved] Removing standard content box (3 posts)

  1. Khoryolis
    Member
    Posted 1 year ago #

    Hi,

    Is there a proper way to remove the standard content box ?

    I am used to select what to display without your great plugin, like that :
    ...
    'supports' => array('title','author','thumbnail','excerpt','comments');
    ...

    But how to do it with SuperCPT ?

    Regards,

    http://wordpress.org/extend/plugins/super-cpt/

  2. Matthew Boynes
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Khoryolis,
    Thanks for trying out the plugin! This plugin is merely a wrapper for the core functions, so you can do it the exact same way. The arguments for the Super_Custom_Post_Type construct are (post type, singular label, plural label, arguments for register_post_type). Let's say you're registering a post type for cars, you would register it like this:

    $cars = new Super_Custom_Post_Type( 'car', 'Car', 'Cars', array( 'supports' => array( 'title', 'author', 'thumbnail', 'excerpt', 'comments' ) );

    You can read more in the documentation.

    Happy coding!

  3. Khoryolis
    Member
    Posted 1 year ago #

    Great, I didn't tried to add the snippet there.
    Thanks a lot again for sharing your plugin, I save a lot of time with it.

    Have a nice day.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic