How to create shortcodes to the standard post-metadata "title, author, category and date" in order to display it in post-content?
E.g. post-content including shorcodes: Lorem ipsum dolor [post_title] sit amet, [post_category] consectetur adipiscing elit [post_author]..
Followed this guide and it worked for the title but can't make it work on the other metadata: category, author name and date. The code is the following:
function myshortcode_title( ){ return get_the_title(); } add_shortcode( 'page_title', 'myshortcode_title' );