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
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.