Forums

[Plugin: Yet Another Related Posts Plugin] I have related post in admin page but not in blog (21 posts)

  1. f0rud
    Member
    Posted 2 years ago #

    I have a post and in edit page, I can see the related post (and they are correct) but in the blog page, just said there is no related post.

    I have no cache system at all, and test this with Template (yarpp-template-example.php) and another way (without template) .

    Any help?
    Thanks.

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. So you're seeing results in the "related posts" box when you edit the page, but it's not displayed in the actual single page? This is indeed strange.

    Are you displaying both related posts and pages? Are the items shown in the edit screen posts or pages?

  3. f0rud
    Member
    Posted 2 years ago #

    Yes. I have related post in edit post and new post -but no YARPP box in new/edit page - and I always get "there is no related post" on the blog.
    After install , it said some thing about Innodb and myiasm , I fix that, then i copy the template (with some change only in message to be in my language not in php code)
    I check the settings many times. There no ignored catagory , nor tag.
    Once I disable all other plugins and no result.
    If you need I can provide screen shot

    Sorry for my not-good-English :)

  4. Hmm... please check your PHP error log and "view source" to see if there are any PHP errors printed on that page where you should have related posts.

  5. f0rud
    Member
    Posted 2 years ago #

    No error. not in log , not in page. I think there is a problem in my server so I create a PHP file with some error (Div By Zero) and php show me the warning. so there is no error.

    I think this is so rare :)
    I use PHP 5.2.6 on IIS (hope this help )

  6. @f0rud Hmm... this is quite strange... can you check your database? Look in the yarpp_related_cache table and see if it has a lot of entries... it should.

    Another idea: it may be a plugin incompatibility... some other plugin might be messing with YARPP's input. You could try manually adding the PHP code related_posts() to your theme (for example, right under the_content()) and see if that works.

  7. f0rud
    Member
    Posted 2 years ago #

    Yes, table has about 30 record. and the other thing , about put the code manually in template , and now its VERY FUNNY!!

    I have the related posts on the front page (like cat pages or tag pages where the post are not complete, and you should click on more) and the data are OK. but in post page I have two " Related Post not found" and this is not what i expected. I change the setting to remove the "auto" insert of related tag.
    The problem not solved. I have related on front page but not in the real post. and the plugin shows not found in the post page. "Not found" and no "Show nothing at all" it show somthing and that thing is "Not found any post"

    Sorry if my English is so bad :)

  8. f0rud
    Member
    Posted 2 years ago #

    And the related posts are ok in feed now.

    Thanks.

  9. Glad to hear.

  10. f0rud
    Member
    Posted 1 year ago #

    Hi again :)
    As you can see my problem not solved (I can't see any related post in "post page")
    I found this is beacuse I use my custome unique link structure:

    /%year%/%monthnum%/%day%/%postname%/

    I use IIS and an error document to use this type of links.
    If I use default type of link, anything is ok.

    Why?

  11. f0rud
    Member
    Posted 1 year ago #

    for example this to link are to same post :

    related post are ok :
    http://cyberrabbits.net/?p=411

    No related post :
    http://cyberrabbits.net/1389/05/12/mysql-menu-part-3/

  12. f0rud
    Member
    Posted 1 year ago #

    I think this is a bug, how I can report this??

  13. YARPP uses all the WordPress-built-in functions for looking up posts and links, so I don't think this would be a YARPP-specific issue. I have no experience running WordPress on IIS, so perhaps someone else can help out.

  14. f0rud
    Member
    Posted 1 year ago #

    But wordpress has no problem to show the post.
    So I think its a problem on select current post on YARRP

    Thanks for your reply. I try to find the problem :D

  15. f0rud
    Member
    Posted 1 year ago #

    I check the plugin and monitor the queries :
    Normal front page query :

    SELECT SQL_CALC_FOUND_ROWS wp_posts.*, yarpp.score FROM wp_posts join wp_yarpp_related_cache as yarpp on wp_posts.ID = yarpp.ID WHERE 1=1 AND yarpp.score >= 5 and yarpp.reference_ID = 430 AND wp_posts.post_type IN ('page', 'post') ORDER BY yarpp.score DESC limit 5

    But check the "Page" query :

    SELECT SQL_CALC_FOUND_ROWS  wp_posts.*, yarpp.score FROM wp_posts  join wp_yarpp_related_cache as yarpp on wp_posts.ID = yarpp.ID WHERE 1=1  AND yarpp.score >= 5 and yarpp.reference_ID = 430 AND wp_posts.post_type IN ('page', 'post') AND wp_posts.post_date >= '2010:08:13 00:00:00' AND wp_posts.post_date < '2010:08:14 00:00:00'   ORDER BY yarpp.score DESC  limit 5

    Never select a row because of
    wp_posts.post_date >= '2010:08:13 00:00:00' AND wp_posts.post_date < '2010:08:14 00:00:00'

  16. f0rud
    Member
    Posted 1 year ago #

    And at last I change the link structure :(
    I think WP_Query has problem with this type of uniq link

  17. ssallc
    Member
    Posted 1 year ago #

    my blog has slightly similar issue with you.
    i can see the related entries while I'm logging-in my blog with 'admin' account.
    but after logged out, there is completely nothing on every single page.

  18. @f0rud the post_date issue is very interesting and I would like to figure it out. Where exactly did you see that query? How did you trigger it?

    @ssallc Perhaps you're using a caching plugin which may be interfering?

  19. Juniper138
    Member
    Posted 1 year ago #

    I am having a simular problem. I can see the related posts when I edit or create a post but it does not appear on the actual blog.

    I am only using NextGEN Gallery, Page Links To, SI CAPTCHA Anti-Spam for plug-ins so there should be no caching issues.

    I am using an artisteer made template.

    http://walkingthehedge.net/blog/

  20. Juniper138
    Member
    Posted 1 year ago #

    Okay when you view each post individually you can see it. But not just on regular blog view.

  21. @Juniper138 yup, that's how it works. If you want it to show up in the archive view, you'll have to add the related_posts() PHP code in that template file.

Topic Closed

This topic has been closed to new replies.

About this Topic