Featured Image Fallback with new blocks
-
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.
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.