• Resolved ValerioM

    (@valeriom)


    I’m using the related post jetpack, but if I remove the options:
    “Show date” and “Show context”
    all related posts disappear from my site.

    How can I fix?

    • This topic was modified 7 years, 9 months ago by ValerioM.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Same exact thing happened to me. I went in and removed date and context as well after noticing it appeared after the recent update. All related posts instantly vanished. I tried disconnecting and reconnecting Jetpack and performing a full sync, neither of which worked. I submitted a support request through the official Jetpack support form and waiting to hear back. If I get a solution I will post it here. If you find a solution before me, please let me know.

    Thanks

    Thread Starter ValerioM

    (@valeriom)

    Thank you for your answer. We hope to get a solution.

    From jet pack support:

    Thanks for the report! We’re tracking this issue here:

    https://github.com/Automattic/jetpack/issues/6323

    There’s a work-around in that issue that involves using an mu-plugin; we’re also working on a patch but I don’t have a timeline for when it will be released, but hopefully soon!

    Found this workaround/solution in another thread and it also works.

    Add the below function to your functions.php. I had to flush my cache and then go into jetpack settings to disable related posts and then re-enable. Might have to go into customizer again too or it might just show up on your blog by just adding the following code:

    function jeherve_force_rp_on( $options ) {
        $options['enabled'] = true;
    
        return $options;
    }
    add_filter( 'jetpack_relatedposts_filter_options', 'jeherve_force_rp_on' );
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    @markob17 The GitHub issue and the snippet above are indeed 2 valid ways of solving this issue until we release the next version of Jetpack with a fix. Thanks for jumping in with your comments!

    @valeriom Let me know if it helped!

    @jeherve No problem! Thank you for the great plugin and support.

    Hello guys! I have been following the thread. Thanks for this awesome plugin.

    The fix worked for me but how do I remove the date without going through Customizer again.

    Many thanks

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    how do I remove the date without going through Customizer again.

    You can use the customizer if you’d like. Another option would be to do it through code, with this snippet:

    function jetpackcom_no_related_post_dates( $options ) {
    	$options['show_date'] = false;
    
    	return $options;
    }
    add_filter( 'jetpack_relatedposts_filter_options', 'jetpackcom_no_related_post_dates' );

    Worked perfect! Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Related post disappear’ is closed to new replies.