Hi @nmm20, sorry for the delay.
How do you do that “Related” section? Are you using a plugin or is it coming from the theme? If it is a plugin, what is the plugin? If it is the theme, what is the theme? I will try to replicate it on my end.
Looking forward to hearing from you.
Kind regards,
Herman 😊
Thread Starter
nmm20
(@nmm20)
Hi Herman, I’m using the “Related Posts” feature in Jetpack. It can be found under the settings of Jetpack in the “traffic” section.
Thread Starter
nmm20
(@nmm20)
Hi Herman, any update here?
Hi @nmm20,
I am so sorry, I am not sure how I can miss this 🤦♂️
Please lend me a time to replicate this on my end. I will keep you updated with whatever I get.
Kind regards,
Herman 😊
Hi @nmm20, sorry for the one-month delay 😐
Anyway, I was able to replicate this. I will bring this to the team to make it compatible with Jetpack. Thank you for reporting and we are sorry for the inconvenience you may have because of this.
Further, you might want to use our Astra theme that has Related Post native feature and also fully compatible with this plugin.
Kind regards,
Herman 😊
Hi @nmm20,
Please try adding the following snippet to your site
function jetpackme_exclude_unlist_posts( $exclude_post_ids, $post_id ) {
$unlist_posts = get_option( 'unlist_posts' );
if ( ! is_array( $exclude_post_ids ) ) {
$exclude_post_ids = array();
}
if ( is_array( $unlist_posts ) ) {
$exclude_post_ids = array_merge( $unlist_posts, $exclude_post_ids );
}
return $exclude_post_ids;
}
add_filter( 'jetpack_relatedposts_filter_exclude_post_ids', 'jetpackme_exclude_unlist_posts', 20, 2 );
See if it works and please let us know how you go.
Kind regards,
Herman 😊