DocumentationOnline documentation for Ajax Load More
Category Archives
The code below will display an archive of posts by category slug.
1 2 3 4 5 6 7 8 9 10 11 12 |
<?php // category.php get_header(); if(is_category()){ $cat = get_query_var('cat'); $category = get_category ($cat); echo '<h1>'.$category->cat_name.'</h1>'; echo do_shortcode('[ajax_load_more category="'.$category->slug.'" cache="true" cache_id="cache-'.$category->slug.'"]'); } get_footer(); ?> |