Hi @john_graver
Your site uses the latest WordPress.
A new editor lets you view the latest posts.
I recommend that you try it first.
Please let us know where you are not satisfied.
static page edit.
Click add block button ( page top left + button )
Select widget
Click Latest Posts
Click the location of the added block
block menu ( page right menu )
Number of items
Set value 1
Post Content Setting
set On
Click Show full post radio button
Update then you can view the latest post.
The block editor has a bug. To activate the latest bug fixes.
It is recommended to enable gutenberg plugin.
https://ww.wp.xz.cn/plugins/gutenberg/
Thank you.
-
This reply was modified 6 years, 7 months ago by
nobita.
Correct.
It is recommended to enable gutenberg plugin.
It is required to enable gutenberg plugin.
https://ww.wp.xz.cn/plugins/gutenberg/
Hi Nobita,
Thanks for the hint. It works quite fine, but the main obstacle for me is that then I can no longer use the classic editor and the new block editor is a pain for me. Another problems were that I was not able to position the widget (neither can it be sized) and the Jetpack publicize elements (FB like/share) disappeared.
I have also tried the shortcode [archive], which seems to do the trick but it does not work in my case. When I insert it into the page it just writes out the shortcode text. I have the WP instalation on separate server (not wordpress.com) but with Jetpack should the shortcodes work as well.
br/
John
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.
The simplest way without gutenberg editor
open widget page
Drag the recent post widget to the sticky widget area
Number of posts to show set 1
Display at the top of the page.
I don’t know if you like it, but please tell me the result
Thank you
-
This reply was modified 6 years, 7 months ago by
nobita.
-
This reply was modified 6 years, 7 months ago by
nobita.