Get the Custom Fields value in wordpress

I use the Advanced Custom Fields plugin in wordpress. I have to get the value which i have store in the pages. Is there any function for that.

Related posts

Leave a Reply

2 comments

  1. you can use this function get_post_meta()
    it accepts three arguments post id, meta key and single which Boolean and optional

    or if you don’t want to edit the template file just add these short code in the content part of the page or post. for more information…

    [acf field="{$field_name}"]
    [acf field="{$field_name}" post_id="{$post_id}"]