SEO · 3 min read

How to do SEO on a WordPress website

Quick answer

To do SEO on WordPress, use a fast, lightweight theme, install one SEO plugin (Rank Math or Yoast), set clean permalinks, write a unique title and meta description for every page, compress and label images, add caching, connect Google Search Console and submit the sitemap the plugin creates. Then publish helpful content regularly.

Why WordPress SEO needs a little setup

WordPress powers a huge share of the web and is search-friendly out of the box, but a few default settings and common habits, like heavy themes and plugin overload, can hold a site back. The good news is that most of the work is a one-time setup.

1. Choose a fast, lightweight theme

Your theme affects speed, mobile layout and code quality. Choose one that's lightweight, well maintained, responsive and compatible with the block editor. Astra, GeneratePress and Kadence are popular for this reason. Be careful with heavy page builders and animation-packed themes: they look impressive in demos and are often slow in real life.

2. Install one SEO plugin

An SEO plugin handles titles, meta descriptions, sitemaps, schema and more. The two most popular are:

  • Rank Math: many features in the free version, including schema types and redirects.
  • Yoast SEO: simple, reliable and well documented.

Install one, run its setup wizard and never run two SEO plugins at once.

Go to Settings → Permalinks and choose Post name. Your URLs become example.com/what-is-marketing-mix instead of example.com/?p=123. Change this before you publish much, and add redirects if you change it later.

4. Optimise every page and post

For each page, in your SEO plugin's box:

  • Focus keyword: one main keyword per page.
  • SEO title: about 50 to 60 characters, keyword near the start, unique.
  • Meta description: about 140 to 155 characters, with a clear benefit.
  • URL slug: short and descriptive.
  • Headings: one H1 (usually the post title), then H2s and H3s.
  • Internal links: link to related posts and to your service or product pages.

Don't chase a "green light" score blindly. Write for the reader first.

5. Optimise your images

  • Resize images to the size they're displayed at before uploading.
  • Compress them (ShortPixel, Smush or EWWW Image Optimizer) and use WebP.
  • Write descriptive file names and alt text.
  • Let WordPress lazy-load images below the fold.

6. Make the site fast

Speed affects both rankings and conversions. Use:

  • Good hosting. Cheap shared hosting is often the bottleneck.
  • A caching plugin like WP Rocket, LiteSpeed Cache or WP-Optimize.
  • Fewer plugins. Delete what you don't use.
  • Minified CSS and JS, plus fewer third-party scripts.

Test with PageSpeed Insights and aim for good Core Web Vitals on mobile.

7. Add structured data

Most SEO plugins add basic schema automatically. Check that your organisation or person details, articles, breadcrumbs and FAQs are marked up, and test pages with Google's Rich Results Test.

8. Connect Google Search Console

Verify your site (the SEO plugin can add the verification code), submit the sitemap the plugin generates, usually at /sitemap_index.xml, and check the Pages report for anything not indexed.

9. Keep it clean

  • Set categories and tags thoughtfully, and noindex thin tag archives.
  • Delete or redirect old, thin posts instead of leaving them to drag the site down.
  • Update WordPress, the theme and plugins to stay secure.
  • Use HTTPS and a security plugin.

10. Publish helpful content consistently

Plugins can't rank a page that doesn't answer the search well. Publish useful articles regularly, update your older posts, and link everything together so search engines see the depth of your expertise.

Final thoughts

WordPress gives you everything you need for good SEO. Set up a fast theme, one SEO plugin, clean permalinks, compressed images and caching once, then focus your time on content and links. That's where rankings are won.

Frequently asked questions

Is WordPress good for SEO?

Yes. WordPress is flexible and search-friendly, and SEO plugins handle most technical basics. Results still depend on your content, speed and links.

Which is better, Yoast or Rank Math?

Both work well. Rank Math includes more features for free, like schema types and redirects. Yoast is simpler and very widely used. Pick one and never run both at once.

What is the best permalink structure for SEO?

"Post name" (example.com/your-post-title). It's short, readable and keyword-friendly.

Why is my WordPress site slow?

Usually heavy page builders, too many plugins, uncompressed images or cheap hosting. Caching, image compression, a lighter theme and better hosting fix most cases.

Keep reading