SEO

WordPress SEO: how to set up and rank a WordPress site.

WordPress SEO step by step: settings to check first, your SEO plugin, speed, tags and attachment pages. Plus the signs that WordPress is starting to hold your site back.

Illustration: a WordPress SEO settings panel with correct and incorrect settings and an example count of posts, pages, categories, tags and attachment pages in Google's index

I have built and optimised WordPress sites for years. Most of the time I see the same picture: the system is fine, but the site carries several years of added plugins, theme changes and archives nobody remembers. This guide will help you check whether your WordPress site is helping you in Google or holding you back.

Is WordPress good for SEO?

Yes. WordPress gives you clean URLs, a sitemap, full control over titles and content, and with an SEO plugin also structured data. Google does not judge a site by the system it runs on, but by what it gets: content, URLs, speed, links.

The problems start elsewhere:

  • a heavy theme or page builder that loads lots of scripts and styles on every page,
  • dozens of plugins, some doing the same job or no longer needed,
  • automatically created archives: tags, authors, dates, attachment pages,
  • settings left over from launch, such as an indexing block from the staging site.

Five settings to check first

WhereWhat to setWhy
Settings → Reading"Discourage search engines from indexing this site" uncheckedWhen checked, it asks Google not to index the site. It is often left on after launch.
Settings → Permalinks"Post name" or another readable structureDefault URLs like ?p=123 tell nothing to people or Google.
SitemapOne working sitemap submitted in Search ConsoleWordPress has its own sitemap since 5.5, SEO plugins often replace it.
Attachment pagesDisabled or redirected to the fileEvery image can get its own near-empty page.
SEO pluginExactly oneTwo at once duplicate canonicals, sitemaps and structured data.
I check these settings at the start of every WordPress site audit.

Search engine visibility

Under Settings → Reading there is a “Discourage search engines from indexing this site” box. It is often checked on purpose while the site is being built and nobody unchecks it later. According to the WordPress documentation it is only a request to search engines, not an access block, but Google honours it. WordPress also turns off its own sitemap while it is checked.

The default format is URLs like /?p=123. The “Post name” format, /post-name/, is better. If the site is already live and gets traffic, do not change the URL structure without redirects. Every old URL needs a 301 to its new equivalent.

Sitemap

Since version 5.5 WordPress creates a sitemap at /wp-sitemap.xml and adds it to robots.txt. It covers posts, pages, categories, tags and authors. SEO plugins usually turn it off and replace it with their own. Check which sitemap actually works and submit that one in Search Console. Look inside too: if it lists tags, authors or content types you do not want in Google, switch them off in the plugin settings.

Attachment pages

Every image added to the media library can get its own page showing just the image. On new installs since version 6.4 these pages are disabled by default. On sites created earlier they keep working after the update. Most SEO plugins have an option that redirects them to the file itself.

One SEO plugin

Yoast SEO, Rank Math and SEOPress handle the basics in a similar way. The trouble starts when two are active, for example after switching plugins without removing the old one. The page source can then contain two different titles, two canonicals and duplicated structured data.

Tags, authors and dates: archives that clutter the index

WordPress automatically creates post listings for every tag, category, author and month. On a blog with 50 posts and 200 tags that easily means several hundred pages, most of them with one or two posts.

CommonEvery topic gets a new tagHundreds of single-post tags, author archives on a single-author site, date archives, all of it in the sitemap.
BetterA few well-planned categoriesCategories with a description that can rank for broader queries. Tags and archives without value set to noindex.
Categories can work as landing pages. Most tags cannot.

What to do about it:

  1. Treat categories as landing pages. Add a short description, a proper title and links to the most important posts.
  2. Tags with one or two posts should be set to noindex or merged.
  3. The author archive on a single-author site is usually not needed in the index.
  4. Date archives almost never match what people search for.

Also make sure a category, a tag and a post do not compete for the same query. More on that in the keyword cannibalization entry.

Speed: theme and plugins

WordPress with a lightweight theme can be fast. It usually becomes slow because of page builders, sliders, fonts from several sources, chat scripts and plugins that load on every page even though they are needed on one.

