Site logo

Archived topic

The issue of different URL

5 replies · Started by Paul on July 1, 2022

Viewing posts 1–6 of 6

hi

i foudn one problem regarding URL

if we click the button of " read more" , then get the ulr link of the single post, but it will have extral tail at end of original URL,

FOr example : Original url : https://www.abc.com/what-blessing-does-chinese-wisdom-tell-you/#more-316

If clicking the button of read more from the category, then you get the url is like this one https://www.abc/what-blessing-does-chinese-wisdom-tell-you/#more-316

in fact, they are for the same blog article, search engine will think that they are the same content, which one is original url?

how to solve this one?

pls guide, thanks

hi

i just add this code add_filter( 'generate_more_jump', '__return_false' ); as php snippets, then can remove the extra url tail, right?

In fact, we talked this php snippet a few hours ago

I'm very curious, why don't you just avoid this problem in the theme, and need to set it separately? This is very unfriendly to people who don't understand css code, it's just a personal opinion

Hi there,

the #more-316 jump link is added by WordPress whenever a user includes a Read More tag in their content.
It is the default behaviour of WordPress.

You can read more about it here:

https://codex.wordpress.org/Customizing_the_Read_More

and that codex page provides a core method of removing those links.

We made that a lot easier with the filter: add_filter( 'generate_more_jump', '__return_false' );

We don't make decisions in the theme to disable a core default functionality of WordPress.

Regarding search engines - they know what a jump link is, so i can't see there being a duplicate URL issue here.

This archived topic is closed to new replies.