How to get data from Advanced Custom Fields plugin in WordPress

How to get data from Advanced Custom Fields plugin in WordPress:-

Get value from Advanced Custom Fields plugin in WordPress.

Use the following code:-

?php echo get_field('your_custom_field_name'); ?>

Also can get data from Advanced Custom Fields Plugin according to ID.

as below image:-

Use this following code:-

<?php $id=4;echo get_field('your_custom_field_name',$id);?>

See the advanced custom fields ID number and Define it into $id where i define $id=4.Replace the id number.

Total Page Visits: 4199 - Today Page Visits: 4

Leave a Reply