Where to start:

  • Count your plugins and remove those nobody uses. Each one is extra code and a risk during updates.
  • Check what loads on the home page. Browser tools or PageSpeed Insights show which scripts and styles slow the page down most.
  • Images in WebP and at the size they are displayed. A 4000 px photo placed in a 600 px column is a typical mistake.
  • Caching and good hosting. A cache plugin helps, but it will not fix a heavy theme.

Measure speed on mobile and look at real-user data in the Core Web Vitals report in Search Console. More in the Core Web Vitals entry.

WooCommerce and multilingual sites

A WooCommerce store has extra problems: filters and sorting create thousands of URLs, product variants duplicate content and discontinued products leave 404 errors. I cover this in more detail in faceted navigation and SEO.

Language versions are usually built with plugins such as WPML or Polylang. The most common mistakes are missing hreflang between versions, unreviewed machine translation and incomplete versions where some pages stay in the original language. More on the international SEO page.

How to check WordPress SEO in 10 minutes

  1. Search Google for site:yourdomain.com and look at what is indexed. Tags, attachments and test pages stand out immediately.
  2. In Search Console open the Pages report and check how many URLs are excluded and why.
  3. View the home page source (Ctrl+U) and search for noindex. It should not be there.
  4. Test the site in PageSpeed Insights on mobile.
  5. Count the plugins in the dashboard and write down what each one is for.

When WordPress starts holding your site back

Not every site has to stay on WordPress forever. A migration is worth pricing when:

  • the site stays slow on mobile despite optimisation,
  • every new feature means another plugin,
  • updates keep breaking things or nobody runs them,
  • the site is a simple company website and maintenance keeps getting more expensive.

That was the case with my own site and with Domki Borsk. For Domki Borsk the mobile PageSpeed score went from 58 on WordPress to 98 after the move, and Google traffic did not drop because every URL was kept. The details are in the Domki Borsk migration case study.

A migration always carries a traffic risk, though. If your WordPress site is fast, easy to manage and growing, it is better to refine it than to move it. If you are not sure which way to go, start with an SEO audit: it will show whether the problem lies in the settings or in the system itself.

Sources

  1. Reading Settings Screen - WordPress.org Documentation
  2. Permalinks Settings Screen - WordPress.org Documentation
  3. New XML Sitemaps Functionality in WordPress 5.5 - Make WordPress Core
  4. Changes to attachment pages - Make WordPress Core

Was this article helpful?

About the author. Maciek - SEO & GEO consultant with 10+ years of experience, formerly Head of SEO at companies including Gemini Polska and Staples Solutions. More about me

WordPress SEO questions.

Is WordPress good for SEO?

Yes, as long as it is set up well. It gives you clean URLs, a sitemap and full control over content. WordPress sites usually lose in Google not because of the system itself, but because of a slow theme, dozens of plugins and unattended archives that clutter the index.

Which WordPress SEO plugin is best?

Yoast SEO, Rank Math and SEOPress handle the basics in a similar way: titles, descriptions, the sitemap, noindex for selected pages and structured data. Having exactly one matters more than which one. Two SEO plugins at once can duplicate sitemaps, canonical tags and structured data.

Is the built-in WordPress sitemap enough?

For a small site, usually yes. Since version 5.5 WordPress creates a sitemap at /wp-sitemap.xml. SEO plugins usually replace it with their own. Submit the one that actually works in Search Console and check that it does not list tags and archives you do not want indexed.

Do WordPress tags hurt SEO?

Not by themselves, but they are easy to overdo. Every tag is a separate page listing posts. When there are more tags than posts and most tags have a single post, you end up with hundreds of near-empty pages. Set such tags to noindex or merge them into a few meaningful categories.

Should I move my site off WordPress for SEO?

Not always. If the site is fast, easy to manage and traffic is growing, a migration makes no sense. Consider it when the site stays slow despite optimisation, plugin updates keep breaking things or maintenance costs keep rising. In that case, keep your URLs or redirect them one to one.