- This topic has 31 replies, 4 voices, and was last updated 1 year, 6 months ago by Christiano.
-
AuthorPosts
-
September 28, 2022 at 1:24 am #2356090Christiano
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 #2356736YingStaffCustomer 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 #2357322ChristianoSorry 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 SupportHi Christiano,
It can be checked in the Page/Post settings: https://docs.generatepress.com/article/excerpt-issues/
September 29, 2022 at 1:39 am #2357374ChristianoI 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 #2357962YingStaffCustomer 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 #2358600ChristianoNo, 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 #2359166YingStaffCustomer 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 #2361267ChristianoHi 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 #2361841YingStaffCustomer 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 #2362379ChristianoHi 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 #2363040YingStaffCustomer SupportIt will use the value set for
Excerpt word count
at customizer > layout > blog, what’s the value you’ve set there?October 5, 2022 at 12:19 am #2363671ChristianoI 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 SupportHi 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 #2364849ChristianoAbsolutely! Thanks in advance Fernando! π€
-
AuthorPosts
- You must be logged in to reply to this topic.