// Wrap the render inner blocks in a `li` element with the appropriate post classes.
$post_classes =
implode( ' ',
get_post_class( 'wp-block-post'
) );
$content .= '<li class="' .
esc_attr( $post_classes ) . '">' .
$block_content . '</li>';
} /*
* Use this function to restore the context of the template tags
* from a secondary query loop back to the main query loop.
* Since we use two custom loops, it's safest to always restore.
*/
wp_reset_postdata();
return sprintf( '<ul %1$s>%2$s</ul>',
$wrapper_attributes,
$content );
}/**
* Registers the `core/post-template` block on the server.
*/