All Related Posts
[resolved] wp_ database prefix hardcoded (3 posts)

  1. max_Q
    Posted 5 years ago #


    function related_tag_posts and function related_search_tag_posts have a leftover "wp_posts.ID" as part of the query, so since my site has different table prefixes plugin was returning nothing.

    Even after fixing the query, I am not convinced about the results.
    Test Case:

    Using only "posts related to the shown post" and "posts related to seach engine terms (tags and categories)".

    Two test posts that are in the same category and share one tag.

    Clicking on post "a" shows post "b" in the widget, as expected. Clicking on post "b", however, does not show post "a". Other posts, not in the same category, but with one tag in common with post "b" are shown.

    Are you factoring in categories? In my usage categories carry much more weight than tags and I would expect two posts in the same category with a matching tag to be considered related.



  2. Maarten Swemmer
    Plugin Author

    Posted 5 years ago #

    Hi max_Q,
    I will correct the database query issue in the next version. Also I'll try to take into account the extend to which posts match, so better matching posts will get preferential treatment.
    Thanks for your feedback!

  3. Maarten Swemmer
    Plugin Author

    Posted 5 years ago #

    Hi max_Q,
    I've fixed the database issue and improved the algorithm for finding related posts. Posts that are more related (match more categories and tags) will be shown first.
    Please evaluate this improvement and let me know what you think.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic