WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. max_Q
    Member
    Posted 3 years ago #

    Hi,

    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.

    Regards

    http://wordpress.org/extend/plugins/all-related-posts/

  2. Maarten Swemmer
    Member
    Plugin Author

    Posted 3 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
    Member
    Plugin Author

    Posted 3 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

About this Topic