Viewing 14 replies - 1 through 14 (of 14 total)
  • Alvind

    (@alvindcaesar)

    Hi there,

    This isn’t something that can be fixed directly within the theme itself. Internal duplication issues are typically related to content structure or SEO configuration rather than layout or styling, which is what GeneratePress handles.

    To properly address internal duplication, you’d want to use an SEO plugin like Yoast SEO or Rank Math, which provides tools to manage canonical URLs, noindex settings, and sitemap configuration. These tools help prevent or resolve duplicate content issues by giving you more control over how your content is indexed and served.

    Thread Starter r3ndy

    (@r3ndy)

    @alvindcaesar  I used Rank Math and found the solution. My problem was to add (<!–more–>) in all posts or what code can be embedded automatically in all posts.

    • This reply was modified 10 months, 3 weeks ago by r3ndy.
    Thread Starter r3ndy

    (@r3ndy)

    I found a piece of code, but it displays an error message like my screenshot is circled in red. How do I fix it?

    Screenshot: https://prnt.sc/mW1HpCog8lSl

    function add_more_tag_to_all_posts($content) {
    if (is_home() || is_archive()) {
    global $post;
    $content = $post->post_content;
    if (strpos($content, '<!--more-->') === false) {
    $content = substr($content, 0, 150) . '<!--more-->' . substr($content, 150);
    }
    }
    return $content;
    }
    add_filter('the_content', 'add_more_tag_to_all_posts');
    ying

    (@yingscarlett)

    Sorry, why are you trying to add the <!–more–> tag to your posts? It does not seem to be related to the internal duplication issue.

    Let me know 🙂

    Thread Starter r3ndy

    (@r3ndy)

    @yingscarlett google is ignoring my 300 pages because of this duplication issue. I need to fix this duplication issue on my page immediately.

    ying

    (@yingscarlett)

    I don’t see this issue relating to the <!–more–> tag, and as Alvind replied, the theme does not manage URLs, so check with SEO plugin’s support on this one, they should be able to help!

    Thread Starter r3ndy

    (@r3ndy)

    @alvindcaesar & @yingscarlett

    Response from rank math support team. I attached a screenshot. https://prnt.sc/g2bWmoWNErFc

    Alvind

    (@alvindcaesar)

    Where exactly would you like the <!--more--> tag to be placed within the post content?

    Thread Starter r3ndy

    (@r3ndy)

    @alvindcaesar

    Placed on the Homepage, according to directions from the rank math team. I included a screenshot. https://prnt.sc/qujE-Quw2Hfm

    ying

    (@yingscarlett)

    They also suggested to use a shorter unique except on homepage, in this case, you can write specific custom except for each post to avoid duplicated content.

    Just so you know, adding more tag does not change the excerpt on the homepage, the text is still the same as the post content. If you want to make the excerpt shorter, you can use this filter to do so:

    add_filter( 'excerpt_length','lh_custom_category_excerpt_length', 1000 );
    function lh_custom_category_excerpt_length( $length )
    {
    if ( is_home() || is_archive() ) {
    return 20; //excerpt length set to 20 words
    }
    return $length;
    }
    Thread Starter r3ndy

    (@r3ndy)

    @yingscarlett

    Yes nothing changed the error message still appears for the last message, I marked it in red, (Home) can copy description from post description. What’s wrong with that? Can the error message be fixed?

    Screenshot: https://prnt.sc/RhoBWYdwxTlj

    • This reply was modified 10 months, 3 weeks ago by r3ndy.
    ying

    (@yingscarlett)

    I’m not an SEO expert, I never thought the excerpt will cause any SEO issue, as most of the WP blogs have the same setting as you do.

    The SEO plugin support offered 2 solutions, 1st one is to add more tag and the 2nd one is to use a shorter and unique excerpt on blog and archive, .

    Custom PHP code to add more tag isn’t in our support scope, unfortunately!

    You can try adding custom excerpt for each posts on your site.

    Thread Starter r3ndy

    (@r3ndy)

    Thanks to both teams for their input and help. 🙂

    ying

    (@yingscarlett)

    You are welcome   🙂

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Internal Duplication Issue’ is closed to new replies.