• Hello I need help to show the badge on single view in wpadverts ads on username .. I use a child theme for the view and can put in your code.

    can you help me? thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Themosaurus

    (@themosaurus)

    Hi @agenturwehrli,

    Thank you for reaching out to us.

    I’m afraid I don’t quite understand what you’re trying to do. Can you please share some screenshots? Please don’t hesitate to comments or highlight your screenshot to help us better understand what you’re trying to achieve.

    Best,

    Thread Starter Daniel Wehrli – agenturWEHRLI

    (@agenturwehrli)

    Hello, ok, i want show the badge on username in the singleview in wpadverts – you see it on that site i have linked. I need only the hook/function to check if the user verified as example. so I can put in, in my theme of single-view of wpadverts.

     <div class="adverts-single-author-avatar">
                    <?php $id_or_email = get_post_field( 'post_author', $post_id ) ?>
                    <?php $id_or_email = $id_or_email ? $id_or_email : get_post_meta($post_id, 'adverts_email', true) ?>
                    <?php echo get_avatar( $id_or_email, 48 ) ?>
                </div>
    Plugin Author Themosaurus

    (@themosaurus)

    Hi @agenturwehrli,

    If you want to display the badge for a specific user, the plugin includes a function to do it :

    global $bp_verified_member;
    $bp_verified_member->get_user_badge( $user_id );

    Make sure to provide a user id to the function (email or user object will not work) and the user’s badge will be displayed.

    Hope this helps!

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How I can show the badge on wpadverts’ is closed to new replies.