Taxonomy On Index Page

I cannot find the way to show my “taxonomy in the index”, i don’t know how i can display the post, not by default , if not for my taxonomy. Anyone can help me?

add_filter( 'pre_get_post', 'my_get_post' );
function my_get_post( $query ) {

    if( is_home() && $query->is_main_query() ) {
        $query->set( 'post_type', array( 'post', 'portafolio' ) );
    }

    return $query;
}

Read more here: Taxonomy On Index Page

Leave a Reply

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