Support

Account

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

  • Hi
    How are you?

    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
    https://prnt.sc/-JUaWx33aTXy
    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
    https://prnt.sc/DnIBtBo1NuPC (default)

    Could you let me know what’s the reason?

    Thanks