How to Fix Duplicate Title Tags and Meta Description on WordPress

How to Fix Duplicate Title Tags and Meta Description on WordPress


Wordpress Duplicate title tags and meta description issue Fixed  without plugins.  Search Engin Optimization (SEO) in the process of writting the page is the most important aspect, which directly affects the relevance of the theme of the page and the user hits.  A good title is not only able to get ranksed in the search engines and traffic, but also to attract more users to click to come in to browse.

How to Fix Duplicate Title Tags and Meta Description on WordPress
How to Fix Duplicate Title Tags and Meta Description on WordPress

Blog post pagination add title duplicate title issue seo problems so this issue pagination current page add in meta title.


<title>page title - pagination number</title>


Duplicate  metatitle and metadescription code follows copy and paste theme functions.php
/** Add Page Number to Meta Description to avoid Duplication **/
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( 'wpseo_title', 't5_add_page_number', 100, 1 );
    add_filter( 'wpseo_metadesc', 't5_add_page_number', 100, 1 );
 
}
How to Fix Duplicate Title Tags and Meta Description on WordPress Dev2Tricks 5 of 5
How to Fix Duplicate Title Tags and Meta Description on WordPress Wordpress Duplicate title tags and meta description issue Fixed  wit...

Share this

Related Posts

Previous
Next Post »