Viewing 10 posts - 1 through 10 (of 10 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 :)

    #1492511

    Hi,

    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,
    Ismael

    #1492520
    This reply has been marked as private.
    #1492553

    Hi,

    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,
    Ismael

    #1492660

    Using Widget options plugin works on showing Recent Post widget only shown on specific categories.
    Widget options configuration https://ibb.co/k6WDcgsc

    #1492668

    Hi,

    Is the plugin working? We’re not able to view the screenshot for some reason. Please try to use freeimage.host instead. If you can provide the login details in the private field, we’ll check the widgets further.

    Best regards,
    Ismael

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