• Resolved nicoolass

    (@nicoolass)


    Hi,

    It seems that the algorithm parameter “require at least one category in common” does not work properly anymore

    All my posts have only one category.
    YARPP displays related articles with a category other than that of the article being edited.

    Do you notice this too ?

    Best regards,
    Nicolas

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Michael Nelson

    (@mnelson4)

    Hi @nicoolass, sorry for the delay. Thanks for reaching out! We’ll try our best to get this fixed.

    I just re-tested that feature, and YARPP is correctly requiring there be one category in common for me.
    However, a couple weeks ago we made a change that loosened the category requirement for categories which didn’t apply to a particular post type. Eg, if you set “require at least 1 category in common” and have YARPP automatically add related content onto pages, then pages are exempt from that requirement because pages don’t have categories (so “only show pages with 1 category in common” doesn’t make sense).
    I wonder if the problem you’re having has something to do with that.
    Are you using custom post types or custom taxonomies? And, if possible, can you share a link to your site? That might help get the ball rolling with debugging this issue you’re having.

    Plugin Author YARPP

    (@jeffparker)

    Hi @nicoolass ping! can you please get back to us with answers to @mnelson4’s questions? Would love to get this resolved.

    Thread Starter nicoolass

    (@nicoolass)

    Hi @mnelson4,

    Related posts are only display in posts (not in pages or categorie’s pages).
    I don’t use custom post types or custom taxonomies.

    If I don’t edit an old post the related posts are OK.
    If I update an old post or create a new one, related posts are wrong (not all in the same category as my new post).

    What I have to do to have the good related posts in only the category of the current post :
    1. Create/update the post
    2. Configure the options of YARPP : Disallow by Categories => select all categories => Save Options
    3. Click “Refresh” button to refresh the list of Related Posts in the post (no related posts are listed)
    4. Update the posts
    5. Configure the options of YARPP : Disallow by Categories => deselect all categories => Save Options

    The post will display Related posts only in the category of the current post.

    Plugin Support Michael Nelson

    (@mnelson4)

    Hmmm ya that sounds really annoying, and shouldn’t be necessary.

    It sounds like you must have setup YARPP differently than me, or are maybe using it differently. I’ve tried a few different ways to reproduce the problem but am still unsuccessful (its still working fine for me.)
    In order for me to find the problem I’ll need some more information.

    Could you please send me some more information about your setup by doing the following:
    1. From WordPress admin dashboard, under “Settings” click “YARPP”
    2. Click “Help” in the top-right corner
    3. CLick “Optional Data Collection” tab on the left
    4. Copy all the monospaced text
    Here’s a video: https://drive.google.com/uc?id=1Nw3IaXhs_7RTlUdzB5iTeBcymwcIJOby

    and then paste the text in here (or email jay at yarpp com).

    Also, could you maybe describe what steps you do that DO produce the problem? (Better yet, make a screen recording of it using your phone or a screen recording program.) That’s also likely to reveal if you’re doing something differently that’s making YARPP trip up.

    Thanks @nicoolass

    Plugin Support Michael Nelson

    (@mnelson4)

    Hi @nicoolass, I can see the problem now.

    There’s a bug: when you press “Refresh” and YARPP calculates the related posts it IGNORES requiring there be a category in common. BUT if you just update the post and visit it directly, that problem doesn’t come up.

    I’m going to investigate how that can be fixed. But for now you can avoid the problem by just NOT pressing that “Refresh” button. And if there’s a post with the wrong related posts, just update it and then view the post on your website.

    Here I made a video showing what I mean: https://drive.google.com/file/d/1NRCwEFd7LDNjV8IPSjtqnNQvWX4ufD9t/view

    We’ll let you know once we’ve found a fix to this problem (besides just not using the “refresh” button)

    Plugin Support Michael Nelson

    (@mnelson4)

    HI @nicoolass I have a fix for the problem if you would like to test it. Here’s how:

    1. Download the new version from here: https://drive.google.com/file/d/1vBYfrta13Gx9F4pf4PPpHOVwaUt2hYdu/view?usp=sharing
    2. Go to your WordPress dashboard, click plugins, then “add new”, then “upload” and select the zip file you just downloaded
    3. Deactivate the previous version of YARPP
    4. Activate the new version of YARPP
    5. Go to edit a post with the problem
    6. Update the post (this clears YARPP’s cached related posts)
    7. Click “Refresh” (this recalculates YARPP’s related posts)

    You should now see that only posts with the required category are shown as related.

    Thread Starter nicoolass

    (@nicoolass)

    Hi Michael,

    I tried the new version and it works !

    Thank you !

    Kind regards,
    Nicolas

    Plugin Support Michael Nelson

    (@mnelson4)

    Hi @nicoolass, YARPP 5.10.2 was just released and has your fix, so you can update to it and continue to use the same version as everyone else.

    Thanks for your help with this issue!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘require at least one category in common’ is closed to new replies.