Support » Plugin: WPAdverts - Classifieds Plugin » USERNAME TO BUDDYPRESS MEMBER PROFILE

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, currently you would need to open file wpadverts/templates/single.php find line

    <?php printf( __("by <strong>%s</strong>", "adverts"), get_post_meta($post_id, 'adverts_person', true) ) ?>

    and add next to it something like

    <a href="<?php esc_attr_e(bp_core_get_user_domain( get_post( $post_id )->post_author )) ?>">view profile</a>

    BTW. If you are finding the plugin useful i would be thankful if you could write a short one or two sentence review here https://wordpress.org/support/view/plugin-reviews/wpadverts

    Thread Starter love2playgames

    (@love2playgames)

    Hi Greg,

    Thank you so much for your code and support for the view profile. It works EXCELLENT after I pasted this code. This sure kick it up a notch BIG TIME.. Specially now it feel integrated with the site more.

    You the best, HAPPY CAMPER!!!

    Thank you again BIG TIME for your help!

    Thread Starter love2playgames

    (@love2playgames)

    Hi Greg,

    I just now remembered to get extra support. Somehow, I just tested, this only link to the CURRENT logged in (admin profile)?

    It doesn’t link to other members (individual) profile?

    Please help. Thanks

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, i am not sure, are the ads posted by users who are logged in? My guess is that get_post( $post_id )->post_author returns null and bp_core_get_user_domain() function displays link for currently logged in user.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘USERNAME TO BUDDYPRESS MEMBER PROFILE’ is closed to new replies.