• Hi!

    I’ve been using your plug-in for one site I maintain.
    But the thing is that I needed to be able to exclude some stuff from Archives.

    What I wanted to achieve is to exclude category IDs, but the query did not accept that for some reason, though I tried in different ways.

    I’ve come up with a hook – excluding one tag ID (which I added to all the posts I wanted to exclude).

    That’s what I’ve got https://pastebin.com/vTSDLPCM
    Diff:
    28, 32 – Updated widget form (very basic)

    40 – Added to update()

    51, 62 – Updated query.

    I triyed to use arrays, uniting vars with commas etc, but that didn’t work.
    I am closing work on this project now, so maybe of no help with this.
    So consider as FYI.

    https://www.ads-software.com/plugins/better-archives-widget/

  • The topic ‘Exlude option’ is closed to new replies.