Home › Forums › Backend Issues (wp-admin) › Particular Custom Post Type Rules for a group of fields › Reply To: Particular Custom Post Type Rules for a group of fields
All post types will be available in the location rules dropdown., even if the post_type public setting is false.
If your post_type is not appearing, then perhaps your post_type is not registered when ACF does the AJAX request to populate the select field.
This would be the case if you have wrapped your register code within an action. During an AJAX call, no WP action will be called (for example: admin_menu, admin_head, plugins_loaded, etc)
Could this be the issue?
Can you try setting the post_type to ‘post’ and then saving the field group. Does the newly refreshed page contain the correct post_types in the dropdown?
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.