Jump to content

SEO Tip: Noindex Filter URLs (Listings Adv. Filtering)


Miguel B.

Recommended Posts

Hi everyone,

I’m not sure if this has already been shared; I didn’t see anything about it here, so I thought I’d post it just in case

When using the Listings Adv. Filtering widget and enabling a custom field as a filter in Theme Customization, for example, using: [filter name="jr_color"]

JReviews generates URLs with parameters like:  /category/?jr_color=red

From an SEO point of view, it’s usually better not to index these filtered URLs to avoid duplicate content and diluted category authority.

In my case I kept:

* Categories → indexable

* Listings → indexable

* Filter URLs → noindex, follow

I added this small snippet to the theme's functions.php:

add_action('wp_head', function() {
    if (!empty($_GET)) {
        echo '<meta name="robots" content="noindex, follow">' . "\n";
    }
});

Everything works perfectly and doesn’t affect JReviews functionality at all.

Hope it helps someone

  • Like 3
Link to comment
×
×
  • Create New...