Is there any way to restrict the posts in the “Recent Posts” widget to specific post categories, like it is possible with “Magazine” or “Blog Posts” Avia elements?
Thanks, Alex
Hey xela,
Thank you for the inquiry.
The default Recent Posts widget doesn’t include this option, but you can install plugins like the ones listed below to display posts from selected categories.
— https://wordpress.org/plugins/category-posts/
— https://wordpress.org/plugins/widget-recent-posts-with-category-choice/
Hope this helps.
Best regards,
Ismael
Thanks, that worked out fine!
But I have another one:
Is it possible to (programmatically) display a specific sidebar only on posts of a particular category? We have a “Podcast” post category and would like different content to appear in the sidebar than for other blog posts.
Thanks again! :)
Hi,
Thank you for the update.
You can use a plugin like Widget Logic or Widget Options to conditionally display a specific widget on any page. Please check the links below for more details.
— https://wordpress.org/plugins/widget-logic/
— https://wordpress.org/plugins/widget-options/
Best regards,
Ismael
Thanks.
They do not quite fit and one seems to be hijacked.
Anyways, Is there a WordPress filter that allows you to change the selected sidebar using PHP?
Thanks again :)
