Title: Load posts from different categories
Last modified: October 17, 2018

---

# Load posts from different categories

 *  Resolved [MiKapa](https://wordpress.org/support/users/mikapa/)
 * (@mikapa)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/load-posts-from-different-categories/)
 * Hi there and thanks for your great plugin.
 * I’m in a situation where i need to load posts from different categories than 
   the landing post.
 * Eg. If the landing post is in category A, I want the rest of the posts that are
   loaded after, to be from different categories than A (ideally I want each and
   every one to be from different categories but I’m not sure if that’s possible
   in general without multiple queries)
 * Important notes:
    -The website is multilingual and the languages are top level
   categories which have second level subcategories (eg. Top level ‘en’ category
   has subcategories cat_a_en, cat_b_en etc, top level ‘de’ category has subcategories
   cat_a_de, cat_b_de etc) -Due to the language issue, I would like to load posts
   from the same top level category but from different subcategories -I use the 
   previous post addon as well and my current shortcode is [ajax_load_more previous_post
   =”true” previous_post_id=”‘.get_the_ID().'” previous_post_taxonomy=”category”
   seo=”true” post_type=”post” post_format=”standard” posts_per_page=”4″ max_pages
   =”10″ scroll_distance=”-1300″ transition=”none” ]
 * Is there a way of accomplishing what I need, regarding your plugin?
 * Thanks,
 * Manos

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/load-posts-from-different-categories/#post-10805034)
 * Hi [@mikapa](https://wordpress.org/support/users/mikapa/),
    Sorry for the delay,
   I missed this somehow.
 * This indeed would require a bunch of queries and I dont think ALM can handle 
   it out of the box.
 * You might want to write a custom query, build an array of post IDs and pass those
   ID’s to Ajax Load More using the `post__in` shortcode param.
 * Just a thought…
 *  Thread Starter [MiKapa](https://wordpress.org/support/users/mikapa/)
 * (@mikapa)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/load-posts-from-different-categories/#post-10810989)
 * I’ll try and see what i can get, thanks for the thought 🙂

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

The topic ‘Load posts from different categories’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [MiKapa](https://wordpress.org/support/users/mikapa/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/load-posts-from-different-categories/#post-10810989)
 * Status: resolved