SEO

How to Set Up Yoast SEO for WordPress

Configure Yoast properly in about twenty minutes. Which settings matter, which to ignore, and why chasing the green light makes your writing worse.

The Yoast SEO plugin settings inside WordPress

Yoast SEO does not make your site rank. What it does is stop you making technical mistakes, and give you one place to control how each page looks in search results.

That is genuinely useful, and it takes about twenty minutes to set up properly. This guide covers what to configure, what to skip, and one habit to avoid.

Before you install it

Only ever run one SEO plugin. Yoast, RankMath and All in One SEO all write the same meta tags. Two of them active at once produces duplicate tags, which is worse than having none.

Already have another one? Export its settings, deactivate and delete it, then install Yoast. Deactivating alone is not enough — some leave their output in place.

Step 1: Install and run the wizard

Plugins → Add New, search Yoast SEO, install and activate. A first-time configuration wizard starts on its own. Work through it honestly.

Site representation

Choose Organization for a business or brand, or Person for a personal blog. This feeds the schema markup that search engines read, so pick the one that is actually true.

Upload a logo while you are there — at least 112×112 pixels, square.

Social profiles

Add your real profile URLs. These become sameAs entries in the schema, which helps search engines connect your site to your accounts. Skip any you do not actually use — an empty or abandoned profile helps nobody.

Step 2: Search appearance — the settings that matter

Go to Yoast SEO → Settings. This is where the real work is.

Content types

For Posts and Pages, leave "Show in search results" on.

Set the title template. The default is usually fine:

%%title%% %%page%% %%sep%% %%sitename%%

That produces "How to Install SSL — Your Site Name".

Media — the one everyone gets wrong

Find Media → Attachment URLs and make sure redirects are enabled.

WordPress creates a separate page for every uploaded image. Those pages have no content, and left indexed they bury your real pages under hundreds of empty ones. Yoast redirects them to the post the image belongs to. Check this setting even if you change nothing else.

Taxonomies

  • Categories — keep indexed. They are useful landing pages.
  • Tags — set to noindex unless you use them deliberately. Most sites have dozens of tags with one post each, and those are thin pages.
  • Format archives — noindex.

Archives

  • Author archives — if you are the only author, disable them. They duplicate your blog page exactly.
  • Date archives — disable. Nobody browses a site by month.

Step 3: The sitemap

Yoast generates one automatically at yourdomain.com/sitemap_index.xml. Open it and confirm it loads.

Then submit it in Google Search Console under Sitemaps. Do this once; it stays current on its own afterwards.

If the sitemap 404s, go to Settings → Permalinks and press Save without changing anything. That rewrites the rules and fixes it almost every time.

Step 4: Connect Search Console

Yoast can verify your site for you. In Yoast SEO → Settings → Site connections, paste the verification code Google gives you.

If you would rather not, verify by DNS record instead — that survives changing plugins or themes later, which the meta tag method does not.

Step 5: Writing a page with Yoast

Under every post you now get a Yoast panel. Three fields matter.

SEO title

Aim for 50–60 characters. Put the important words first, because Google truncates the end. Write it for a human deciding whether to click.

Meta description

Around 150–160 characters. It is not a ranking factor, but it decides whether people click, which matters a great deal. Say what the reader gets.

Leave it empty and Google writes its own from your page — sometimes better than yours, usually worse. Write it.

Focus keyphrase

One phrase per page. Yoast then checks whether you used it in the title, URL, first paragraph and a subheading.

The green light trap

This is the most important part of the page.

Yoast's traffic light is not a ranking score. It is a checklist of surface features. Google has never seen it and does not care about it.

Chasing green produces the writing you have seen a hundred times:

"Looking for how to install SSL certificate? This how to install SSL certificate guide covers how to install SSL certificate on any server. How to install SSL certificate is easier than you think."

That passes several Yoast checks and reads terribly, and Google is now well able to detect exactly this pattern.

Which checks to take seriously

