Home › Forums › General Issues › Unique Product of The Week… › Reply To: Unique Product of The Week…
Given this, what I would do is….
I would create an acf/render_field action. This actions would look to find if there is already a currently set post and would output a hidden field with a true/false (1 or 0) value. The name of the field does not matter because it will not be saved, you just need to make sure it does not conflict with anything else.
Sorry, I don’t have any code for this example.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.