- This topic has 9 replies, 3 voices, and was last updated 4 months, 1 week ago by Leo.
September 19, 2020 at 9:18 am #1450097khan
All blog post showing #more-2233 or #more-2264 etc at the end of the post url
how can i solve this problem? please tell me the simple way to fix this with details
thnxSeptember 19, 2020 at 9:22 am #1450103LeoStaffCustomer Support
This should help:
Let me know 🙂September 20, 2020 at 3:37 am #1450725khan
still i cant fix it .
where should i add this php – add_filter( ‘generate_more_jump’, ‘__return_false’ );
I am not an expert in PHP . can i do this with elements using a hook? If can, what option should i select when using hook(on settings) and location(on display rules)September 20, 2020 at 5:34 am #1450851DavidStaffCustomer Support
you cannot add that using a Hook Element. The document Leo provided here explains:
If you’re using a child theme then add the code to your child themes functions.php
If you’re NOT using a child them then install the Code Snippets plugin and add it there.September 20, 2020 at 7:23 am #1450948khan
Hi David, i am very happy now,,,,
You said,, i cannot add that using a Hook Element
but i fix it using a custom hook elements. i create a custom hook and add this php- add_filter( ‘generate_more_jump’, ‘__return_false’ ); there.
now it’s perfectly ok
Thank you very much….david and LeoSeptember 20, 2020 at 9:11 am #1451165LeoStaffCustomer Support
That code should really be added using one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/
Glad we could help though 🙂September 21, 2020 at 4:47 am #1452021khan
I am really sorry
I was wrong
when i created a custom hook with this name (generate_more_jump), its working but it show add_filter( ‘generate_more_jump’, ‘__return_false’ ); add_filter( ‘generate_more_jump’, ‘__return_false’ ); in the every blog post before the Read More button.
There is any way to hide this code from blog post that will be perfect
I will try it with plugin
Thnx…September 21, 2020 at 6:29 am #1452166DavidStaffCustomer Support
As Leo and I said you need to add it using one of the methods provided. Either a child theme functions.php or the code snippets plugin.
Using hooks you’re inserting the code somewhere either in the core WP Code or a theme template. Whereas that filter needs to be executed before a template is called.September 21, 2020 at 7:13 am #1452217khan
Yea , I got it
Thank you very muchSeptember 21, 2020 at 7:35 am #1452263
- You must be logged in to reply to this topic.