Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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, Alex

    #1492383

    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

    #1492413

    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! :)

    #1492442

    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

    #1492463

    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 :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.