[Plugin: Yet Another Related Posts Plugin] No Related Posts
I always get “no related posts”. I have got the latest version of the plug-in and everything but I just can’t get it to show any related posts.
I’ve have even trid to set the match threshholds to 1 and 0.1 but no matter what it always says no related posts. 🙁
Do you use tags and categories? Related Posts works with the categories and tags.
Yeah I do you can see the site here..
I emailed you a few days ago, if you’d like to send me the plug-in i’ll get back to you asap.
Thanks to ll of Mitcho’s help its finally working. The problem was due to the engine on my tables. A simple
ALTER TABLE wp_posts Engine='MyISAM'
Does the trick.
Yeah that would be a great idea, I’ve been trying to get it to work for a while and nearly gave up. However I’m glad I persevered as its a great plug-in
I can’t get this working… 🙁
In the main area of the page, I have a single post:
<!-- This displays the event main content. --> <?php iinclude_page($post->ID,'displayTitle=true&titleBefore=<h2>&titleAfter=</h2>&displayStyle=DT_FULL_CONTENT'); ?>
In the right sidebar, I want to display posts related to the main content…could you give me an example of a loop that would achieve this?
I’m trying this, and it’s not working:
query_posts("cat=22&showposts=2"); while (have_posts()) : the_post(); related_posts(); // display post here (attachments included) ?> <div class="post" id="post-<?php the_ID(); ?>"> <p><b><?php the_title(); ?></b></p> <div class="entry"><?php the_content('Read the rest of this entry »'); ?></div> <img class="sidebarTitleLine" src="<?php bloginfo('stylesheet_directory'); ?>/images/line.gif" height="1" alt="line" /> </div> <?php endwhile; ?>
Any help would be greatly appreciated!!!
Hm… by a quick glance, my guess is that by pulling up posts directly uring
is_single()boolean is set to false and thus the related posts are not displayed. Do you get any output at all (such as the default “No related posts”) or do you get nothing at all?
- The topic ‘[Plugin: Yet Another Related Posts Plugin] No Related Posts’ is closed to new replies.