This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Autopopulate not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #53233
    Carles BarraCarles Barra
    Participant

    Hello,

    I have the following filter in which I show a list of events (created with ACF and shown through an Elementor Loop).

    The question is that I want to show only the future events when the page is loaded. I have the filter set to ‘autopopulate’ in ‘results for a search phrase’ mode and the ‘phrase’ empty.

    The filter should filter by the date ‘data_inici’ which corresponds to the date when the event starts. In the ‘custom fields’ section I have two filters ‘Data initial’ which chooses the initial date of the search (by default the current date) and ‘Data final’ which chooses the final date of the search (by default the current date + 3 months). These two filters interact with a ‘custom field’ of the ACF date type.

    As I understand with all this configuration it should autoload the events from today until 3 months from now. But it is not working. When you load the page it shows events prior to the current date that should not be displayed. The thing is that if I update the filter, for example by changing the end date by one day the filter does work correctly.

    Do you know what could be happening?

    Thanks!

    #53237
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    I think the parameters might be trimmed off due to the empty search phrase, but I’m not 100% sure. Can you please try changing the options, so that the search phrase is one space character: https://i.imgur.com/rcvabzg.png

    That should trigger a refresh with the correct parameters. Let me know!

    #53238
    Carles BarraCarles Barra
    Participant

    Wops! Yes, that’s what it was. I was following the official documentation (https://documentation.ajaxsearchpro.com/layout-settings/auto-populate-automatic-search-results-on-initial-page-load) and it says ‘leave this empty’ (on the screenshot) so that’s what I did. I’m glad it’s a simple thing to do. However, I would recommend that you specify on that page that by empty you mean a space so it would be a bit easier to understand.

    Anyway, thanks for the help!

    #53239
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Great! That indicates a possible bug here as the empty phrase should actually work, you did everything correctly 🙂

    I think it’s only related when using in combination with Elementor Loop Grid, I will make sure to investigate this further.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.