WordPress.org

Support

Support » Plugins and Hacks » Related Posts by Zemanta » [Resolved] Plugin Loading Location

[Resolved] Plugin Loading Location

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jureham

    @jureham

    Hi Carter,

    you can add related posts to the template if you disable “Auto Insert Related Posts” in Zemanta settings.

    Something like this should work for what you’re trying to do:

    <div class="post-content">
      <?php the_content('Read the rest of this entry &raquo;'); ?>
      <div class="ccta-widget">
        <?php if ( !function_exists('dynamic_sidebar')
          || !dynamic_sidebar('Contextual Call To Action') ) : ?>
        <?php endif; ?>
      </div>
      <?php zemanta_related_posts(); ?>

    or you can move <?php zemanta_related_posts(); ?> directly above <?php comments_template(); ?>.

    Best, Jure

    Jure,
    You are awesome thanks so much for that. I just had to make one small change on what you gave me to get that to behave correctly.

    This is what I used to get it to work:

    <div class="post-content">
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    <div class="ccta-widget">
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('Contextual Call To Action') ) : ?>
    <?php endif; ?>
    </div>
    <?php wp_related_posts(); ?>
    </div>

    Plugin Author jureham

    @jureham

    Thank you for using the plugin,
    I’ll mark the topic as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Plugin Loading Location’ is closed to new replies.
Skip to toolbar