• Resolved omegatcu

    (@omegatcu)


    Hello,

    first of all: I love your plugin!

    I have the following Problem:
    We have activated your Plugin to use with Elementor Posts, and it works for the first page, but we don’t get any pagination.

    Is there something more to do?
    The first page gives as results as expected, but we can’t go to page 2 or 3.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @omegatcu

    Are you referring to setting things up with regards to Elementor and a search results template provided by Elementor?

    Also, are you using the Instantsearch settings from the “Search Settings” page, or just “use with native search” ?

    Thread Starter omegatcu

    (@omegatcu)

    Hello,

    We awant to use the “use with native search” option.

    We created a template and the setting in Elementor is “related search”, this works with the native search and pagination is available then.

    I activate the setting for “use with native search” in WP Search, and then I have different results (so it is working with Algolia) but no pagination anymore.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Unsure on what may be going on with that detail. The way our “Use with native search” functionality works is we tap into the query via pre_get_posts and read the search query before sending that to Algolia.com and then it returns the IDs of the results it’s determined are best, and then the plugin uses those IDs as part of the post__in parameter for WP_Query. Basically it tells WP ultimately “These are the posts you should fetch from the database, don’t worry about anything else for this current query.”

    Logically, that should be playing just fine with pagination, but I am wondering what the total “found post” pages found when NOT using Algolia is, vs how many “found post” pages Algolia would have access to within the index, and if the “more pages available” logic isn’t lining up.

    That said Elementor is a bit of a complex thing behind the scenes from what I remember.

    Thread Starter omegatcu

    (@omegatcu)

    I think you are right that the problem is with Elementor.

    Is there a way to get the query ID, so I can build the list from your query?
    Elementor gives me the option to give him the filter or query id, so I can directly get the posts.

    Elementor Doc:
    https://developers.elementor.com/docs/hooks/custom-query-filter/

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not super familiar with Elementor for that part, but that all looks like nothing we’d have any interaction with. So not sure what to suggest on that front.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Did you find a solution for this @omegatcu ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pagination with Elementor Posts’ is closed to new replies.