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?
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users