I noticed a couple of my test pages have been appearing in Google recently.
But they are not linked from any page or any menu.
Note I’ve also disabled all feeds.
Could they be coming from the theme somewhere?
How is Google finding them?
Hey Alan,
If you publish pages they will be found by search engines, it doesn’t matter if they are not linked from menus etc.
Best regards,
Rikard
Thanks Rikard
But do you know specifically how the search engines are finding these pages?
It just doesn’t make sense if they’re not in a menu or feed…
Hey!
Please add following code to functions.php file in Appearance > Editor
add_filter('avf_set_follow','avia_set_nofollow');
function avia_set_nofollow(){
if(is_page(array(59,79))){
$meta = '<meta name="robots" content="noindex, follow" />' . "\n";
}
return $meta;
}
This will hide page with ID 59 and 79 from Google. You can replace the page ID’s with your pages to hide them from Google.
Regards,
Yigit
Ahhh, haaa! :D
From your code, does that mean it was Avia that was leaking the info?