CheckWorth it?
Keyphrase in titleYes
Keyphrase in URLYes
Keyphrase in first paragraphYes, naturally
Meta description lengthYes
Internal links presentYes — genuinely useful
Images have alt textYes, for accessibility too
Keyphrase densityIgnore
Keyphrase in every subheadingIgnore
Sentence lengthUse judgement
Passive voice percentageUse judgement
Transition wordsIgnore

An orange light on a well-written page is completely fine. Publish it.

What Yoast does not do

Worth being clear, because the name implies more than it delivers:

  • It does not make your site faster. See how to increase WordPress speed.
  • It does not get you backlinks.
  • It does not write or improve your content.
  • It does not guarantee indexing. If your site is not appearing at all, check Settings → Reading for the "Discourage search engines" box.

It handles the plumbing. The ranking work is in how to increase your website ranking.

Free or premium?

The free version covers everything above. Premium adds internal link suggestions, multiple keyphrases per page, redirect management and the removal of upsell notices.

The redirect manager is the only part most people genuinely miss, and a free redirect plugin does the same job. Start free.

Common problems

The sitemap returns 404

Go to Settings → Permalinks and press Save. If it persists, another plugin is also generating a sitemap — disable one of them.

My meta description is not showing in Google

Google rewrites descriptions when it thinks its own version fits the query better. This is normal and not a fault. You cannot force it.

Yoast says my page is noindex but I did not set that

Check three places: the per-post Yoast Advanced tab, the content type settings, and Settings → Reading in WordPress itself.

Duplicate meta tags in the page source

A second SEO plugin is still active, or your theme has its own SEO options. Turn off one of them.

Everything went orange after an update

Yoast adjusts its checks between versions. Nothing about your page changed. Ignore it.

Yoast, RankMath or All in One SEO?

PluginSuits
YoastBeginners. The most documentation and the most tutorials.
RankMathMore free features, including schema types and redirects.
All in One SEOA simpler interface with fewer prompts. See the setup guide.

All three do the same essential job. The one you configure properly is the best one, and switching between them rarely changes anything.

Where to go next

Questions people ask

Does Yoast SEO actually improve rankings?
Not by itself. Yoast handles technical plumbing — meta tags, sitemaps, schema, indexing rules — and stops you making mistakes. Rankings come from matching search intent, covering the topic properly and earning links. Yoast removes obstacles rather than creating results.
Do I need to get the green light on every post?
No. The traffic light is a surface checklist, not a ranking score, and Google never sees it. Chasing green produces repetitive writing that Google is well able to detect. An orange light on a well-written page is completely fine.
Can I use Yoast and RankMath at the same time?
No. Both write the same meta tags, so running them together produces duplicates, which is worse than having neither. Export your settings from one, delete it fully rather than just deactivating, then set up the other.
What is the most important Yoast setting?
Attachment URL redirects, under Media. WordPress creates an empty page for every uploaded image, and left indexed those bury your real pages under hundreds of thin ones. Yoast redirects them to the parent post.
Why is my Yoast sitemap showing a 404 error?
Go to Settings then Permalinks and click Save without changing anything, which rewrites the rewrite rules. If it still fails, another plugin is also generating a sitemap and the two are conflicting.
Should I index tags and categories?
Keep categories indexed, because they make useful landing pages. Set tags to noindex unless you use them deliberately — most sites end up with dozens of tags holding one post each, which are thin pages.
Is Yoast Premium worth paying for?
For most sites, no. The free version covers everything essential. Premium adds internal link suggestions, multiple keyphrases and redirect management — and a free redirect plugin does that last part just as well.
Why does Google show a different meta description than the one I wrote?
Google rewrites descriptions when it thinks its own version matches the query better. This is normal behaviour and cannot be forced. Keep writing good descriptions anyway, because they are used most of the time.
Should I turn off author and date archives?
Yes for most sites. If you are the only author, the author archive duplicates your blog page exactly. Date archives are almost never browsed. Both create duplicate content with no benefit.
Which is better, Yoast or RankMath?
They do the same essential job. Yoast has more documentation and tutorials, which helps beginners. RankMath includes more in its free tier, such as extra schema types and redirects. The one you configure properly is the better one.

Written by Habib Baloch

I build Android apps, websites and Ubuntu servers, and write down exactly how I did it.

Ask me about this guide →