Get the User ID of a Forum Topic Poster
I would like to get the user id of a forum topic poster so that I can display things like cubepoints and rank next to the posters avatar. I have it sort of working but it only shows the points for the logged in user on each post. It doesn’t show the points for the person who actually posted it. Hopefully that makes sense. Here is my code…
<div class="poster-meta"> <a href=""> </a> <span class="cubepoints_buddypress"> post->poster_id); ?> </span> <span class="cupepoints_buddypress_rank">Rank - post->poster_id); ?> </span> </div>
This code is in topic.php
- The topic ‘Get the User ID of a Forum Topic Poster’ is closed to new replies.