Custom "Supports" attributes

Support MB Custom Post Type Custom "Supports" attributes

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34373
    Brian HruskaBrian Hruska
    Participant

    How do I add custom "supports" attributes to a custom post type? I've created a post type, and its all good, but I need to add a custom attribute to the supports array. This doesn't seem to be working for me.

    //ADDS SUPPORT FOR MODIFYING ARCHIVE VIEW FORMAT
    add_action('init', 'mai_support_archive', 999);
    function mai_support_archive()
    {
    add_post_type_support('boat', 'mai-archive-settings');
    }

    #34399
    Long NguyenLong Nguyen
    Moderator

    Hi Brian,

    You can follow this article to add custom support to the current CPT by using the code
    https://wordpress.stackexchange.com/questions/70000/how-to-add-supports-parameter-for-a-custom-post-type

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.