• I’ve added the plug-in, which is really fantastic, however the related posts only appear when you click on the link for each post. They do not appear on my blog with a number of the posts shown. Most of my posts do not include the <–!more–>, so I’d have thought they’d show on the main page too.

    Is there an option for this that I have missed? Any help would be greatly appreciated.

    David
    staypuff.net

Viewing 14 replies - 1 through 14 (of 14 total)
  • @staypuff – You are correct–YARPP only has automatic display options for the single post display pages and RSS.

    If you’d like to add the display manually to your index and archive pages, you can simply add the line <?php related_posts(); ?> to your template’s archive.php or index.php right below the line with the_content() or the_excerpt(). (The specifics of where this would go depend on your theme.)

    Thread Starter staypuff

    (@staypuff)

    That worked beautifully.

    Thanks for the help and again, well done on an excellent plug-in.

    bitmover

    (@bitmover)

    I tried putting <?php related_posts(); ?> into my index.php but nothing shows up, it works fine on my single pages. I’m using YARPP 3.0b7

    http://www.twigandthistle.com/blog

    Love YARPP!
    Thanks in advance!

    @bitmover are you placing that PHP in The Loop, as in, right after the content?

    bitmover

    (@bitmover)

    Hi Mitcho!

    Here is where I put it in index.php:

    <div class="postbody">
    			<p class="post"><?php the_content('<br /><b>Continue reading... </b>'); ?></p></div>
    <?php related_posts(); ?>
    </div>
    
    				<p class="tags"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?></p>
    			<br />
    
    			<p class="postmetadata alt"></p>

    I also tried:
    <p class="post"><?php the_content('<br /><b>Continue reading... </b>'); ?></p><?php related_posts(); ?></div>
    but that didn’t work either.

    Thanks!

    Hmm… that is odd indeed. There is nothing in the related_posts() code that should limit it to single post displays.

    Is there any error being produced?

    bitmover

    (@bitmover)

    Is there any error being produced?

    None that I can see, I also tried disabling all plugins beside yarpp and yapb and switching to the default yarpp setting but nothing worked.

    Hmm… this is quite odd…

    If you ask your web hosting provider you probably can see the PHP error log (error.log). If there are any lines in there which are coming from a file in the yet-another-related-posts-plugin directory, I’d love to know what they are. Thanks!

    I managed to get ahold of my error log but I don’t really see anything. You can take a look if you like:

    http://twigandthistle.com/error_log

    Also I upgrade to the latest version of YAARP and still nothing. Is there anything else YARRP need to display on the main page?

    Hmm… odd. The place you put it in your theme code looks right, so I’m not sure what’s going on. πŸ™

    Okay I’m an idiot, I was editing the wrong theme! It works now, sorry for wasting your time Mitcho!

    Glad you got it worked out! πŸ™‚

    I tried this quote and I managed to get the plugin to work on my multi-posts pages…but now I have 2 results showing up on my single posts pages…What do I do??

    reetzk, you most likely haven’t turned off the “automatic display” option in YARPP options, so you’re getting the manual copy and the automatic copy both.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Recent post only show in full post view’ is closed to new replies.