Hiding Related Posts on Product Pages
-
Hi, all.
I am using this function to suppress the Jetpack Related Posts feature on product pages in my Storefront child theme:
function lrc_jp_no_related_posts_for_products( $options ) { if ( is_product() ) { $options['enabled'] = false; } return $options; }
along with this filter:
add_filter( 'jetpack_relatedposts_filter_options', 'lrc_jp_no_related_posts_for_products' );
It was working for a long time, but I just noticed Related Posts are back on my product pages. I’m not sure when it happened.
All of my plugins and the theme are up-to-date, and I have cleared all of my caches.
Any idea what might be happening?
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hiding Related Posts on Product Pages’ is closed to new replies.