Support » Plugin: Widget Context » feature request: positive and negative contexts

  • Resolved bhammondCVL


    I have a site with urls constructed like:

    I want the a Popular Posts widget to show only posts within each category. But if I set the context by url to “/parent-category/, /parent-category/*”, the widget will show on both the posts in just /parent-category/ and on posts in the /child-category/.

    It would be nice to be able to set it as: show the widget if the url is /parent-category/* UNLESS the url is /parent-category/child-category/.

    Or, maybe just check off or specify by category ID in which categories the widget is supposed to show on.

    A work-around for this, I guess, would be to have two widgets, one which would display on /parent-category/* and one which would display on /parent-category/child-category/*, and then just hide the /parent-category/* widget on /child-category/ pages via CSS. But that’s a performance hit it I’d prefer to avoid.

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


    Thanks for the suggestion! I’ve seen other plugins support this by using the ! mark as a prefix to all inverse URLs. Would that work?

    If you mean something like this, it doesn’t work:

    Plugin Author Kaspars


    Yes, I was suggesting that as a new feature that needs to be added to the plugin. Currently, the plugin doesn’t support “inverted” Target by URL contexts.



    Ah—sorry! I did not read your reply correctly. Yes, a feature like that would be great.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘feature request: positive and negative contexts’ is closed to new replies.