Home › Forums › General Issues › Text Fields, Set Location on Post Types › Reply To: Text Fields, Set Location on Post Types
With core ACF you need to set the location of every post type. I have attached an image that shows this for posts and pages. If you have other post types then you would keep adding additional OR location rules.
Alternately you could create your own custom location rule https://www.advancedcustomfields.com/resources/custom-location-rules/. I have several examples of these I have created here https://github.com/Hube2/acf-filters-and-functions. I don’t have one for “All” post types, I’ve never seen a condition where I want something added to all post types. I do have one for “Public” post types https://github.com/Hube2/acf-filters-and-functions/blob/master/public-post-type-location-rule.php
The values for the fields are saved as WP postmeta values, not different than you would do using WP function like https://codex.wordpress.org/Function_Reference/add_post_meta
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.