Home › Forums › ACF PRO › ACF on Custom Post's comments › Reply To: ACF on Custom Post's comments
Hi guys,
You need to create your own rule to match it. This page should give you more idea about it: http://www.advancedcustomfields.com/resources/custom-location-rules/.
When matching the rule, you can get the comment id from $options['comment']
variable. After that, you can use the get_comment() function to get the comment object and check if the comment is in a certain custom post type.
I hope this makes sense.
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.