Support » Fixing WordPress » Add post-format to custom posts?

  • I want to add post formats to a custom post type.

    The custom post type is called ‘Review’

    The following snippet adds all formats.

    The formats I want to add (as an example) are Aside and Quote.

    add_action( 'init', 'my_theme_post_type_support' );
    function my_theme_post_type_support( ) {
    add_post_type_support( 'review', 'post-formats' );

    Any ideas? Some sort of array?

  • The topic ‘Add post-format to custom posts?’ is closed to new replies.