Key takeaways
- WordPress core already makes a sitemap at /wp-sitemap.xml, and turns it off when you discourage search engines. Know what it includes before adding another one.
- Every category, tag, author and date archive is a page Google can find. Decide which ones deserve to be indexed.
- Since WordPress 6.4, new sites redirect attachment pages to the file itself. Older sites keep them unless you change the setting.
- Power users can control robots meta tags in code with the wp_robots filter. A noindex only works if robots.txt does not block the page.
- On migrations, run WP-CLI search-replace with –dry-run first. It handles serialised data that a plain database replace breaks.
This WordPress SEO guide is for people who already have the basics in place and want to understand what WordPress itself does for search, and where to take control. Bloggers will find the habits that matter more than settings; power users will find the hooks and commands I use when I do WordPress SEO consulting on larger sites.
If you are still setting up a site, start with my guide to the basic WordPress SEO setup you can do yourself, which covers the search engine visibility setting, permalinks, titles and HTTPS. I will not repeat those here.
I first published this article in 2025 and have rewritten it, removing statistics I could not trace to any source and the product recommendations.
What WordPress already does for SEO
A lot of WordPress SEO advice starts by installing something. I start by checking what core already does, because adding a second system on top of the first is how many of the conflicts I find in audits begin.
Since version 5.5, WordPress has its own XML sitemaps. The WordPress core announcement explains that it exposes “a sitemap index at /wp-sitemap.xml” and creates sitemaps for “all public and publicly queryable post types and taxonomies”, plus author archives and the homepage. Each sitemap holds “a (filterable) maximum of 2000 entries.” It also says that when you discourage search engines from indexing the site, the sitemaps are disabled.
Three things follow from that:
- If a plugin or theme also makes a sitemap, check which one you submitted in Search Console and that the other is switched off. Two sitemaps listing different URLs send mixed signals.
- Any public custom post type, such as one added by a form, events or portfolio plugin, may appear in the sitemap. Look at the index and ask whether each one should be there.
- Author archives are included. On a single-author blog they mostly duplicate the blog page.
The archive pages WordPress creates for you
Every time you add a category, a tag or a new author, WordPress creates a page for it. Bloggers rarely think of these as pages, but Google does. This is how I usually treat them:
| Archive | When it helps | What I usually do |
|---|---|---|
| Category | A real topic with several posts | Keep indexed, add a short introduction |
| Tag | Only when tags are used consistently | Keep a few strong ones, noindex or remove the rest |
| Author | Several authors with their own profiles | Keep on multi-author blogs, review on single-author ones |
| Date | Rarely, mostly news sites | Usually noindex or turn off links to them |
| Attachment page | Almost never | Redirect to the file or the parent post |
Attachment pages on older sites
Attachment pages are a page per uploaded image, often with nothing on it but the image. WordPress changed this in version 6.4. The change note says it “introduces a wp_attachment_pages_enabled database option,” that on new sites “attachment pages are redirected to the attachment URL,” and that existing sites “continue to work as is.” If your blog is older than that release, your attachment pages are probably still live. In audits I check a few image URLs from older posts to see which behaviour the site has.
Tags are where blogs get messy
The most common archive problem I find on blogs is a long list of tags used once or twice each. Each one is a thin page that repeats a post that already exists. Before adding a tag, ask whether you will use it again on at least a few posts. If not, leave it out.
For bloggers – habits that matter more than settings
Settings are done once. Writing habits repeat on every post, so they matter more over time. These are the ones I check on blogs:
- One main category per post. Pick the topic the post belongs to. Several categories on every post make each category archive look like the others.
- Update, do not duplicate. When a topic changes, update the existing post and keep its URL. A second post on the same question usually splits attention between two pages.
- Headings in order. The post title is the main heading; inside the post, use heading blocks in order rather than bold text styled to look like headings.
- Write the excerpt. Archives, feeds and some themes show it. An automatic excerpt is often the first lines of the introduction, cut in the middle.
- Link to your own posts. When you publish, add a link from one or two older posts on the same topic to the new one. Navigation alone rarely does this.
- Describe images. Add alt text that says what the image shows, and use file names that make sense.
None of these needs a plugin. They need a short checklist that you look at before pressing Publish.
For power users – control indexing in one place
When a site has a theme, several plugins and some custom code, the robots meta tag can be changed in more than one place. I prefer one place that I can read.
WordPress 5.7 added the wp_robots filter. The developer reference describes it as a filter for “the directives to be included in the ‘robots’ meta tag,” and notes that “The meta tag will only be included as necessary.” This is an example in the style of the reference’s user notes, which noindexes date archives:
add_filter( 'wp_robots', function( $robots ) {
if ( is_date() ) {
$robots['noindex'] = true;
}
return $robots;
} );
Removing author archives from the core sitemap on a single-author blog follows the example in the sitemaps announcement, which returns false for the users provider:
add_filter( 'wp_sitemaps_add_provider', function( $provider, $name ) {
return ( 'users' === $name ) ? false : $provider;
}, 10, 2 );
Test code like this on a staging copy first, and keep it in a small site plugin rather than in the theme, so it survives a theme change.
Do not block what you want noindexed
The mistake I see most with power users is combining a noindex with a robots.txt block for the same URLs. Google’s page on blocking indexing with noindex is clear: “For the noindex rule to be effective, the page or resource must not be blocked by a robots.txt file.” If Googlebot cannot fetch the page, it never sees the noindex.
After any change, view the source of an affected page and confirm there is one robots meta tag, with the value you expect.
Staging, migrations and the search-replace step
Many of the worst WordPress SEO problems I have been asked to fix started on a launch day. A staging site went live with search engines still discouraged, or URLs from the old domain stayed inside the content.
For changing URLs in the database, I use WP-CLI. The search-replace command documentation says it “Searches through all rows in a selection of tables and replaces appearances of the first string with the second string,” and that it “intelligently handles PHP serialized data.” That matters, because WordPress stores many settings as serialised data, and a plain text replace in a database export can break them. The –dry-run flag will “Run the entire search/replace operation and show report, but don’t save changes to the database.”
My launch checklist for WordPress is short:
- Back up the database and files.
- Run search-replace with –dry-run, read the report, then run it for real.
- Untick “Discourage search engines” in Settings, Reading on the live site.
- Open /wp-sitemap.xml (or your chosen sitemap) and confirm it loads with live URLs.
- Check robots.txt and the robots meta tag on a few key pages.
- Submit the sitemap in Search Console and watch the Page indexing report over the next weeks.
A monthly WordPress SEO routine
Once the setup is right, a blog needs a light, regular check rather than constant changes. Once a month I look at:
- Search Console’s Page indexing report, for new “noindex” or “blocked” pages that should be indexed.
- The Performance report, for posts that are losing clicks and need an update.
- The sitemap index, for content types that appeared after a plugin was installed.
- New tags created in the last month, and whether they will be used again.
- Plugin and theme updates that changed templates, especially headings and archive pages.
Most WordPress SEO problems I fix were not caused by a missing plugin; they were caused by two things doing the same job without anyone noticing.
Write down what you changed and when. When traffic moves, that list is the first thing I ask for.
FAQ
Does WordPress need an SEO plugin?
Not to start. Core already creates sitemaps and outputs a robots meta tag when needed, and titles come from your theme. A plugin helps with per-page titles, descriptions and structured data, but check that it does not duplicate what core and your theme already do.
Should I noindex tag pages in WordPress?
Tag archives that hold only one or two posts add little and repeat existing posts. Keep a few strong, consistently used tags, and noindex or remove the rest. Make sure robots.txt does not block the pages you noindex.
Where is the WordPress XML sitemap?
Core WordPress serves a sitemap index at /wp-sitemap.xml since version 5.5. If a plugin also creates its own sitemap, check which one is active and submit only that one in Search Console.
Are WordPress attachment pages bad for SEO?
They are usually thin pages with only an image. Since WordPress 6.4, new sites redirect them to the file, but older sites keep them unless the setting is changed.




