The code you’re using will cause acf to save all of the fields to whatever post has the id of ‘300’. I’m not sure you’re using this correctly, to be honest I’m not sure where they values are being saved because you have 300 as a string and on a number. The values could be saved to the post with the ID of 300 or they could be saved in the options table with a prefix of “300-“. If they are saved to a post then there is no searching required. If they are save to the options table then searching is not possible.
I’m really not sure what you’re trying to accomplish. Searching is usually done on posts, filtered by meta. There isn’t anything in WP that just searches meta values. But like I said, I at this point I really don’t know what you’re trying to do.
Viewing 4 posts - 1 through 4 (of 4 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