Internal Duplication Issue
-
How to fix internal duplication in GeneratePress theme?
For more details, I have included an attachment below.
Duplicate content checker: https://www.seoreviewtools.com/duplicate-content-checker/
Screenshot: https://prnt.sc/BnqwSx5nRmvrThe page I need help with: [log in to see the link]
-
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.
@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.
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');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 🙂
@yingscarlett google is ignoring my 300 pages because of this duplication issue. I need to fix this duplication issue on my page immediately.
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!
Response from rank math support team. I attached a screenshot. https://prnt.sc/g2bWmoWNErFc
Where exactly would you like the
<!--more-->tag to be placed within the post content?Placed on the Homepage, according to directions from the rank math team. I included a screenshot. https://prnt.sc/qujE-Quw2Hfm
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;
}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.
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.
Thanks to both teams for their input and help. 🙂
You are welcome 🙂
-
This reply was modified 10 months, 3 weeks ago by
The topic ‘Internal Duplication Issue’ is closed to new replies.
