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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: