GUARDLABS
GuardLabs ยท Technical note

How to Fix Duplicate Meta Descriptions Across WordPress Pages

Duplicate meta descriptions in WordPress typically stem from three main sources: paginated archives (e.g., /page/2/ inheriting the main page description), misconfigured SEO plugin templates, or hardcoded meta tags in your theme's header.php file. Here is how to resolve each issue systematically.

1. Fix Paginated Pages via SEO Plugins

By default, WordPress paginated pages (like blog index pages, category archives, and product portfolios) often output the exact same meta description as the first page. To fix this, you must append a page number variable to your global meta description templates.

For Yoast SEO:

  • Navigate to Yoast SEO > Settings > Content Types (or Categories/Tags).
  • Locate the Meta description field.
  • Append the %%page%% variable to the end of your description template. For example: %%excerpt%% Page %%page%% of %%maxpages%%.

For Rank Math:

  • Navigate to Rank Math > Titles & Meta.
  • Select the post type or taxonomy causing the issue.
  • Add the %page% variable to the Single Meta Description template. For example: %excerpt% %page%.

2. Programmatically Append Page Numbers (functions.php)

If you prefer a code-based solution or are using an SEO plugin that does not automatically append page numbers to meta descriptions, you can use a PHP filter in your child theme's functions.php file.

For Yoast SEO users, add this snippet to dynamically append "Page X of Y" to paginated meta descriptions:

add_filter('wpseo_metadesc', 'append_page_number_to_yoast_desc');
function append_page_number_to_yoast_desc($desc) {
    $paged = get_query_var('paged') ? get_query_var('paged') : (get_query_var('page') ? get_query_var('page') : 1);
    if ($paged > 1) {
        return $desc . ' - Page ' . $paged;
    }
    return $desc;
}

3. Remove Hardcoded Meta Tags in header.php

If duplicate meta descriptions persist across completely different pages, your theme may have a static meta description hardcoded into its header file, overriding your SEO plugin.

  • Go to Appearance > Theme File Editor.
  • Open the header.php file.
  • Search for the following tag: <meta name="description" ... >.
  • If you find a static line like <meta name="description" content="Welcome to my website" />, delete it entirely. Your SEO plugin dynamically injects this tag via the wp_head() hook.

4. Fix Category and Tag Archive Duplicates

If multiple category or tag pages have identical meta descriptions, you likely have empty description fields, forcing your SEO plugin to fall back to a generic site-wide description.

  • Go to Posts > Categories (or Tags).
  • Edit each category.
  • Manually write a unique description in the custom SEO meta box provided by your SEO plugin.
  • If you have hundreds of categories, configure a dynamic template under your SEO plugin's Taxonomy settings using the %category_description% (Rank Math) or %%category_description%% (Yoast) variable.

Need this done fast? order it on Kwork.

Published 2026-06-23 2 min read All articles EN / RU / ES
Need help with this?

I take on freelance fixes and builds in this area.