[Support request] The issue of different URL

Home Forums Support [Support request] The issue of different URL

Home Forums Support The issue of different URL

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2269989
    Paul

    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

    #2270002
    Fernando
    Customer Support

    Hi Paul,

    You can use the code in this article here: https://docs.generatepress.com/article/generate_more_jump/

    Adding PHP reference: https://docs.generatepress.com/article/adding-php/#code-snippets

    Hope this helps!

    #2270048
    Paul

    hi

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

    #2270053
    Paul

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

    #2270056
    Paul

    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

    #2270134
    David
    Staff
    Customer Support

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.