Do you use tags and categories? Related Posts works with the categories and tags.
Thread Starter
gaj
(@gaj)
Hi @gaj,
Hm… I’m investigating a couple instances I’ve heard about where no results are coming in at all with 2.0.5… if you email me I can get you a special debug version which may help solve your individual issue.
mitcho
Thread Starter
gaj
(@gaj)
Hi Mitcho,
I emailed you a few days ago, if you’d like to send me the plug-in i’ll get back to you asap.
Thank you.
Thread Starter
gaj
(@gaj)
Have you forgotten about me π I’ve emailed you..
@gaj – I don’t see any YARPP emails that I haven’t responded to, so I’m not sure if I’ve received your email. Could you email me again? Sorry for the trouble.
mitcho
Thread Starter
gaj
(@gaj)
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.
Thanks Mitcho.
@gaj, I’m glad I could help. In the future I will add some checks in YARPP to verify that the database setup is compatible.
mitcho
Thread Starter
gaj
(@gaj)
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
Mitcho,
I can’t get this working… π
Some context:
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!!!
Best,
Kate
Hi Kate,
Hm… by a quick glance, my guess is that by pulling up posts directly uring query_posts(...showposts=2), the 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?