get username/user_id by author of post
-
Hey,
i googled for hours but couldn’t find the answer to the simple thing i need.
i just want to enable the verification badge as well on a post page beside the author meta.
Its a simple if statement, but it wouldnt work because i am not able to explain the statement how to check the UM user ID.
<?php the_author() ?> //shows author name <?php if (is_verified(um_fetch_user( $post->post_author ))) {... //check if verfied and display badge if so.
…thats a way i thought it would work, but it wouldnt.
I tried all those different variables a could think of…
um_fetch_user( $post->post_author ) um_user( 'ID' ) um_get_display_name( $user_id ) um_fetch_user( $post->post_author )
Thanks for help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get username/user_id by author of post’ is closed to new replies.