WordPress.org

Ready to get started?Download WordPress

Forums

Ajax WP Query Search Filter
'Category' - Parent and Child (4 posts)

  1. MrCarlLister
    Member
    Posted 1 year ago #

    Hello again!

    I have 3 parent categories: Online, Offline + Broadcast.

    I have child categories attached to each of those (half a dozen for each).

    What I would like to do is display the 3 parent categories as 3 radio buttons. Once clicked/search is submitted the relavant child categories will display as radio buttons (I guess I'm asking for conditional statement support).

    Any help would be appreciated.

    Thanks,

    Carl

    http://wordpress.org/extend/plugins/ajax-wp-query-search-filter/

  2. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    The easiest way that I can think of, is create search form for each child category, and display the form upon search by parent catagory clicked. Of course, you have to use javascript and maybe ajax to control the conditional statement.

  3. MrCarlLister
    Member
    Posted 1 year ago #

    Hey thanks for the reply,

    I have another question around this situation: can I just display the parent categories?

    At the minute it is displaying the parent and child categories all together. If I can hide the children ones I may be able to work around it.

    Cheers,

    Carl

  4. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    So far, you will have to editing the plugin in order to do this. It is not recommended for future update sake.

    I will add a filter for it if in the next release so that you can easily do what you want.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic