Filter custom taxonomy archive by custom post type using checkboxes (1 post)

  1. thhhhh
    Posted 3 years ago #


    I am currently using the plugin WP-dtree to sort my website according to a custom taxonomy called Topics. I have "Topics" assigned to posts in a number of different post types, including "resources," "animation," "people," and "wiki"

    I've set it up so that the taxonomy sorting is working - most posts haven't been assigned taxonomies, but an example of a functional taxonomy page is here: http://rarebit.org/?topics=studios

    What I would like to do is design check-boxes, or radio buttons, which filter these results by post type. Ideally, when you check off a box that says "Show only Animation" it would change the query string to http://rarebit.org/?post_type=animation&topics=studios

    I suspect that this is possible but I could use some help getting going in the right direction. I'm not sure how I would go about programming these checkboxes and I would be thrilled if this community could offer some guidance.

    I am also curious, if anyone knows, if it is possible to show results from across multiple custom post types and if there is an OR operator I can program into the query string? If this is significantly more difficult, I would be fine to design the checkboxes (or radio buttons) so that only one can be selected at once.

    Any help is appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic