• Resolved mkwlsk

    (@mkwlsk)


    Hello,

    Recent posts block is not loading posts excerpts. I selected options: Display Featured Image: off, Display Post Author: off, Display Read More Link: on, Display Post Excerpt: on, First Post text as Excerpt: on, Post Text Excerpt length: 150. When editing I see excepts but not on the page.
    Wordpress version 5.1.1. I’m using Twenty Thirteen child theme, but the same behavior is on Twenty Nineteen.

    PS. <div class=”advgb-post-excerpt”></div> is empty.

    • This topic was modified 7 years, 2 months ago by mkwlsk.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Thanks for contacting us about Advanced Gutenberg.
    The content returned seems to be empty indeed. Can you share me a page link with that Gutenberg recent post block inserted please?

    Cheers,

    Thread Starter mkwlsk

    (@mkwlsk)

    Hi,

    This is link to the page https://www.kowalski.vxm.pl/blog/test/ (clean wordpress installation and twenty thirteen theme)

    And this is the screenshot of how it looks on backend https://screenshots.firefox.com/Alq8TEpeiB5ZOYAm/www.kowalski.vxm.pl

    Thanks!

    Hi,

    Can you let me know with what tool are you editing your post, is it the default WordPress classic editor, Gutenberg or something else?

    It seems your first text is not detected.

    Cheers,

    Thread Starter mkwlsk

    (@mkwlsk)

    Hi,

    I’m using default Gutenberg editor. Excerpts generated from content are visible in editing mode as you can see on the screenshot.

    Thread Starter mkwlsk

    (@mkwlsk)

    Hi,

    I think I found the bug. The line in file /assets/blocks/recent-posts/block.php removes all the content.

    $postContent = preg_replace('/<!--(.*)-->/is', '', $postContent);

    Is it neccessary?

    MK

    Hi,

    Thanks for the feedback.

    This is not mandatory but help to remove extra content.
    You can replace it by $postContent = preg_replace('/<!--(.*?)-->/is', '', $postContent);

    This should fix the issue.
    We’ll provide a version with this fix as soon as possible.

    Cheers

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

The topic ‘recent posts excerpt not loading’ is closed to new replies.