WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts by Zemanta
[resolved] Theme change, now it wont show up (5 posts)

  1. Mylantus
    Member
    Posted 7 months ago #

    I have switched to a new theme, and the auto add code option isn't working for me now. I have tried to add the code to my new Single Post.php template, but can only get it to appear at the top of my posts, can you tell me where to add the related posts line in the code below so that my related posts will again show up at the bottom of my posts?

    [ Moderator note: please wrap code in backticks or use the code button. ]

    <?php $options = get_option('mh_options'); ?>
    <?php get_header(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="wrapper clearfix">
    	<div class="main">
    		<div class="content <?php mh_content_class(); ?>"><?php
    			mh_before_post_content();
    			if (is_attachment()) {
    				get_template_part('content', 'attachment');
    			} else {
    				get_template_part('content', get_post_format());
    			}
    			mh_after_post_content();
    			endwhile;
    			comments_template();
    			endif; ?>
    		</div>
    		<aside class="sidebar <?php mh_sb_class(); ?>">
        		<?php dynamic_sidebar('sidebar'); ?>
    		</aside>
    	</div>
        <?php mh_second_sb(); ?>
    </div>
    <?php get_footer(); ?>

    http://wordpress.org/plugins/related-posts-by-zemanta/

  2. Mateja
    Member
    Plugin Author

    Posted 7 months ago #

    Hey,

    try to add the code below this line:

    mh_after_post_content();
     zemanta_related_posts();

    and let me know if this works for you.

    If not, please provide URL of your blog so I can take a look. It would be good to know which template you're using, because I see some template specific functions and I don't know exactly how they affect the content.

    Best,
    Mateja

  3. Mateja
    Member
    Plugin Author

    Posted 7 months ago #

    Hey,
    did you manage to solve this? Can I mark this topic as resolved?

    Thanks,
    Mateja

  4. Mylantus
    Member
    Posted 7 months ago #

    Yes this is resolved, thanks. It turned out that the Digg Digg plugin was screwing up all of my other plugins

  5. Mateja
    Member
    Plugin Author

    Posted 7 months ago #

    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.