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.
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