Can someone show me either an article or an explanation on how would you show the contents of a taxonomy at the taxonomy’s page? So my taxonomy is called “section” and I have one “section” called “Car Accident Articles”
So how do i show the contents of that section in here
example.com/section/car-accident-articles
{{show all posts in this section from Controller}}
I am currently doing this in VIEW but it doens’t look anything
$current = get_queried_object();
$args = array(
'post_type' => 'knowledge_base',
'tax_query' => array(
array(
'taxonomy' => $current->name,
'field' => $current->term_id
)
)
);
$the_query = new WP_Query( $args );