• Resolved bananenkopf

    (@bananenkopf)


    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!

    • This topic was modified 6 years, 1 month ago by bananenkopf.
    • This topic was modified 6 years, 1 month ago by bananenkopf.
Viewing 1 replies (of 1 total)
  • Thread Starter bananenkopf

    (@bananenkopf)

    I just figured out, that I can not use the function of the plugin inside my themes pages because the function. Started a new Question with precise question for globalized solution.

Viewing 1 replies (of 1 total)
  • The topic ‘get username/user_id by author of post’ is closed to new replies.