WordPress.org

Support

Support » Plugins and Hacks » Filter multiple tags with a checkbox input form

Filter multiple tags with a checkbox input form

  • Hi,

    I need some help creating a tags filter input checkbox form. The form is located at top of the page.

    The index.php contains following code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    After checking the two checkboxes “tag1” and “tag2” and hitting the submit button, the following url is loaded:
    http://www.myhome.de/?tags%5B0%5D=tag1&tags%5B1%5D=tag2
    This url doesn’t work, it doesn’t filter any tags.

    The $url variable contains this:
    “http://www.myhome.com/tag/tag1,tag2”

    The problem is the wp_redirect doesn’t work. The page just stops loading at exit; without redirecting to “http://www.myhome.com/tag/tag1,tag2”.

    Maybe someone has a hint, maybe there is a better technique for solving this kind of problem in WordPress?

Viewing 2 replies - 1 through 2 (of 2 total)
  • [Code moderated as per the Forum Rules. Please use the pastebin]

    I was able to get this to work. I was getting 404 page errors if there was not a post tagged with the selection I choose. All I did was remove the [] with the “name” of the input.

    I have a similar question and woudl love to have seen the code that was moderated out of this thread. Wkayh or Ble1frei – do either of you have an example of this code you could post? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter multiple tags with a checkbox input form’ is closed to new replies.