Skip to content

How to Find and Fix Duplicate Title Tags in WordPress

How to Find and Fix Duplicate Title Tags in WordPress

Duplicate title tags in WordPress come in two kinds: two title tags inside one page, or one title text shared by several pages. Check the page source first, because the fix depends on which kind you have.

We reproduced both kinds on a WordPress 7.1.3 test site in October 2026. The site used Rank Math 1.0.280, Yoast SEO 28.7 and a theme with a hard-coded title line. We also ran Screaming Frog SEO Spider 24.3 against it.

Below you will find how to check for duplicate title tags and how to fix each kind. You will also see what Google Search Console can and cannot tell you about them.

What Are Duplicate Title Tags in WordPress?

Duplicate title tags are title elements that repeat, either inside one page or across many URLs. A page with two title elements in its head has a structural duplicate. Several pages with the same title text have a content duplicate. A common cause is a [duplicated WordPress page]() that kept the original title.

Two kinds of duplicate title tags compared

Each kind has a different cause and a different fix. A structural duplicate comes from code, while a content duplicate comes from the titles you or your plugin wrote.

WordPress adds the title element for you when your theme declares title support. The WordPress documentation for add_theme_support says the title-tag feature enables plugins and themes to manage the document title tag. It also says that feature should be used in place of the wp_title() function.

That sentence explains most structural duplicates. A theme that supports title-tag and also prints its own title element in header.php outputs the title twice. An SEO plugin then adds its own copy on top.

Google’s title link guidance covers the second kind. It tells site owners to avoid repeated or boilerplate text in title elements. It also asks for distinct text that describes each page.

Google guidance on avoiding repeated title text
Source: Google Search Central (October 2026)

Does Search Console Show Duplicate Title Tags?

We found no duplicate title report in the Search Console page indexing help. The duplicate statuses that sound similar describe canonical URLs, which is a separate problem. Use a crawler or your own page source check to find duplicate titles.

The status “Duplicate, Google chose different canonical than user” is the one guides often confuse with titles. The Search Console help page for page indexing describes it in one sentence. The page is marked as canonical for a set of pages, but Google thinks another URL makes a better canonical.

Search Console canonical status explained
Source: Google Search Console Help (October 2026)

That status tells you which URL Google picked to represent similar pages. It does not tell you that two pages share a title. The help text for it talks about canonical URLs and never mentions title tags.

Fixing a canonical status usually means choosing one preferred URL. Our guide to adding a canonical tag in WordPress covers that job, and it will not change a duplicate title.

Do Duplicate Page Titles Affect SEO?

Duplicate page titles make pages harder to tell apart, for people and for Google. Google’s title link guidance says repeated titles make it impossible for users to distinguish between two pages. The same page describes no penalty for duplicate titles.

That wording matters for how you prioritize. A shared title between a tag archive and a category archive hurts less than one title on two product pages. Those product pages compete for the same search.

The guidance also does not say how Google treats a page with two title elements. We cannot tell you what happens there. Keep one title source per page anyway because a second source can print different text from the first.

How to Check for Duplicate Title Tags

You check for duplicate title tags in three steps. Count the title tags in one page’s source, compare titles in your posts list and then crawl every URL in your sitemap. The first step finds structural duplicates. The other two find shared titles across pages.

Three steps to find duplicate title tags

Step 1: Count Title Tags in the Page Source

Open any page on your site, right-click and choose View Page Source. Then search for the text <title. A healthy page shows one match inside the head. Two matches mean multiple title tags. That is a duplicate title tag you can fix at the source.

On our test site, a theme with a hard-coded title line plus Rank Math printed two title tags on every page we checked. The first line ran the site name together with the plugin’s text, which is a quick clue that the theme wrote it.

Page source with two title tags from the theme and Rank Math
Page source from our WordPress 7.1.3 test site

You can also count the tags in your browser. Open the console and run document.head.querySelectorAll('title').length. It returned 1 on our fixed page, and any larger number means a duplicate.

Step 2: Compare Titles in the Posts List

Go to Posts > All Posts and click the Title column header to sort by title. Matching titles sit next to each other. A duplicate stands out at a glance. Repeat the check under Pages and under any custom post type.

We created two posts named Summer Sale. Sorting by title put them in adjacent rows. Both pages printed the same title tag, because Rank Math builds the tag from the post title by default.

