I’m trying to display the author id on the author page by using a shortcode I created but it’s currently not working because the shortcode is only outputting the administrator id.
This is what I’m returning in the shortcode:
return get_the_author_meta('ID');
2
Answers
Working code:
call the shortcode with [author_id]
Please try the below code on author.php