• Hi

    is it possible to display widget on specific category with its own subcategories with this plugin ?
    if yes please give me some guide

    thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kaspars

    (@kasparsd)

    @miladjfr Do you want to display it on category archives of those subcategories or posts in those subcategories?

    For category archives, the following snippet should work:

    category/parent-category/*

    while the post targeting depends on your URL structure — do you have the category slug in the post URL? Something like example.com/blog/category-slug/post-title?

    Thread Starter Milad Jafari

    (@miladjfr)

    yes i want to display it on specific categories with all subcategories and all child posts.

    my category slug is something like this :

    example.com/news/post-title

    I have the same wish; that I can specify for which blog and event categories subpages the widget is shown. The category is not part of the name. And I know that for the events it is not at all possible to do so.

    Plugin Author Kaspars

    (@kasparsd)

    @miladjfr Then something like this should work:

    news/*

    for targeting all posts in the news category.

    For targeting archives pages you could use:

    category/news/*

    Hey @kasparsd is it possible to display a widget on a specific category without have a special pattern in the URL ?
    By exemple, for this website, it’s not category/one/* category/two/* but category/* and I would like the widget only for the category one !
    No choice in your checkbox. Is there a way to altering your choice ? I’m new with WordPress (coming from Drupal), it seems add_action or add_filter could help me ?
    Thanks for your job and by advance thx again for your help !

    Plugin Author Kaspars

    (@kasparsd)

    @jonathanlo It is currently not possible to target posts in certain categories if the category is not part of the URL.

    This has been a highly requested feature so I’ll be working on adding this next.

    • This reply was modified 5 years, 11 months ago by Kaspars. Reason: Link to the relevant issue on GitHub
    • This reply was modified 5 years, 11 months ago by Kaspars.

    Any news about this feature?

    I think many people including myself would need this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘widget on category and subcategories’ is closed to new replies.