Exclude pages based on ACF field value
-
Hello!
I am trying to keep pages that have a specific ACF field value from being indexed. I’ve followed the guide here:
https://webdevstudios.com/2021/02/09/wp-search-with-algolia/#excluding-individual-posts
(The code in my functions file looks exactly like the example except I am using a slightly different name for my ACF field)
I now have pages with the ACF exclusion field checked that are still showing up in search.
I’ve tried bulk reindexing from the plugin settings “Search” page and have also reindexed All Posts (index name: searchable_posts) from the plugin settings “Autocomplete” page.
Nothing seems to remove these records from search. Am I missing something? Is there a cache issue or do I need to push settings perhaps?
Many thanks!
The topic ‘Exclude pages based on ACF field value’ is closed to new replies.