Taxonomy IN THE INDEX

I do not have much knowledge on wordpress, but learned watching in codex, and tutorials , but 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 IN THE INDEX

Leave a Reply

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