How to display recent post for a specific category using the HTML widget
-
Hello,
I wanted to display my recent posts for a specific category using the HTML widget but don’t know what code to input. Can any one of you who knows coding please help me in this area? Thank you in advance!
The blog I need help with is: (visible only to logged in users)
-
The Categories Widget organizes your posts by category in your blog’s sidebar or footer depending on the theme. This can be handy for readers who want to find more of your posts about certain topics.
https://en.support.wordpress.com/widgets/categories-widget/ -
Thank you timethief! I found a way to my problem last night.
I was trying to display my recent post about a particular category on my homepage. The text widget was the answer and using shortcodes.
For any one who wants to do the same thing. Here’s the shortcode for it.
[display-posts category="replace this with the name of your category" posts_per_page="number of posts you want to show"]
And this link helped me a lot. https://en.support.wordpress.com/display-posts-shortcode/
-
- The topic ‘How to display recent post for a specific category using the HTML widget’ is closed to new replies.