Home › Forums › Support › All blog post showing #more-2233 or #more-2264 etc at the end of the post url
- This topic has 9 replies, 3 voices, and was last updated 5 years, 6 months ago by
Leo.
-
AuthorPosts
-
September 19, 2020 at 9:18 am #1450097
khan
All blog post showing #more-2233 or #more-2264 etc at the end of the post url
exm: https://generatepress.com/support/#more-2264
how can i solve this problem? please tell me the simple way to fix this with detailsthnx
September 19, 2020 at 9:22 am #1450103Leo
StaffCustomer SupportHi there,
This should help:
https://docs.generatepress.com/article/generate_more_jump/Adding PHP: https://docs.generatepress.com/article/adding-php/
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 #1450851David
StaffCustomer SupportHi there,
you cannot add that using a Hook Element. The document Leo provided here explains:
https://docs.generatepress.com/article/adding-php/
TLDR:
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 Elementbut 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 Leo
September 20, 2020 at 9:11 am #1451165Leo
StaffCustomer SupportThat 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 perfectIf not!
I will try it with pluginThnx…
September 21, 2020 at 6:29 am #1452166David
StaffCustomer SupportAs 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 much
September 21, 2020 at 7:35 am #1452263Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.