AI Assistant
Notifications
Clear all

Is there a filter I can add to change the excerpt length?

3 Posts
2 Users
1 Reactions
1,482 Views
Posts: 25
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@flaren)
Member
Joined: 7 years ago
[#4626]

Is there a filter snippet I can add to change the excerpt length? I think it's set a 55 but I want to change it to like 100.


2 Replies
Astghik
Posts: 6645
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi @flaren,

The wpForo Blog Cross Posting add-on gets the Excerpt length value as it's set in WordPress. If you change the WordPress Excerpt Length it'll be changed in the addon as well.

I've found the following code, please try it: 

https://developer.wordpress.org/reference/functions/the_excerpt/#user-contributed-notes


Reply
1 Reply
Customer
(@flaren)
Joined: 7 years ago

Member
Posts: 25
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@astghik

great! I'll give it a try thank you


Reply
Share:
Scroll to top