Home › Forums › Backend Issues (wp-admin) › Get fields from page posts list › Reply To: Get fields from page posts list
He answered my question, I will leave it here for future.
It’s an ACF Extended Feature
The post type “Post” is named post (editado)
So in your case, as you use the Post Type List Location on “Posts”, it will be:
get_field(‘my_field’, ‘post_options’)
If you use that location on the post type page, it will be get_field(‘my_field’, ‘page_options’)
For a custom post type named review , it would be get_field(‘my_field’, ‘review_options’) etc… etc…
{name_cpt}_options is a placeholder you should adapt depending on the said post type
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp
— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.