The block editor still has many bugs, so plug-ins may not work.
Consider short codes
for example
If you can write php, paste the following code into functions.php.
add_shortcode( 'archive', 'my_latest_post' );
function my_latest_post() {
$args = array(
'numberposts' => 1,
'offset' => 0,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'suppress_filters' => false
);
$html = '<div class="latest-post fit-p clearfix">'
. '<h3 class="latest-post-title entry-title h2"><a href="%1$s">%2$s</a></h3>'
. '<p class="latest-post-date">%3$s</p>'
. '<div class="latest-post-content">%4$s</div>'
. '</div>';
$recent_posts = wp_get_recent_posts( $args );
$results = '';
foreach ( $recent_posts as $recent ) {
$post_id = absint( $recent["ID"] );
$results .= sprintf( $html, esc_url( get_permalink( $post_id ) ), wp_kses_post( $recent["post_title"] ), get_the_date(), wp_kses_post( apply_filters( 'the_content', $recent["post_content"] ) )
);
}
wp_reset_query();
return $results;
}
add shortcode
[archive]
Is this what you want?
Please tell me the result.
Even if you paste and work well, it disappears when you update the theme, so you need to do other processing next.( child theme )
Thank you.