Home Forums General Issues I can’t Get ACF field value


I can’t Get ACF field value

  • Hi
    I have created new custom post type on my wordpress admin.
    And these post are connected with ACF(Advanced custom field).
    This is my ACF field
    I tried to call like this to get the ACF field value for sold lot post type.
    $sold_args = array(
    ‘post_type’ => ‘sold_lot’,
    ‘numberposts’ => -1,
    ‘post_status’ => ‘publish’
    $sold_posts = Timber::get_posts( $sold_args );
    But when I get the data of this post type, I can’t get the acf field value, only i can get the default post type object (default)

    Could you let me know what’s the reason?


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.