Home › Forums › Front-end Issues › Accept only unique values › Reply To: Accept only unique values
I believe that ACF sets other values in $_POST for the taxonomy and the term id, but I am not sure. It should allow you to see if it’s a term page then alter the query to check terms instead of posts.
To see whats in $_POST during the ajax request you can do something like this
ob_start(); print_r($_POST); error_log(ob_get_clean());
This will print out the value of $_POST to your error log so you can inspect what’s in it.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.