How can I use current user id in html code in any post?
-
Hello,
I would like to get current users id and use it in the html code of certain posts & pages.
I tried including <?php echo get_current_user_id(); ?> in the code but I don’t think it worked.
I tried to print the current user id as text to check if its working.
Any suggestions?
Thank you
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How can I use current user id in html code in any post?’ is closed to new replies.