Custom Taxonomy Loop
-
Hi,
I’m using this awesome plugin but are now building archives for my CPT UI Taxonomies.
I”ve got a CPT called “Recept” and this post type has also 4 different taxonomies, one of them is “Receptskapare”. Below is my attempt to create the loop-receptskapare.php, but on the page, it still loads all the recept posts, not only the ones slexted by the array, how can I solve this?
Thanks,
<?php
$args = array(
‘post_type’ => ‘recept’,
‘init_load’ => 12,
‘scroll’ => ‘true’,
‘posts_per_page’ => 8,
‘post_staus’ => ‘publish’,
‘template’ => ‘content-recept’,
‘tax_query’ => array(array(
‘taxonomy’ => ‘receptskapare’,
‘field’ => ‘slug’,
‘terms’ => array(‘skippa-sockret’)
))
);echo cpt_alm_render($args);
?>
- The topic ‘Custom Taxonomy Loop’ is closed to new replies.