Posts list sorted by title with two matching posts
Screenshot from our WordPress 7.1.3 test site

The post title is only one input. Your SEO plugin can also build the title tag from a template. Two posts with different names can still share a tag if the plugin overrides them.

Step 3: Crawl Your Sitemap

A crawl checks every URL, which is the practical way to catch duplicates on a large site. You can use Screaming Frog SEO Spider or this short script. The script reads your sitemap index and compares the title tags.

#!/bin/bash
# Usage: ./find-duplicate-titles.sh https://example.com
SITE="$1"
curl -s "$SITE/sitemap_index.xml" | grep -o '<loc>[^<]*' | sed 's/<loc>//' | grep -v -E 'category|tag|author' | while read -r sm; do
  curl -s "$sm" | grep -o '<loc>[^<]*' | sed 's/<loc>//'
done | sort -u | while read -r url; do
  html=$(curl -s "$url")
  n=$(printf '%s' "$html" | grep -o '<title' | wc -l | tr -d ' ')
  title=$(printf '%s' "$html" | grep -o -m1 '<title>[^<]*' | sed 's/<title>//')
  printf '%s\t%s\t%s\n' "$n" "$title" "$url"
done > /tmp/titles.tsv
echo "Pages with more than one <title> tag:"
awk -F'\t' '$1>1 {print $3" ("$1" tags)"}' /tmp/titles.tsv
echo "Titles shared by more than one URL:"
awk -F'\t' '{c[$2]++; u[$2]=u[$2]"\n   "$3} END{for(t in c) if(c[t]>1) print c[t]"x "t u[t]}' /tmp/titles.tsv

The script works with a sitemap index at /sitemap_index.xml. Rank Math and Yoast SEO both create it. WordPress core uses /wp-sitemap.xml instead. Change the first URL if you rely on core.

Run against our test site, it flagged the pages with two title tags while the theme title line was in place. After the fix, it reported the two Summer Sale posts as one shared title.

Script output listing two URLs with the same title
Output from our WordPress 7.1.3 test site with the domain replaced by an example domain

Screaming Frog found the same problems. In its Page Titles tab, the Multiple filter listed the pages with two title tags. The Duplicate filter listed the two Summer Sale URLs.

How to Fix Duplicate Title Tags in WordPress

Fix the source that prints the extra title. Remove a hard-coded title line from your theme, keep one SEO plugin active, and write unique titles for pages that share one. Recheck the page source after each change, since one fix can reveal the next.

Remove the Hard-Coded Title Tag From Your Theme

If your theme declares title support and also prints a title element in header.php, delete the hard-coded line. This is the most common cause of two title tags on every page. Edit a child theme, because a theme update replaces edits to the parent.

This is the line we removed from our test theme’s header.php:

<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>

Go to Appearance > Theme File Editor (Tools > Theme File Editor on block themes), choose header.php and delete the line. Keep wp_head() in place, because WordPress prints the title from that call. Confirm that functions.php contains add_theme_support( 'title-tag' );.

Theme header file with a hard-coded title tag
Screenshot from our WordPress 7.1.3 test site

After we saved the file, the page source showed one title tag from each SEO plugin instead of three. Use a WordPress child theme for this edit, and keep a copy of the original file first.

Keep One SEO Plugin Active

Two SEO plugins both print title tags. On our test site, Yoast SEO and Rank Math together printed two title tags, two canonical links and two Open Graph titles. Deactivate one plugin and keep the other.

Our dashboard showed a warning once both plugins were active. It reads “Please keep only one SEO plugin active, otherwise, you might lose your rankings and traffic.”

Plugins screen warning about two active SEO plugins
Screenshot from our WordPress 7.1.3 test site

The page source shows the damage. Each plugin wraps its tags in its own comment. You can tell which plugin printed which title.

Page source with title tags from Yoast SEO and Rank Math
Page source from our WordPress 7.1.3 test site

Pick the plugin that holds your titles and settings and then deactivate the other under Plugins > Installed Plugins. If you are unsure which plugin or theme causes a problem, our guide to checking for plugin conflicts shows how to isolate it.

After we deactivated Yoast SEO, the page source showed a single title tag from Rank Math.

Page source with a single title tag
Page source from our WordPress 7.1.3 test site

Write Unique Titles for Pages That Share One

