SEO for Wordpress Pagination (Multiple Page Pages - Posts)

Google strictly let down the ranking of Website if they have some technical fault such as duplicate meta title and description, in most of the cases with large, number of post website always feel such problems. The problem you can see inside Google webmaster tool account in which you have to add the verification code in your website to get verified first, after completion the process of crawling and indexing Google decide search ranking for relevant titles.Remove duplicate meta descriptions and titles on Multiple Pages

Many WordPress blogger ask questions on online forums if website Duplicate Meta Descriptions on Paginated Blog, and how to fix duplicate title tags In Google Webmaster Tools for paginated posts in WordPress website, so Google webmaster central blog explain that Much like rel=”canonical” acts a strong hint for duplicate content, you can now use the HTML link elements rel=”next” and rel=”prev” to indicate the relationship between component URLs in a paginated series. Usually; those who running website with thousands of post with multiple pagination 1>>2>>3>>4>>5, and so on, focusing on website SEO need to solve this pagination duplicate content using adding some code.

Manually Insert Title & Meta Description for Pagination pages

Duplicate Meta description for paging in Google Webmaster Tools

This issue eventually you will get under Google webmasters tool >> HTML Improvements, how do you fix duplicate Meta tags, all the pages with website subpages with the duplicate Meta tags, example www.abc.com, www.abc.com/page2, www.abc.com/page3.  In this case all the pages meta title and description with same title, description and same canonical URL, Google Webmaster Tools will show you the error of duplicate content. You can remove this error by adding plugin which can change website structure for pagination, make ajax load, or to add code where website will shows the pages with different title and description.

Example

Title – Website title – Page2

Description – Website description – page 2

Canonical URLwww.abc.com/page2

This structure of website tells Google webmasters, website with many pages with different title, canonical URL and descriptions.Duplicate Meta Descriptions on Paginated Blog

There are Two Method to solve Pagination Meta title and description

Method 1

For Meta Title –

This code will change pagination page title changed easily, we have to only add code inside header file of theme <title><?php wp_title(”); ?></title>  replace the code with

<title><?php wp_title(”); if ( $paged >= 2 || $page >= 2 ) echo ‘ | ‘ . sprintf( __( ‘Page %s’), max( $paged, $page ) ); ?></title> save this code after adding, and see the changes on website title tags, by change page to page 2 or more 3, 4. You can add this code from your WordPress website Appearance >> Editor

For Meta Description

If you are using WordPress SEO by Yoast, this technique will help you to solve the issue, by adding code into class-frontend.php under frontend folder.

global$post, $wp_query; add $page so it reads
global $post, $wp_query, $page;

and add given PHP code bellow this

$metadesc = apply_filters( ‘wpseo_metadesc’, trim( $metadesc ) );

Add under

if ($page >= 2){

$page_number = ‘ | Page ‘.$page;

}

Now go down and search for code

echo ‘<meta name=”description” content=”‘.esc_attr( strip_tags( stripslashes( $metadesc ) ) )'”/>’.”\n”;

and replace it with

echo ‘<meta name=”description” content=”‘.esc_attr( strip_tags( stripslashes( $metadesc ) ) ).$page_number.'”/>’.”\n”;

Save all the code after adding, your issue will be resolved. If this technique will not work try below given method will surely add different page title for paginated pages.

Method 2Remove duplicate Meta descriptions and titles on Paginated Pages

Open your website admin panel wp-admin and go to appearance >> editor >> function.php file add code to function.php file.

if ( ! function_exists( ‘t5_add_page_number’ ) )

{

    function t5_add_page_number( $s )

    {

        global $page;

        $paged = get_query_var( ‘paged’ ) ? get_query_var( ‘paged’ ) : 1;

        ! empty ( $page ) && 1 < $page && $paged = $page;

        $paged > 1 && $s .= ‘ | ‘ . sprintf( __( ‘Page: %s’ ), $paged );

        return $s;

    }

    add_filter( ‘wp_title’, ‘t5_add_page_number’, 100, 1 );

    add_filter( ‘wpseo_metadesc’, ‘t5_add_page_number’, 100, 1 );

}

Just after add given code save it and refresh your website to see the changes, for pagination issue. It surely magnificent method to solve pagination issue with different title and different description for each paginated pages.

This specific method for given issues

  • How to fix duplicate meta descriptions and meta titles
  • Duplicate meta descriptions SEO issue in website paginated content
  • If your website shows duplicate Meta descriptions, title inside webmaster tools >> HTML improvements.
  • How to solve the issue of duplicate title tags in WordPress website
  • Duplicate meta title and descriptions in WordPress website with multiple paginated website content.
  • If your website shows duplicate meta descriptions, title, in blogger website.

Leave a Reply