Activate sidebar and other post options on a custom post type

By default, sidebar options along with other post specific options like show / hide excerpts, author, date etc.. are only activated for the default post type.

If you would like to activate these options to your newly created custom post type, simply use this filter xt_post_types_as_post within your child theme functions.php and override the post types array.

function xt_child_post_types_as_post($post_types) {
    $post_types = array(
        'post',
        'custom-post-type'    
    );
    return $post_types;
}
add_filter('xt_post_types_as_post', 'xt_child_post_types_as_post', 1);
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.