• Resolved crdunst

    (@crdunst)


    Hi, just trying your plugin out for a client site, it’s working well so far.

    My question is – is it possible to turn off the related post links that get dropped in the post content? We’d still want the ‘linking’ to be formed, so we can display related posts in a widget, but we just don’t want them in the main content area.

    I know I can hide them with CSS, but is it possible to switch that off using a filter or something and just use the widget?

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter crdunst

    (@crdunst)

    Don’t worry, I found it. Thanks for building in the filter – it’s reassuring to see plugins built the correct way and with documentation ??

    https://www.relatedpostsforwp.com/documentation/disable-related-posts-under-posts/

    Plugin Author Barry Kooij

    (@barrykooij)

    Glad to hear you’ve found the filter! ??

    Kind Regards,

    Barry Kooij

    Hi, I’m wondering if this filter is still working. I have added it to my theme’s files but the related posts are still showing up in the default position. Is there a certain requirement as to where in the files it goes or what the format needs to be?

    Thanks!

    Thread Starter crdunst

    (@crdunst)

    Hi @itanders, as per that link above, that snippet is all you need, simply add it to your functions.php file in your theme:

    add_filter( 'rp4wp_append_content', '__return_false' );

    The plugin is well written – it will apply that filter every time it runs. By adding it to your functions file, you’re just letting your WordPress installation know you have a filter to add whenever the filter is applied.

    Thanks for your help @crdunst !

    I had it set up that way…so I uninstalled and reinstalled the plugin and everything is working great now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Switch off related in content’ is closed to new replies.