Display xprofile field in blog post?
-
I have created a custom profile field ‘About me’ and I would like to display that underneath each blog post to give the reader some information regarding the blog post author.
I know how to do this getting the default “Biographical Info” from the user admin’s panel but then it will mean that the author has to complete two “bio” sections. One on the custom field I have created and on the wp admin section.
This is what I include on single.php for the blog post:
<?php echo xprofile_get_field_data( ‘About me’, the_author_id()) ?>
it only returns the id, numerically of the blog author
What can do to include that custom xprofile field underneath each blog post?
- The topic ‘Display xprofile field in blog post?’ is closed to new replies.