Site logo

Archived topic

Read More and Post URL is having randome value added at the end.

3 replies · Started by Kirtish Vyas on December 21, 2019

Viewing posts 1–4 of 4

Hi Tom,

I tried to add the PHP code using the code snippet plugin but still, I have two issues, where I am using the WP and generate press latest version.

This is the code I added :
add_action( ‘after_setup_theme’, function() {
remove_filter( ‘attachment_link’, ‘generate_enhanced_image_navigation’, 10, 2 );
} );

(I tried by closing the tag with ?> and without the closing tag)

1- From homepage in a recent post if I do click to any post then the opened URL is having a random alphanumeric code added at the end, such as https://www.mrvyasidea.com/oberlo-review-shopify-dropshipping.html?fd827a&fd827a

2- Under any category, if I am clicking to Read more button then every URL is added with a #more-
https://www.mrvyasidea.com/oberlo-review-shopify-dropshipping.html#more-3375

Please do check with my site:https://mrvyasidea.com

Hi Leo thanks,

After adding add_filter( 'generate_more_jump', '__return_false' ); i found that yes #more-page id has been removed but like first issue now every post is added with random values like ?asjaad etc.

This issue is with the theme only as I am hosting two sites on different hosting and both are using generate press and in both i am getting same issue

mrvyasidea.com
bloggingos.com

Hi there,

the Theme will have nothing to do with the URL / query strings. Try disabling plugins or caches to see which is creating them

This archived topic is closed to new replies.