Documentation
Online documentation for Ajax Load More
Taxonomy Archives
The code below will display an archive of posts by taxonomy term.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?php //taxonomy{_taxonomy_name}.php get_header(); $queried_object = get_queried_object(); $tax = $queried_object->taxonomy; $tax_name = $queried_object->name; $tax_term = $queried_object->slug; if(is_tax()){ echo '<h1>'.$tax_name.'</h1>'; echo do_shortcode('[ajax_load_more taxonomy="'. $tax .'" taxonomy_terms="'. $tax_term .'" taxonomy_operator="IN"]'); } get_footer(); ?> |