Support » Plugin: Custom Related Posts » Upgrade to 1.6.5 has broken the related posts

  • Resolved tavestudio


    Hi there,

    I recently upgraded this plugin from version 1.3 to version 1.6.5 and the functionality stopped working. At the bottom of blog posts now just shows some placeholder images but with no links or text titles. Nothing else changed except for this upgrade. The shortcode is still in place (and unchanged) and the relationships are still defined the same.

    I have downgraded back to 1.3 and the functionality works again now, however we would like to use the latest version if possible.

    Are you aware of any issues that might cause this problem? Thanks in advance for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brecht


    I haven’t heard of this issues before. Could you update to 1.6.5 (maybe on a staging site?) and get me a link to the problem?

    Since I haven’t seen or heard of this issue before, it could be some kind of compatibility problem.

    Try disabling all other plugins for a second and see if it works then.
    If not, try switching to a default theme (like Twenty Seventeen) and check again.

    An easy way to do these tests without interrupting your visitors is using the “Troubleshoot Mode” in the Health Check plugin:

    There’s some more information about how to use that over here:

    Thread Starter tavestudio


    Appreciate the fast response! So unfortunately I’m unable to provide you access to our staging site right now but happy to share other details here or screenshots if that helps? Software developer as well so happy to discuss specific code if needed.

    What I can say is we’re strict with updates so the only thing updated was this plugin. There are no errors in the wordpress debug.log and the console shows no js errors on page.

    On version 1.6.5 the shortcode just outputs empty html, like this:

    <a class="crp-list-item-container col-sm-6" href=""><div class="crp-feature-image-container crp-feature-image-container--no-image"></div><div class="crp-list-item-title"></div></a>

    whereas on 1.3 we get the correct urls and images inserted here.

    Let me know if I can provide any other specifics information.

    Thread Starter tavestudio


    Just started looking through the diff between 1.3 and 1.6.5, seems that you changed the way options are stored? Could that be related to this issue?

    Plugin Author Brecht


    Are you hooking into our plugin to alter the output?

    None of those classes (crp-list-item-container, col-sm-6, crp-feature-image-container) are actually used by our plugin by default so it sounds like you might be using custom code here?

    Did you do the compatibility problem test?

    Thread Starter tavestudio


    Ah, yes thanks for pointing that out, it appears we are hooking the crp_output_list_item filter (new code to me!) to wrap the contents of $relation permalink, feature_image and title in our own classes. It looks like the output helper has changed so maybe this format is no longer valid…

    Thanks for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.