Change Post Archive Layout WordPress

// Change Post Series Archive Layout
function my_alter_post_series_layout( $layout ) {
   if ( is_tax( 'post_series' ) ) {
        return 'full-width';
    }
    return $layout;
}
add_filter( 'wpex_post_layout_class', 'my_alter_post_series_layout' );
See also  How to Get category slug on archive views

Leave a Reply

Your email address will not be published. Required fields are marked *