Support » Plugin: Related Posts by Taxonomy » Shortcode works, do_shortcode or theme functions do not

  • Resolved kontur

    (@kontur)


    Hey,

    when I use the shortcode in the end of a post the plugin correctly renders some related posts.

    However, when I try to integrate the shortcode to my article template, neither do_shortcode() nor km_rpbt_related_posts_by_taxonomy() seem to work (for the same exact post). Inside the loop I have tried both of these like so:

    <?php var_dump($post->ID); ?>
    <?php do_shortcode('[related_posts_by_tax post_id="' . $post->ID . '"]'); ?>
    <?php km_rpbt_related_posts_by_taxonomy($post->ID, 'category'); ?>

    I get the correct post ID output to the page, but no related posts or errors.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.