Reply To: Regarding about custom field display
Hi,
Thanks for your prompt response.
Do you mean that, as I know where does the theme call it, which i found it :
<div class=”gdlr-post-author-inner”>
<div class=”post-author-avartar”><?php echo get_avatar(get_the_author_meta(‘ID’), 90); ?></div>
<div class=”post-author-content”>
<h4 class=”post-author”><?php the_author_posts_link(); ?></h4><?php echo get_the_author_meta(‘description‘); ?>
</div>
<div class=”clear”></div>
</div>
the ‘description’ is the place where it called the default wordpress User description.
So now I will like to replace it with the custom field that I created, which i think its called field_2, do I need to create one php in the theme with this function:
$user_id = get_the_author_meta( ‘ID’ );
$bio = xprofile_get_field_data( ‘field_2’, $user_id );
echo $bio;
and use the bio created here to replace with the description above?
Sorry that my php knowledge is quite limited, Hope you can help me in this 🙂
Thanks!