• Resolved MiKapa

    (@mikapa)


    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

    (@dcooney)

    Hi @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

    (@mikapa)

    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.