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

  1. MrCarlLister
    Posted 3 years 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.




  2. TC.K
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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.



  4. TC.K
    Plugin Author

    Posted 3 years 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

  • Ajax WP Query Search Filter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic