get advanced custom field value using the post id the field name is the advanced custom field name and the post id is the used the post page id. Source code if( get_field('fieldname',post id) ){ get_field('fieldname', post id); }