• Resolved cebcreative

    (@cebcreative)


    Hi there,

    I want to use WP Subtitle on two custom post types I created using Custom Post Type UI plugin by WebDevStudios I’ve added support for custom post types in the functions as follows:

    function my_wp_subtitle_page_part_support() { add_post_type_support( ‘consultants’, ‘wps_subtitle’ ); } add_action( ‘init’, ‘my_wp_subtitle_page_part_support’ );

    Which is working fine but I also need to add support for my ‘events’ custom post type. I tried ‘consultants’, ‘events’, ‘wps_subtitle’ but that didn’t work.

    Any help would be appreciated.

    Thanks,
    Charlotte

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Ben Huson

    (@husobj)

    Hi,
    Try using add_post_type_support() twice:

    
    function my_wp_subtitle_page_part_support() {
        add_post_type_support( 'consultants', 'wps_subtitle' );
        add_post_type_support( 'events', 'wps_subtitle' );
    }
    add_action( 'init', 'my_wp_subtitle_page_part_support' );
    
    • This reply was modified 7 years, 12 months ago by Ben Huson.
Viewing 1 replies (of 1 total)

The topic ‘How to declare support for multiple custom post types?’ is closed to new replies.