Open fizi opened 7 years ago
Err, you're talking about news summary, right?
yes, {NEWSSUMMARY: limit=xxx}
You can change the limit to any number of chars you want. That shortcode can be eassilly customized in a theme_shortcode.php file, so it wouldn't break sentences, to exclude punctuation, etc.
What shortcode need?
@fizi The {NEWSSUMMARY} (or in fact, any shortcode) can be redefined inside theme_shortcodes file, to work the way intended by the theme designer....
Yes, but preferably the first step should be to see if it's already possible to achieve the goal by using core shortcodes and parameters.
In case this is not possible, the next step is too look for enhancements to the core shortcodes.
Only after the adjustments have been considered out of scope for the core, then the theme developer should use the theme_shortcodes file to override the core ones.
@fizi: can you please illustrate your suggestion by giving us an example of how it is currently working and how you would like it to be?
I put the image. I set limit=500 (or whatever) after the first point not count the characters more. If the first point after 20 characters...appears only 20.
Might be directly related to line 582...
Since you don't have a news summary for that news, it goes and fetch the news body to generate that summary. What i find odd is that you don't have the final "..." Do you have latest github files?
Yes I use latest.
{NEWS_SUMMARY: limit=50} Does it work for you @fizi ? If so, please close this issue. thanks.
Not work, the problem same.
{NEWS_SUMMARY: limit=xxx} Still it does not work, just shows the text by the end of the first sentence.
The limit work but I think not good if limit 200 but the text earlier have the point and limit count stop working, (stop on the point). Would be better if the limit (count of characters) ignore the point.