Welcome to the Treehouse Community
Looking to learn something new?
Get a value to Text Feild Text of Advanced Custom Feild Plugin
hi, I used Advanced Custom Feild Plugin to create a Text Feild call "Author Name" and "Location". How can I get default value in Author Name Feild = First name + Last name and Location Feild = Address ( address when user register )?
Ryan Cates18,344 Points
This will return the value for the field "Author Name"; assuming your field name is "author_name"
<p><?php the_field('author_name'); ?></p>
This will return the value for the field "Location"; assuming your field name is "location"
<p><?php the_field('location'); ?></p>
Also you don't really need the paragraph tags... you could also use h1-h6 or whatever text element you want.