• Hi,

    I am trying to implement this type of code into new block type theme and I cannot seem to do so nor find any documentation for it. Here is the old code

            if(has_post_thumbnail()) {
              the_post_thumbnail();
            } else {
             echo '<img src=""/>';
             }

    With new block html files I only see this

    <!-- wp:post-featured-image {"align":"full"} /-->

    I am not sure if the above conditional statement can be made now. Any help would be great.

    • This topic was modified 4 years, 12 months ago by Chandra M.
    • This topic was modified 4 years, 12 months ago by Chandra M.
    • This topic was modified 4 years, 12 months ago by Chandra M.
    • This topic was modified 4 years, 11 months ago by bcworkz.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Featured Image Fallback with new blocks’ is closed to new replies.