Support

Account

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

    @hwkfr

    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