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.

if( get_field('fieldname',post id) ){
 
    get_field('fieldname', post id);
 
  }

Leave a Reply

Your email address will not be published. Required fields are marked *