Add post-format to custom posts? (1 post)

  1. richarduk
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic