related posts gotcha when changing wordpress theme

For those who are using the related posts Wordpress plugin, when you switch to a new Wordpress theme, you might find that the related posts have gone.

When you switch to a new theme in Wordpress, remember to include these lines in single.php

   1: <?php if (function_exists('related_posts')) { ?> <div class="related"> <h3>Related Posts</h3> <ul><?php related_posts(); ?></ul></div> 
   2: <?php } ?> 

 

Without these lines, the related posts will not appear.

Technorati tags: , ,
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Furl
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)