Viewing 15 replies - 1 through 15 (of 20 total)
  • 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?

    Thread Starter f0rud

    (@f0rud)

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

    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.

    Thread Starter f0rud

    (@f0rud)

    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 )

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

    Thread Starter f0rud

    (@f0rud)

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

    Thread Starter f0rud

    (@f0rud)

    And the related posts are ok in feed now.

    Thanks.

    Glad to hear.

    Thread Starter f0rud

    (@f0rud)

    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?

    Thread Starter f0rud

    (@f0rud)

    for example this to link are to same post :

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

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

    Thread Starter f0rud

    (@f0rud)

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

    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.

    Thread Starter f0rud

    (@f0rud)

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

    Thread Starter f0rud

    (@f0rud)

    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'

    Thread Starter f0rud

    (@f0rud)

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

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] I have related post in admin page but not in blog’ is closed to new replies.