• Resolved ericleesmith

    (@ericleesmith)


    We have a new post and have entered six related desert posts. But post six is coming up with potatoes! We have seen this bug before. Five of the six entered post numbers work, but the sixth just pulls in a random post.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ajay

    (@ajay)

    Could you please:
    1. Check all the 6 post IDs are correct – if not the plugin will ignore the wrong IDs
    2. Try adding a 7th related desert post and tell me if that makes a difference?

    Separately, if you didn’t enter any manual posts, do you see this potato post first?

    Thread Starter ericleesmith

    (@ericleesmith)

    1. the IDs are all correct and all six links show up correctly in the Manual related posts section of the Contextual Related Posts panel.
    2. Adding a 7th adds it to the related posts list, as above, but on the page the 7th post is a randomly selected post.
    3. Yes, the potatoes come up 6th even if I have no related posts one the page. Also, it appears as number 7 on all other recipes in the site. Interesting too, the number 6 recipe on other sites is not the Gluten-free Spiced Carrot Cake where this problem is occurring. In other words, the Carrot Cake recipe has replaced all number 6s on the site.

    Thread Starter ericleesmith

    (@ericleesmith)

    EDIT: is NOW the Gluten-free …

    Plugin Author Ajay

    (@ajay)

    @ericleesmith

    I just checked your site again and also browsed through some of the other links: Crunchy roasted potatoes and Cauliflower potato curry – noted the point on the gluten-free taking over the 6th post which is indeed strange.

    Can you let me know the settings you have for the related posts that are displayed. Do these all have manual posts? If so, how many?

    Can you toggle the option to find posts by Title and Content under list tuning and see what happens to the results.

    Are you in a position to install Query Monitor plugin and check what the queries are for each of these pages – you should have two in total with WP_Query->get_posts related to this plugin that are relevant.
    You’ll need to disable the cache in the settings page.

    The first is the one with the MATCH clause which pulls the related posts.
    Second will be a simple query that pulls the manual related posts.
    https://github.com/WebberZone/contextual-related-posts/blob/master/includes/class-crp-query.php#L677

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Manual Related Posts last item random’ is closed to new replies.