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;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.