When different pages print the same title text, give each one its own title in your SEO plugin. In Rank Math, the default post template is %title% %sep% %sitename%. Two posts with one name therefore print one tag.

Rank Math title template for posts
Screenshot from our WordPress 7.1.3 test site

The template has three parts. The first variable is the post title, the second is your title separator and the third is the site name. That is why our two posts both printed “Summer Sale – Harbor Coffee Roasters”.

Open the post, click Rank Math in the editor, choose Edit Snippet and type a new title in the Title field. We changed one Summer Sale post to “Summer Sale: Cold Brew Gift Boxes” and kept the site name variable.

Rank Math Title field with a unique post title
Screenshot from our WordPress 7.1.3 test site

After saving, the script reported no shared titles. Rank Math also kept paginated archives distinct by default, because page 2 of our blog printed “Page 2 of 3” in its title.

Note: On our test site a category and a tag with the same name printed the same title. Rank Math marked the tag archive noindex by default. Only the category page stayed in search.

When a Duplicate Title Is Not a Problem

A shared title matters most on pages you want people to find in search. A page marked noindex is not meant for search results. Its duplicate title costs you little. Fix indexable pages first and treat the rest as cleanup.

Our test site shows the pattern. The tag archive printed the same title as its matching category, and Rank Math had already marked the tag page noindex.

Work in this order. Start with structural duplicates, since they affect every page. Then fix shared titles on your most important pages, such as products, services and top posts.

How to Prevent Duplicate Title Tags From Coming Back

Prevent duplicates by checking page source after every theme or plugin change. Keep one SEO plugin, review each new theme’s header file before you activate it, and run the sitemap script after bulk imports. These habits catch both kinds before Google crawls them.

A new theme can bring its own title code. View its source on a staging copy first. Search the page for <title and confirm you see one match.

Bulk imports are the other source of trouble. An import can create many posts with one title. Sort the posts list by title after each import.

Keep your title templates in one place. Set the template once per content type in your SEO plugin and then override only the posts that need a custom title.

For a wider review of on-page signals, use our on-page SEO checklist. If you want an expert audit of your titles, meta data and indexing, see our WordPress SEO services.

Conclusion

Duplicate title tags in WordPress are either two title tags on one page or one title on many pages. Count the tags in the page source to find the first kind. Sort or crawl your URLs to find the second.

Then fix the source: remove the theme’s hard-coded title, keep one SEO plugin and write unique titles. Recheck the page source after each change so you know it worked.

Search Console will not list duplicate titles for you. Build the check into your routine. Our meta tags guide covers the neighboring tags worth reviewing next.

Frequently Asked Questions (FAQs)

Q1. Can duplicate title tags get my site penalized?

Google’s title link guidance describes repeated titles as a clarity problem and mentions no penalty. The risk is practical: pages with the same title are hard to tell apart in search results. Give each important page its own title.

Q2. Does a canonical tag fix duplicate title tags?

No. A canonical tag tells Google which URL to treat as the main copy of similar pages. The title text still prints whatever your theme or SEO plugin generates. Edit the title separately.

Q3. What does Google do when a page has two title tags?

Google’s title link guidance does not describe how it treats two title elements on one page. Keep a single title tag, because a second source can print different text and send mixed signals.

Q4. Where is the title tag in WordPress?

WordPress prints the title tag inside the head section, through the wp_head call, when your theme declares title support. You edit its text in your SEO plugin. In Rank Math, that is the Title field of the snippet editor for each post.

Q5. How do I stop tag and category pages from sharing a title?

Give the two terms different names or change the title template for tags or categories in your SEO plugin. On our test site, Rank Math marked the tag archive noindex by default. The category page was the only indexable page.

Q6. Can I run two SEO plugins if only one handles titles?

We would not. On our test site, Yoast SEO and Rank Math printed two title tags, two canonical links and two Open Graph titles together. Keep one plugin active and import your settings if you switch.

Yash Kapoor
Yash Kapoor

Yash Kapoor is the founder and WordPress expert at DevDiggers, where he builds WordPress and WooCommerce plugins for loyalty programs, point-of-sale systems, digital wallets and affiliate management. He writes about developer tools, site performance and the technical side of running a WordPress store. He draws on years of building and maintaining production plugin codebases.

Leave a Reply

Your email address will not be published. Required fields are marked *