Site logo

[Resolved] Content disappears since WordPress 6.2

Home Forums Support [Resolved] Content disappears since WordPress 6.2

Home Forums Support Content disappears since WordPress 6.2

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2588714
    Achim

    Hi,

    I have a layout element that outputs the featured image on each page. Since upgrading to WordPress 6.2, all the content below the featured image disappears (it’s not in the DOM). As soon as I deactivate the element or deactivate GP Premium, the content is loaded again. I posted a video in the private information field as I upgraded to 6.2 only locally.

    Hope you can help!
    Best, Achim

    #2588719
    Achim

    BTW: If I rebuild the block with PHP, it works well:

    $featured_image = get_the_post_thumbnail( get_the_ID(), 'full' );
    
    if($featured_image):
        echo '<figure class="wp-block-post-featured-image">';
        echo $featured_image;
        echo '</figure>';
    endif;
    #2588838
    David
    Staff
    Customer Support

    Hi there,

    can you temporarily disable any other plugins and if using a child theme can you switch to the parent, then let me know.

    #2588993
    David
    Staff
    Customer Support

    OK – update.
    We tracked it down to an issue with the core Post Featured Image block that you’re using.
    Can you replace that block in the element with a GenerateBlocks Image Block, and you can set its Dynamic Data options in the sidebar to show the Content Source > Featured Image.

    #2589140
    Achim

    Hey David,
    thanks for your fast reply!

    Replacing the block with a GenerateBlock would of course be an option, however this multisite does not have GeneratebBlocks installed and the Featured Image would be the only case why I would install the plugin.

    I’ll stick with the “manual” PHP solution for now and include the featured image as a template part via the generate_after_header hook.

    #2590318
    David
    Staff
    Customer Support

    FYI Tom has open a POC on this as its a bug that WP has introduced in 6.2.

    Glad to hear you have a working solution.

    #2590508
    Achim

    Hey David,

    great, thanks for your efforts.

    Since my solution works well for me, I’ll close the topic here.

    Best,
    Achim

    #2590610
    David
    Staff
    Customer Support

    Thanks Achim, all the best.

    For reference POC can be seen here:

    https://core.trac.wordpress.org/ticket/58027

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.