• Hello!

    Following Problem:

    if i use :
    <?php related_posts(); ?>

    it will show me perfectly the related posts.
    but if I use this code (i′ve tested it on the same place as the code above:

    <?php if (related_posts_exist()): ?>
    
     <?php related_posts(); ?>
    
     <?php endif; ?>

    there will be no more posts. why?

    wordpress-version: 2.6

Viewing 3 replies - 1 through 3 (of 3 total)
  • @webcam – Yes, I was recently notified about this change. I believe I may have fixed it in the dev build. Please let me know if that solves your problem.

    In general, however, I highly recommend not using related_posts_exist() as I believe I will phase it out… you can get the same functionality as what you described in the code above by entering a blank string for the “no related posts” string in the options page, so that nothing is displayed in that situation.

    Let me know if you continue to have any questions or if that dev build works for you.

    mitcho

    Thread Starter Stefan

    (@webcam)

    hey mitcho!

    thx for your advance..

    but it also won′t work with your dev build version….

    i know the workarround in the option page, but its almost not so gentle because i don′t want to show the whole headline “related posts:”, if there are no related posts -> this is not possible to conf in the option page.

    It′s a pity. ??

    but thx again for your fast and great help!

    @webcam:

    i know the workarround in the option page, but its almost not so gentle because i don′t want to show the whole headline “related posts:”, if there are no related posts -> this is not possible to conf in the option page.

    Hm, I’m pretty sure it was… what settings are you using? If there are no related posts, it should *only* output the “no related posts” string.

    mitcho

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] “related_posts_exist” won′t work’ is closed to new replies.