Hi! i want to show a extra html info on the profile… the main code on any wp page is:
<?php echo userpro_show_badges( $user_id, $inline=false ); ?>
I trying to implement it on the topicview.php but I´m having problems getting the user id of the post…
this is the code i´m using
echo '<div class="spPostUserLocation spCenter">'; echo userpro_show_badges( $user_id, $inline=false ); echo '</div>';
but no luck getting the user id….
I have been reading and some users are adding something like:
$user_id = get_the_author_meta(‘ID’);
Can anyone bring me help with this?