Hi, im using types plugin. How can i display the author info (name, lastname, bio) in single.php ?
Hi Juan
Please take a look at this page and let me know any questions you have:
https://toolset.com/documentation/user-guides/displaying-wordpress-user-fields/
Regards
Caridad
This is the codo that im using
<?php
$author = types_render_usermeta_field("firs_name", array("raw"=>"true"));
echo "Name of author:".$author;
?>
This is the code that im using and doesn´t work
<?php
$author = types_render_usermeta_field("first_name", array("raw"=>"true"));
echo "Name of author:".$author;
?>
What can be wrong?
PD: Sorry for my english.
Dear Juan,
The code you are using is for displaying custom user fields, but first_name is not a custom field. Its a WordPress standard field and the functions to display this data you can find here:
http://codex.wordpress.org/Author_Templates
Please let me know if you are satisfied with my reply and any other questions you may have.
Regards
Caridad
Thanks, i was confused between the two types of fields!