Title: custom term loader
Last modified: August 22, 2016

---

# custom term loader

 *  Resolved [jorge-vitrubio](https://wordpress.org/support/users/jorge-vitrubio/)
 * (@jorge-vitrubio)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/custom-term-loader/)
 * Hello,
 * I am using the plugin and so far works except for the custom taxonomy term.
 * What I have is a custom category, a custom taxonomy and it’s terms wich I create.
 * If I queue the term name and it’s slug I have it but… can not parse it to the
   ALM plugin, this is my code that gives me the taxonmy and the term name’s and
   slug, they are correctly outputted.
 *     ```
       <p>Taxonomy name <em><?php $the_tax = get_taxonomy( get_query_var( 'taxonomy' ) );
       echo $the_tax->labels->name;?></em> and slug <em><?php $the_tax = get_taxonomy( get_query_var( 'taxonomy' ) );
       echo $the_tax->labels->slug;?></em> also the term name <em><?php echo $term->name;?></em> and slug <em><?php echo $term->slug;?></em></p>
       ```
   
 * This is the short code which i use but I am lost 🙁 using _taxonomy\_terms_ will
   not return what I want.
 * If i mix it up with _post\_type_ I get all the custom post not filtered.
 * If i don’t use _post\_type_ I get the post_type=”post” which is the default but
   not affecting the taxonomy_terms filter which no post has.
 *     ```
       <?php
        $the_tax = get_taxonomy( get_query_var( 'taxonomy' ) );
        $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
        echo '<div class="row">';
        echo do_shortcode('[ajax_load_more post_type="service_egv" taxonomy="type_service_egv" taxonomy_terms="'.$term->slug.'" repeater="repeater2" offset="12" posts_per_page="8" scroll="false" pause="true" button_label="+"] ');
        echo '</div>';
       ?>
       ```
   
 * Obviously I am mistaken in something but don’t get it.
 * **solution**
 * I was missing include the _taxonomy_ filter so the short code has to include 
   post_type, taxonomy and taxonomy_term such as
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/custom-term-loader/#post-5398402)
 * If you are querying by `taxonomy_terms` you need to also include the `taxonomy`.
 * In your shortcode I don’t see `taxonomy="[tax]"`.
 *  Thread Starter [jorge-vitrubio](https://wordpress.org/support/users/jorge-vitrubio/)
 * (@jorge-vitrubio)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/custom-term-loader/#post-5398403)
 * tx, I got it also, I was mistaken.
 * very fast your help and nice plugin.
 * cheers
    jorge.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/custom-term-loader/#post-5398404)
 * No problem! Feel free to leave me review 🙂

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

The topic ‘custom term loader’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

## Tags

 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)
 * [term](https://wordpress.org/support/topic-tag/term/)
 * [terms](https://wordpress.org/support/topic-tag/terms/)

 * 3 replies
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/custom-term-loader/#post-5398404)
 * Status: resolved