|
/ Documentation /Developers Documentation/ Disable Feed Indexing in SureRank surerank_disable_feed_indexing

Disable Feed Indexing in SureRank surerank_disable_feed_indexing

Filter: surerank_disable_feed_indexing

Description: This filter allows you to disable the indexing of your website’s feed URLs (/feed) by adding a noindex directive. It is useful when you want to prevent feed pages from appearing in search engine results, especially if you’re focusing SEO efforts only on core content pages.

Source: inc/frontend/feed.php

Use Case: To prevent feed URLs like https://example.com/feed/ or post-specific feed URLs from being indexed by search engines. This helps in reducing crawl budget waste and ensures only relevant pages are considered for SEO.

Usage: Disable indexing feeds

Example:

PHP
// Disable Feed Indexing in SureRank
add_filter( 'surerank_disable_feed_indexing', '__return_true' );

You can add the example code to your child theme’s functions.php file or use a plugin like Code Snippets to safely insert custom code. Using a code snippet plugin is recommended for easier management and to ensure the code remains active even if you switch themes.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top