WordPress.org

Ready to get started?Download WordPress

Forums

Help Request: Duplicate Meta Information and Pagination (not a plugin issue) (1 post)

  1. Dumb Domme
    Member
    Posted 1 year ago #

    Hello,

    I'm trying to fix a duplicate meta information issue (meta descriptions and meta keywords) in a blog that uses pagination. The duplicate meta information is giving me warnings in Google Webmaster Tools (GWT).

    Blog URL: DumbDomme.com (NSFW)
    Theme: Suffusion
    Other Info: I am not using an SEO plugin

    For example, my meta description for the home/front page (NSFW) is the same as the meta description for page 3 (NSFW) of blog posts.

    I've been trying to find ways to correct this problem, and it seems that adding page numbers to the meta information is my best option, but I don't know how to do that.

    I found this code to fix the issue on another website, but I'm not sure how or where to implement it in Suffusion. I'm fairly sure I'll need to create a child theme, but I'm still having trouble figuring out where to put this code or how to modify Suffusion's code.

    <?php if(is_home()) {
        echo '<meta name="description" content="META DESCRIPTION GOES HERE.';
        if ( $paged < 2 ) {
        } else {
        echo (' | ' . 'page ');
        echo ($paged);
        }
        echo '"/>';
        }
        ?>
    
        <?php if(is_home()) {
        echo '<meta name="keywords" content="META KEYWORDS GO HERE';
        if ( $paged < 2 ) {
        } else {
        echo (' | ' . 'page ');
        echo ($paged);
        }
        echo '"/>';
        }
        ?>

    According to the website where I got the code, this would make the meta description for page X read: "Page X | Whatever meta description..."

    My Questions:

    1. Is this the best solution to fix duplicate meta information on a blog-post based blog that uses pagination for back (earlier) blog posts?
    2. If so, how and where do I modify Suffusion to implement the change?
    3. Any insight or help is appreciated. Thanks in advance.

      Best,
      D

Topic Closed

This topic has been closed to new replies.

About this Topic