I think not. Because it’s not indexing the result page:
See:
<?php if (is_search()) { ?>
if is Search doesn’t index or follow the page (for example to not show duplicated content). But you can remove the code if you feel you are losing views.
I was reading an article about this. Even if WordPress doesn’t generate the /s=X page automatically, some plugins or even users can generate.
My recommendation is to keep the code.
Related Posts:
- NoFollow Entire Website
- Why does the header set X-Robots-Tag apply to all pages?
- How to noindex nofollow custom post type?
- Not able to remove NOODP tag from wordpress site [closed]
- Force meta data on specific product type
- How to noindex automatically all post of a specific category? [closed]
- Setting up robots.txt with Yoast’s Seo plugin
- How should I remove no-follow tag from the wordpress website?
- Can’t remove noindex meta tag from head
- how to find the layout page in my wordpress website
- why google stopped indexing my website and how to fix it
- How to remove (or meta noindex) at page /?comments_popup=
- Nofollow external links
- How to add a filter to all widget output
- Removing “Noindex, follow” from pages [closed]
- How to use wp_rel_nofollow to add nofollow to external links only?
- Editing the Comment Reply Link
- A plugin for having rel=”nofollow” in posts?
- Preventing Search Engines Indexing Pages 2, 3 and More?
- How to set all external links to a certain domain to “nofollow”?
- How to add nofollow on all external links without plugin?
- Change to nofollow tag in wp-login.php
- How to restrict access to wp-content, wp-includes and all sub-folders
- How to add nofollow site-wide
- Prevent Indexing of 404 Page
- How to make “more” or “continue reading” links on excerpts nofollow?
- breadcrumbs & rel=”nofollow”
- How to add rel nofollow to this?
- Set noindex page-comment from Pages 2, 3 and More?
- Remove “nofollow” from widget_text
- Removing rel=”nofollow” from links posted in Post Content
- Adding nofollow to a PHP generated Nav
- How to noindex for certain custom post type without using plugins..?
- Blank Pages with # URL & Google
- How to change all external links to “nofollow” but only by user role
- How to automatically nofollow a set domains? (I seem to have half of the answer)
- Removing noindex posts from wp_query
- How to change all external links to “nofollow” but only for Contributor role?
- How to set Noindex to all wordpress pages in a catergory?
- Allow Google crawler to crawl specific Author pages
- How to add rel=”nofollow” to wp_list_pages?
- How To Remove a Tag?
- how to 301 redirect from a plugin folder
- Adding rel=”nofollow” to external links in posts?
- Why is Google Search Console getting X-Robots-Tag noindex?
- Insert nofollow in a “Powered By” link, except in the homepage [closed]
- Noindex Posts From Certain Authors In WordPress
- How to set all external links from a certain user to “nofollow”?
- Remove nofollow from specific internal links
- Noindex subscriber author page
- Detect and make links nofollow in author description
- Check If search query contains something?
- Removing calls to noindex() and wp_no_robots()
- Remove Noindex?
- WordPress Embed Page no-index meta data missing
- How can I no-index specific PDF files in my Avada WordPress media library so that they don’t appear in search results?
- How can I noindex my archive pages?
- Remove WP Core canonical for category pagination
- Should I set a page as “No-index” if I include it’s content within the front-Page.php via this method?
- Will ‘private’ status prevent Woocommerce products to be indexed by search engines?
- Getting the contents of wp_head while in admin?
- Nofollow attribute in WordPress link embed code?
- How Google Indexer should only index published pages
- Why are some user agents still getting a meta robots tag with noindex from my site?
- Google Indexed sub pages in wordpress pagination in post
- How to non index my website page links?
- Prevent “nofollow” from Being Inserted into BBPress Posts
- Adding list of Indexes in wordpress document
- Add nofollow to custom field link and make domain exceptions?
- WordPress is adding rel=”nofollow” and target=”_blank” to internal links in posts and pages
- redirect attachment page to category page
- How can i put image to come first than the title?
- How to make certain content of the post noindex and no follow. not entire post?
- Auto Nofollow attribute in custom field links. How?
- how to make follow?
- Automatically set posts to NoIndex depending on category?
- Anchors in WordPress not followed/ indexed in sitemap.xml
- Not Being Indexed by Search Engines [closed]
- change link attributes
- Page navigation not working correctly on index but only on categories
- WordPress adds ‘noindex’ tag to search results. Anything I can do about it?
- What is responsible for triggering “robots-template.php” file or “wp_robots_noindex()” core function out of it?
- Hide my staging subdomains from search results without impacting the visibility of the root domain
- What purpose does /embed/ URL have and how to avoid SEO problems?
- Remove nofollow attribute from social widget links
- Remove rel=”nofollow ugc” from links in comments
- Notice: Undefined index: h in themes/dentario/fw/core/core.wp.php on line 1515
- website not indexed
- How to add ‘nofollow’ flag to all Tag archive hyperlinks?