Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I add badges to users


  • kikismedia
    Participant

    @kikismedia

    I’m trying to add my cred badges to users that’s have the highest topics but I couldn’t achieve this please help me out

    <?php foreach ( get_users( ‘order=DESC&orderby=post_count&number=5’ ) as $user ) : ?>
     <?php $user = get_current_user_id();
    $badge_id = 1;

    mycred_assign_badge_to_user( $user, $badge_id, 1 ); ?>

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar