- This topic has 31 replies, 4 voices, and was last updated 3 years, 7 months ago by
Christiano.
-
AuthorPosts
-
September 28, 2022 at 1:24 am #2356090
Christiano
I set the excerpt not to be over 250 words but it doesn’t work. (appareance -> layout -> blog)
What can I do?
Thanks in advance 🤗
ChristianoSeptember 28, 2022 at 11:42 am #2356736Ying
StaffCustomer SupportHi Christiano,
The page you linked is a static page built with WP query loop block.
The customizer option should work.If it doesn’t work, can you check if you are using the custom excerpt in the post editor?
Let me know!
September 29, 2022 at 12:58 am #2357322Christiano
Sorry Ying but… How can I check if I am using the custom excerpt in the post editor?
September 29, 2022 at 1:27 am #2357355Fernando Customer Support
Hi Christiano,
It can be checked in the Page/Post settings: https://docs.generatepress.com/article/excerpt-issues/
September 29, 2022 at 1:39 am #2357374Christiano
I am not sure to understand well what information are you trying to have… 😅
Anyway:
– I ever insert a custom excerpt in every blog post that I write;
– All the blog posts are in “standard” format;
– I do not use “more tag”.Are these the informations that you need?
September 29, 2022 at 10:05 am #2357962Ying
StaffCustomer Support– I ever insert a custom excerpt in every blog post that I write;
Do you mean never?
If so, that’s very weird, as the excerpt doesn’t match the content of the article, it looks like you are using the custom excerpt.
Can you provide an admin login using the private info field so we can take a look at the backend?
September 30, 2022 at 3:06 am #2358600Christiano
No, no… I mean every single time. Before publishing a blog post I always put my excerpt. 😅
I created the user for you, the credentials are in another reply.
Thanks a lot for your efforts Ying! ☺️
September 30, 2022 at 11:01 am #2359166Ying
StaffCustomer SupportOh, I see, you are using a custom excerpt.
In that case, it will show all the content you entered in the custom excerpt field, and it can not be controlled by the word count, unfortunately.
You’ll have to edit the custom excerpt.
Or give this PHP snippet a try:
https://generatepress.com/forums/topic/limit-for-post-excerpt-lenght/#post-1430489
Adding PHP: https://docs.generatepress.com/article/adding-php/October 3, 2022 at 2:54 am #2361267Christiano
Hi Ying, I tried your solution but it doesn’t work… Maybe because I am not using Elementor? 🤷🏼♂️
What else can I do?
THANKS! ☺️
October 3, 2022 at 11:03 am #2361841Ying
StaffCustomer SupportElementor has nothing to do with this 🙂
How did you add the PHP snippet? And what’s the word limit you set in the customizer?
October 4, 2022 at 1:28 am #2362379Christiano
Hi Ying, nice to meet you again. 😃
I followed the instructions provided.
– installed Code Snippets plugin
– created a new snippet with the provided PHP
– activated itIf this is the word limit: ( ‘excerpt_length’, 55 ) … I tried some different numbers but with no appreciable display differences…
Doctor Ying, whats the problem? ☺️
October 4, 2022 at 9:55 am #2363040Ying
StaffCustomer SupportIt will use the value set for
Excerpt word countat customizer > layout > blog, what’s the value you’ve set there?October 5, 2022 at 12:19 am #2363671Christiano
I checked and it was set at 250 words… I changed the value but nothing has happened.
I noticed this note “This page is using a Page Hero Element. Some of the options below may not apply.”. 🤷🏼♂️
THANKS! 🤗
October 5, 2022 at 1:15 am #2363739Fernando Customer Support
Hi Christiano,
Can you provide temporary admin login credentials? We’ll check your custom excerpt and posts and see why the code isn’t working?
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
October 6, 2022 at 12:14 am #2364849Christiano
Absolutely! Thanks in advance Fernando! 🤗
-
AuthorPosts
- You must be logged in to reply to this topic.