WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Yet Another Related Posts Plugin] No Related Posts (12 posts)

  1. gaj
    Member
    Posted 5 years ago #

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

    Any ideas?

  2. xavierp
    Member
    Posted 5 years ago #

    Do you use tags and categories? Related Posts works with the categories and tags.

  3. gaj
    Member
    Posted 5 years ago #

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

  5. gaj
    Member
    Posted 5 years ago #

    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.

  6. gaj
    Member
    Posted 5 years ago #

    Have you forgotten about me :( I've emailed you..

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

  8. gaj
    Member
    Posted 5 years ago #

    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.

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

  10. gaj
    Member
    Posted 5 years ago #

    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

  11. kschmidgall
    Member
    Posted 5 years ago #

    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 &raquo;'); ?></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

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

Topic Closed

This topic has been closed to new replies.

About this Topic