Is there a widget for WordPress to show posts from one category with a thumbnail and description for latest post?
WIDGET LIKE: Top news section of WWW.GOAL.com.
Leave a Reply
You must be logged in to post a comment.
Is there a widget for WordPress to show posts from one category with a thumbnail and description for latest post?
WIDGET LIKE: Top news section of WWW.GOAL.com.
You must be logged in to post a comment.
I don’t know of any widgets or plugins that do this by default. To create this within your theme you would need to write multiple query loop that goes through each category then queries the latest posts from each with a counter so the top post can be styled differently.
Quick example.
This will do trick,
Note –
1
with category ID you want to display4
will show latest 4 posts you including the first(full post)if($postCount == 0)
was used to determine first post in loop and show excerpt