Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • zxbchris
    Participant

    @zxbchris

    Or maybe is there a way that I can link the default wordpress description to the custom field created in BBPress?


    zxbchris
    Participant

    @zxbchris

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar