How to create a shortcode out of a PHP function?
My code looks like this:
function related_links_shortcode() {
echo do_shortcode("<?php wp_related_posts()?>");
}
add_shortcode('relatedlinks', 'related_links_shortcode');
My code only shows [relatedlinks] on my post