-
AuthorPosts
-
December 10, 2025 at 2:53 pm #1492359
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, AlexDecember 11, 2025 at 8:28 am #1492383Hey 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,
IsmaelDecember 11, 2025 at 1:10 pm #1492413Thanks, 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! :)
December 12, 2025 at 7:37 am #1492442Hi,
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,
IsmaelDecember 12, 2025 at 1:07 pm #1492463Thanks.
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 :)December 15, 2025 at 7:40 am #1492511Hi,
They do not quite fit and one seems to be hijacked.
What do you mean? Which conditional function did you use for the widget? Please provide a link to the post where you want the widgets to display so we can provide the correct conditional functions.
Best regards,
IsmaelDecember 15, 2025 at 10:08 am #1492520This reply has been marked as private.December 16, 2025 at 8:48 am #1492553Hi,
Thank you for the info.
Have you tried installing the plugin we suggested above so you can select a category to display instead of using the default Recent Posts widget?
— https://wordpress.org/plugins/category-posts/
Please provide the login details in the private field so we can check this further.
Best regards,
IsmaelDecember 18, 2025 at 6:04 pm #1492660Using Widget options plugin works on showing Recent Post widget only shown on specific categories.
https://ibb.co/k6WDcgsc
December 19, 2025 at 7:24 am #1492668 -
AuthorPosts
- You must be logged in to reply to this topic.
