Title: Custom Taxonomy Loop
Last modified: March 2, 2021

---

# Custom Taxonomy Loop

 *  Resolved [trondan](https://wordpress.org/support/users/trondan/)
 * (@trondan)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/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);
 * ?>

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [tushargohel](https://wordpress.org/support/users/tushargohel/)
 * (@tushargohel)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/custom-taxonomy-loop/#post-14140943)
 * Hi [@trondan](https://wordpress.org/support/users/trondan/),
 * Please add a category option that is shown below code
 *     ```
       <?php
   
       $args = array(
       'post_type'=> 'recept',
       'init_load' => 12,
       'scroll' => 'true',
       'posts_per_page' => 8,
       'post_staus' => 'publish',
       'template’ => 'content-recept',
       'category' => 'skippa-sockret',
       );
   
       echo cpt_alm_render($args);
   
       ?>
       ```
   
    -  This reply was modified 5 years, 2 months ago by [tushargohel](https://wordpress.org/support/users/tushargohel/).
 *  Plugin Author [tushargohel](https://wordpress.org/support/users/tushargohel/)
 * (@tushargohel)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/custom-taxonomy-loop/#post-14140954)
 * You can find more parameters here.
 * [https://plugins.blacktheme.net/cpt-ajax-load-more/docs/shortcode-parameters/](https://plugins.blacktheme.net/cpt-ajax-load-more/docs/shortcode-parameters/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Taxonomy Loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cpt-ajax-load-more_6bd299.svg)
 * [WordPress Ajax Load More and Infinite Scroll](https://wordpress.org/plugins/cpt-ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cpt-ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cpt-ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/cpt-ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cpt-ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cpt-ajax-load-more/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tushargohel](https://wordpress.org/support/users/tushargohel/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/custom-taxonomy-loop/#post-14140954)
 * Status: resolved