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.
Leave a Reply
You must be logged in to post a comment.
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.
You must be logged in to post a comment.
You should use
get_field()
orthe_field()
.You pass post meta name as the first parameter. You can optionally pass the associated post ID as second parameter.
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…