• Hi, I want to retrieve all user achievements title and it is not showing all of them.

    Can you help us, what’s wrong with the array of achievements?

    Here is my code:

    $achievements_arr = get_user_meta($current_user->id, ‘_badgeos_achievements’, 1);

    foreach ($achievements_arr as $achievement) {
    echo $achievement->achievement_title . ‘<br>’;
    }

    The user has 4 achievements also in wp admin user page, but here is showing only 3.

    Thanks ??

  • The topic ‘User meta data _badgeos_achievements is not returning all achievements’ is closed to new replies.