How to display categories on the front page
You can display the categories by placing the widgets for the categories in dashboard / widget / sticky widget.
Excerpt cannot be displayed in ‘Category New Post widget’ attached to the theme
You’ll probably need to enable WordPress 5.6.1 and the gutenberg plugin to get the look you want.
Gutenberg – WordPress plugin | WordPress.org
After enabling the plugin, you will see the Latest Posts widget.
Place the widget in the sticky widget area.
On the right side of the edit screen, there is an item to specify the category, so specify the category.
Then open the customizer and add a little CSS to customize it to look nice
.sticky-widget .wp-block-latest-posts__list li{
overflow:hidden;
margin-bottom:1.5rem;
border-bottom:1px solid #ccc;
}
.sticky-widget .wp-block-latest-posts__list .wp-block-latest-posts__featured-image{
float:left;
}
.sticky-widget .wp-block-latest-posts__list .wp-block-latest-posts__featured-image ~ a {
margin-left:165px;
}
.sticky-widget .wp-block-latest-posts__list .wp-block-latest-posts__featured-image ~ .wp-block-latest-posts__post-excerpt {
margin-left:165px;
}
example
http://www.tenman.info/wp3/manualraindrops/files/esample.png
Thank you.
Thread Starter
todga
(@todga)
Hello,
Thanks.
But I meant on the list of posts on the frontpage not on widget area.
Posts have titles, excerpts and Continue Reading on the frontpage.
I want the category of the posts to also show alogside too.
On the edit screen of the front page, select blank front as the template.
Tags and recent posts are also displayed, but in the template
The settings for this template are described in the template
example
display recent posts
$raindrops_bf_recent_posts ='y';
hide recent posts
$raindrops_bf_recent_posts ='n';
thank you