Will AI kill SEO?
TL;DR probably not
Back in August 2020, Version 5.5 of WordPress introduced automatic XML sitemaps to help search engines better understand your website structure.
Here’s the original announcement from the 5.5 documentation:
Now, by default, WordPress 5.5 includes an XML sitemap that helps search engines discover your most important pages from the very minute you go live.
So more people will find your site sooner, giving you more time to engage, retain and convert them to scribers, customers or whatever fits your definition of success.
Before this, website owners, developers, SEO agencies and so on had to use plugins like Yoast SEO, XML Sitemap Generator for Google, or similar. Plugins are fine here and there, but as more and more are required to achieve and maintain bespoke functionality, they can lead to bloated and clunky backends that impact frontend performance.
So the change made life a lot easier for website owners and third parties like SEO agencies.
That said, all pages being included automatically isn’t always desireable. There are a bunch of reasons you might want to include one/some page(s), or even full taxonomies:
And here’s how to do it. In the spirit of minimising backend bloat we’ll just cover plugin-free options here.
Head to Appearance – Theme file editor – functions.php from your WordPress backend (note you need admin privileges), then add this code snippet:
function exclude_pages_from_sitemap($post_ids, $post_type) {
if ($post_type === 'page') {
$post_ids[] = 42;
$post_ids[] = 99;
}
return $post_ids;
}
add_filter('wp_sitemaps_posts_exclude', 'exclude_pages_from_sitemap', 10, 2);
Replace the placeholder ids (42, 99) with the IDs of the pages you want to exclude. To find these, head to Pages then hover over the name of each desired page. In the bottom left of the screen you’ll see something like:
https://plaudit.agency/wp-admin/post.php?post=311&action=edit
The number after post= is the ID
To remove an entire post type, head to functions.php and add this code snippet:
function remove_post_type_from_sitemap($args, $post_type) {
if ($post_type === 'portfolio') {
$args['exclude_from_search'] = true;
}
return $args;
}
add_filter('wp_sitemaps_post_type_args', 'remove_post_type_from_sitemap', 10, 2);
The post_type name is case sensitive, so make sure it matches exactly with the name in the function where you registered the post type.
It’s important to keep in mind that removing pages from the WordPress sitemap doesn’t mean they won’t be indexed at all. What you’re doing is letting Google know you don’t think they should be indexed.
Here are some use cases for removing pages from the sitemaps that might end up being indexed:
If you want to force Google and other search engines not to index your content at all, there are additional actions you can take:
If you’re dealing with index bloat and crawl inefficiencies or just want to tidy up the signals you’re sending to search engines, we can help. Get in touch for a technical SEO audit or a quick chat.
TL;DR probably not
With actionable fixes so you can do the same
SEO has changed so much, but it also hasn't changed at all