Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to support@pickplugins.com
Ticket for: Post Grid
0
when having 2 language sites, Excerpt counts by word in 1 language but counts by character in another language 1
Ken
May 13, 2019 04:11 PM 1 Answers
Member Since May 2019
Subscribed Subscribe Not subscribe
Flag(0)

WordPress 5.2
Plugin:
Post Grid by PickPlugins 2.0.33
Polylang 2.5.3 (Multiple languages plugin)

1. Install 2 plugins "Post Grid by PickPlugins 2.0.33" and "Polylang 2.5.3"
2. Set Polylang to have 2 languages sites EN and TH
3. Create a post in EN. The content is "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20"
4. Create a post in TH. The content is "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20"
5. Create a new Post Grid with "flat" layout, observe the excerpt is set to 20
6. Add the Post Grid shortcode to an EN page and TH page.
7. Check the excerpt of the post in EN page, it's shown "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20"
8. Then change the language to TH check the excerpt of the post in TH, it's shown "1 2 3 4 5 6 7 8 9 10"

I guess this happens because the excerpt of the post in EN counts by word but the excerpt of the post in TH counts by character.
I'd like to have the excerpt in both language to be the same.

Please advise. Thanks.

2 Subscribers
when having 2 language sites, Excerpt counts by word in 1 language but counts by character in another language 1
when having 2 language sites, Excerpt counts by word in 1 language but counts by character in another language 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
when having 2 language sites, Excerpt counts by word in 1 language but counts by character in another language 4
PickPlugins
May 15, 2019
Flag(0)

Welcome to our forum.

The feature you are looking for isn’t available to set a different value for excerpt count based on language. but there is a filter hook for excerpt you can generate custom excerpt based on language. i am not sure if this is possible but i hope. if you can please tell me which plugin are you using for language.

https://www.pickplugins.com/documentation/post-grid/filter-hooks/filters-post_grid_filter_grid_item_excerpt/

Regards

 

 

Sign in to Reply
Replying as Submit