I am trying to convert this piece of code into a shortcode so it can be used inside my posts. Is it possible? I cant think of how to do it as I am beginner in wordpress and learning via books/youtube and wordpress documentation.
The code is:
global $userpro;
$userpro->permalink( get_the_author_meta('ID') );
The goal is to have that be executed in the post as [authorlink]
If it isnt possible to do so can I add the above code inside the single post template and show it at a specific spot using if so how could this be done?
Thank you all for your contributions.