Advanced custom field (ACF) as a source filter for essential grid

Hi, I found some similar topics but still can’t solve the issue.

Here’s the situation:

  • I have an ACF group for a page template named Speaker

  • Inside this group I have a custom field:

  • then I have the essential grid with source of Post type Page:
    image

What I’d like to achieve is to add additional filter which would include just the pages where ACF Past speaker is either false or true.

I see the field Additional Parameters:
image

Inside this Additional Parameters field I tried using the combinations like past_speaker=false and past_speaker=true, but it doesn’t work.

I’ve also read about the Meta references, so I created the reference and I tried to use this new reference in the Additional Parameters filed (i.e. past_speaker=false, acf-past_speker=true, eg-acf-past_speaker=false), and nothing works:
image

I have 3 additional questions:

  1. This one should be simple:) What parameter and value do I need to use in Additional Parameters field to add another filter - just the pages with a specific template (i.e. Speaker)? Is this possible?

  2. What exactly will happen if I somehow manage to set up a source with all 3 things above (post type: page, page template: Speaker, past speaker: false)? Does this source actually shortens the ‘Select pages’ list below the settings where I can pick the page from? Or does it allow to add a page that doesn’t match the filter but this page is then not shown in the grid on live page?

  3. What happens with the speakers/pages that are already in the grid but won’t match the new filters? Will they disappear from the grid in the settings or will they stay visible in the settings until I delete them, but they’d still not be visible on live page? Or will thay still be visible on the live page untill I remove them form the grid?

Thanks :slight_smile:

Hey Boštjan,

I could not answer questions 2 and 3 as there is not enough context or I don’t know what your exact setup is yet. Questions 2 and 3 would also be best tested out as we have not created such a setup yet.

I’ll answer question 1 only then please open separate threads each for questions 2 and 3 and just link this thread to the new threads for reference. That way, the thread is shorter and confusion might be avoided.

For question 1, the Additional Parameter accepts a “WP” Query String and according to ACF’s documentation here, you add in the Meta Key and Meta Value like

meta_key=past_speaker&meta_value=false

I’m not sure if that will work nor guarantee it will work though as there is no documentation in the Essential Grid knowledgebase about this.

For questions 2 and 3, please also provide the following information in a Secure Note.

  • WordPress Login URL
  • Admin username and password

You can find the Secure Note button at the bottom of your posts.

Thanks.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.