WordPress.org

Forums

SuperCPT
[resolved] Comments saying closed (4 posts)

  1. Mike_sa
    Member
    Posted 2 years ago #

    Hi

    I am having a small issue with the setup of a custom post type. The custom post type is working perfectly except for the fact that the comment system is closed, even though comments are turned on and working for the blod posts :(

    `add_action('after_setup_theme','homeslider');
    function homeslider(){
    if(!class_exists('Super_Custom_Post_Type'))
    return;

    $homeslider = new Super_Custom_Post_Type( 'shoe-of-day');
    $homeslider->set_icon( 'picture' );
    }'

    I have looked at an tried all sorts of things but nothing works. Has anyone experience this with super CPT before, I am using the Woo Themes framework and a canvas child theme, reverted back to a default wp theme and still it did not work :(

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

  2. Mike_sa
    Member
    Posted 2 years ago #

    one more thing, the allow comments check box does not appear in the admin editor for the custom post

  3. Mike_sa
    Member
    Posted 2 years ago #

    solved it :)
    needed to add support for comments for the custom post type :)

    add_post_type_support( $post_type, $supports )

  4. Matthew Boynes
    Member
    Plugin Author

    Posted 2 years ago #

    Glad to see you have that figured out, Mike! For reference, here is a list of the default arguments that get passed to register_post_type. You can override them on a per-post-type basis, or override in bulk using the provided scpt_plugin_default_cpt_options filter, which the default args passes through.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SuperCPT
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.