Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author htmgarcia

    (@htmgarcia)

    Hi @kiberchaka,
    if you test under a different theme for a second, does make a difference? This just to check if the theme is involved.

    Thread Starter kiberchaka

    (@kiberchaka)

    Hi!
    Thank you for the answer!
    I already did it with Twenty Twenty, and the problem was still there.

    Plugin Author htmgarcia

    (@htmgarcia)

    Please send us a message with the HTML code from the “Code editor” view through our contact page https://advancedgutenberg.com/ – Include the link of this topic as reference

    Thread Starter kiberchaka

    (@kiberchaka)

    Hi!
    Did it.

    Thread Starter kiberchaka

    (@kiberchaka)

    <!-- wp:advgb/recent-posts {"postView":"list","numberOfPosts":100,"columns":1,"displayDate":true,"postTextAsExcerpt":true,"postTextExcerptLength":300,"readMoreLbl":"Читать далее...","changed":true} /-->

    Plugin Author htmgarcia

    (@htmgarcia)

    Using that code in my end, I don’t see the issue you reported.

    There is a chance another plugin could be involved in the end result.
    ___
    Regards

    Thread Starter kiberchaka

    (@kiberchaka)

    Hi!
    Thank you for the answer!

    You don’t see the problem, because your posts are written in Latin alphabet, try a Cyrillic text. (May be it is because Cyrillic letters consist of more bytes then Latin letters, but I am not sure).

    Text you may use to test:

    Все йде, все минає — і краю немає.
    Куди ж воно ділось? відкіля взялось?
    І дурень, і мудрий нічого не знає.
    Живе… умирає… одно зацвіло,
    А друге зав’яло, навіки зав’яло…
    І листя пожовкле вітри рознесли.
    А сонечко встане, як перше вставало,
    І зорі червоні, як перше плили,
    Попливуть і потім, і ти, білолиций,
    По синьому небу вийдеш погулять,
    Вийдеш подивиться в жолобок, криницю
    І в море безкрає, і будеш сіять,
    Як над Вавілоном, над його садами
    І над тим, що буде з нашими синами.
    Ти вічний без краю!.. люблю розмовлять,
    Як з братом, з сестрою, розмовлять з тобою,
    Співать тобі думу, що ти ж нашептав.
    Порай мені ще раз, де дітись з журбою?
    Я не одинокий, я не сирота,—
    Єсть у мене діти, та де їх подіти?
    Заховать з собою? — гріх, душа жива!
    А може, їй легше буде на тім світі,
    Як хто прочитає ті сльози-слова,
    Що так вона щиро колись виливала,
    Що так вона нишком над ними ридала.
    Ні, не заховаю, бо душа жива.
    Як небо блакитне — нема йому краю,
    Так душі почину і краю немає.
    А де вона буде? химерні слова!
    Згадай же хто-небудь її на сім світі,—
    Безславному тяжко сей світ покидать.
    Згадайте, дівчата,— вам треба згадать!
    Вона вас любила, рожевії квіти,
    І про вашу долю любила співать.
    Поки сонце встане, спочивайте, діти,
    А я поміркую, ватажка де взять.

    • This reply was modified 5 years, 9 months ago by kiberchaka.
    • This reply was modified 5 years, 9 months ago by kiberchaka.
    Thread Starter kiberchaka

    (@kiberchaka)

    Hi!
    I looked into the plugin code, in a file

    /public_html/wp-content/plugins/advanced-gutenberg/assets/blocks/recent-posts/block.php

    commented 51th line:

    //$text = substr($text, 0, $length);

    And added instead this line:

    $text = wp_trim_words($text, 30, ' ...');

    This is a WordPress function, that cuts text by number of words.
    And it worked fine.

    P.S.
    I tried some other PHP functions that should work with Cyrillic letters, and cut text by number of characters, like mb_substr and mb_strimwidth, but they didn’t work.

    • This reply was modified 5 years, 8 months ago by kiberchaka.
    • This reply was modified 5 years, 8 months ago by kiberchaka.
    Plugin Author htmgarcia

    (@htmgarcia)

    In order to not lost track of this report, let’s continue the conversation through our support system.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Exerpts for Last Posts widget has a problem’ is closed to new replies.