Loading all categories, I need it to load only the category it’s on
-
I have the button working. But when you select a blog category, it’s still loading ALL posts, not just the posts from that category.
I’m using the following template shortcode outside the loop, at the end of the query.
how do I configure this so that it only loads the posts from the category that is selected. This would be for the archive.php and category.php templates.
echo do_shortcode('[ajax_load_more post__not_in="'.$post__not_in.'" container_type="div" post_type="post" posts_per_page="24" pause="true" transition="fade" scroll="false" images_loaded="true" button_label="Load More"]');
The page I need help with: [log in to see the link]
- The topic ‘Loading all categories, I need it to load only the category it’s on’ is closed to new replies.