Skip to main content
6 votes

How to set Noindex to all wordpress pages in a catergory?

As the previous code I posted didnt work for the OP, clutching at straws, we can try to obtain the same outcome using get_the_category As the OP stated he was using YOAST, i'll wrap this function into ...
Malisa's user avatar
  • 589
3 votes

How to set Noindex to all wordpress pages in a catergory?

By noindex, I'm assuming you mean meta robots noindex, if so you could manually do this by utilizing the in_category function adding the following to your theme's header between the <head></...
Malisa's user avatar
  • 589
2 votes
Accepted

Why does the header set X-Robots-Tag apply to all pages?

The E flag is being used for LiteSpeed as opposed to ENV for Apache. Where did you get this from? The LiteSpeed docs appear to show that LiteSpeed is the same as Apache in this respect and require ...
MrWhite's user avatar
  • 3,881
2 votes

Why is Google Search Console getting X-Robots-Tag noindex?

I have a nginx directive that set X-Robots-Tag to none for every page. I thought it was some kind of null value for the header... Now that I took some time to RTFM, I learned that none means both ...
Manumie's user avatar
  • 43
2 votes

Not able to remove NOODP tag from wordpress site

Your Yoast SEO plugin version is outdated. If you update your plugin to the latest version, at this moment 17.2.1, your issue will be resolved. There was an issue resolved in version 4.6 that affects ...
Santiago Cerro López's user avatar
2 votes

Preventing Search Engines Indexing Pages 2, 3 and More?

If it is because of SEO and the warnings in the Google Search console, these can be ignored. wp / Page2 and so on should still be indexed. The this answer and the article with the answer from google: ...
Axel Metayer's user avatar
1 vote

<meta name="robots" duplicate issue

this question is too generic to be answered. You need to debug and understand where those 2 meta are created. As a first step I would disaable all the plugin and enable one by one to see if it's ...
alula's user avatar
  • 11
1 vote

Notice: Undefined index: h in themes/dentario/fw/core/core.wp.php on line 1515

First of all, a PHP Notice is just that: a notice. It's not an error. PHP is simply letting you know there is a minor issue with the code. The code will probably still work OK. 98% of site PHP logs ...
BlueDogRanch's user avatar
1 vote

website not indexed

If you go to example.com/robots.txt, that will show you the directives for search engine bots. You can also check the meta tags on individual pages to see if they're being blocked. Best option would ...
Caleb's user avatar
  • 1,788
1 vote
Accepted

Hide my staging subdomains from search results without impacting the visibility of the root domain

Use a Plugin First of all, your CODE looks fine. However, it's better if you put that code in a small custom Plugin. That way, you can easily keep the plugin active on the development and staging ...
Fayaz's user avatar
  • 8,937
1 vote

Wordpress adds 'noindex' tag to search results. Anything I can do about it?

For technical SEO reasons, it's best to noindex internal search results generated by WordPress. This is because it's almost always considered detrimental to the search engine experience... having &...
Jesse Nickles's user avatar
1 vote

Set noindex page-comment from Pages 2, 3 and More?

function noindex_comments_pages() { global $cpage; if (!empty($cpage) && $cpage > 1) { echo '<meta name="robots" content="noindex">'; echo "\n&...
Boyzen's user avatar
  • 23
1 vote

Force meta data on specific product type

You can try the wp_head hook: add_action( 'wp_head', 'check_for_enviso_group_ticket' ); function check_for_enviso_group_ticket() { if ( is_product() && ( 'enviso_group_ticket' == ...
Ivan Shatsky's user avatar
1 vote
Accepted

Noindex Posts From Certain Authors In Wordpress

From codex: is_author() is a conditional tag which determines whether the query is for an existing author archive page. so it does not work for your scope. Best solution, instead of using the ...
Andrea Somovigo's user avatar
1 vote

How to noindex automatically all post of a specific category?

Being excluded-cat and excluded-cat-1 the categories you want to exclude from indexing: add_action('wp_head','AS_exclude_category_from_indexing'); function AS_exclude_category_from_indexing(){ $...
Andrea Somovigo's user avatar
1 vote

Noindex subscriber author page

The easiest way to accomplish this is to conditionally call wp_no_robots() (or echo your custom <meta> element) in a wp_head action hook. This has the added benefit of being modular - you could ...
bosco's user avatar
  • 6,815
1 vote

Noindex subscriber author page

The function you want is get_userdata(). Since you need to do this outside the loop, the process is a little less straight-forward. The first thing you need to do is set up a variable called $curauth ...
Cedon's user avatar
  • 1,659
1 vote
Accepted

Check If search query contains something?

After the question's update, I think that you need to set the canonical URL: add_action( 'wp_head', 'cyb_search_results_canonical_URL' ); function cyb_search_results_canonical_URL() { if( ...
cybmeta's user avatar
  • 20.5k

Only top scored, non community-wiki answers of a minimum length are eligible