Thursday, December 24, 2015

Wordpress get acf field value of another post

To get values of ACF field from another page or post use the following method.

$value = get_field('field_name',$post_id);

Here $post_id  is of another post or page whose ACF value you want to fetch in the current page or post.

No comments:

Post a Comment

MS SQL : How to identify fragmentation in your indexes?

Almost all of us know what fragmentation in SQL indexes are and how it can affect the performance. For those who are new Index fragmentation...