• We are creating a webstore with WooCommerce and the frontpage displays a list of news in a WordPress “Latest Posts” widget. We are using the default WooCommerce Storefront theme.

    We would like to add references to products to these posts using Woocommerce Gutenberg blocks like “Hand-picket Products” or “Featured Product”. They display fine on the post page, but they are not showing on the Latest Posts widget even when the widget has the option Show -> Full post turned on.

    I did more tests and realized that the Latest Posts widget doesn’t display certain other blocks either. It seems the block is in the markup but for some reason it’s not generated

    <div class="wp-block-latest-posts__post-full-content">
    <!-- wp:paragraph -->
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam non lectus eget erat blandit fermentum vitae quis mauris. Nunc posuere felis non orci posuere lobortis. Curabitur faucibus tortor eu porta sollicitudin. Sed metus dui, mattis ut sapien sit amet, sollicitudin pharetra diam. Nam mattis enim.</p>
    <!-- /wp:paragraph -->
    <!-- wp:woocommerce/featured-product {"editMode":false,"productId":52} -->
    <!-- wp:button {"align":"center"} -->
    <div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://tiera-repro.com/wptest/product/beanie/">Shop now</a></div>
    <!-- /wp:button -->
    <!-- /wp:woocommerce/featured-product -->
    <!-- wp:paragraph -->
    <p>Mauris nec odio vitae elit rutrum sagittis. Ut non tortor eu erat placerat sollicitudin. In hac habitasse platea dictumst. Nunc rutrum pretium consequat. Phasellus egestas nibh id lorem suscipit suscipit. Ut lacus ipsum, feugiat at mattis quis, lobortis eget risus.</p>
    <!-- /wp:paragraph -->
    </div>

    How can I display the full post content including all blocks on the Latest Posts widget?

  • The topic ‘Latest Posts block not displaying post content blocks properly’ is closed to new replies.