This works fine and hides the content if they check the box. The problem is that the WordPress search results excerpts still display the ‘hidden’ content. I get why – because display: none, allows the content to still be in the page source.
So – how would I go about removing a repeater field entry/bock from the page source if site editors check the box saying it should be hidden?
Normally, ACF field values are not included in the excerpt because the values are not added to post_content. You must be doing something else, some code or have another plugin that allows this to happen in the first place.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users