WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Theme change, now it wont show up

[Resolved] Theme change, now it wont show up

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

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

    Thanks,
    Mateja

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

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Theme change, now it wont show up’ is closed to new replies.