$user_info['posts'] contains the post count of the current user, not formatted wth commas or anything.
Make sure you declare it as global, and you should be good to go (and wrap it as comma_format($user_info['posts']) if you want the comma in there)
Re: How to get the users post count on (costum) page
Make sure you declare it as global, and you should be good to go (and wrap it as comma_format($user_info['posts']) if you want the comma in there)
Re: How to get the users post count on (costum) page
0 commentaires:
Enregistrer un commentaire