WordPress.org

Ready to get started?Download WordPress

Forums

multiple taxonomy lists search (2 posts)

  1. alrobelller
    Member
    Posted 1 year ago #

    Hi everyone there is a small plugin called

    Drop-down-custom-taxonomy

    but it searches one parameter at a time example link on my test site
    http://sibzal.ru/
    ia there any way to make it's searches sequential/simultanious like i collect all needed parameters and then submit
    like this site http://mchome.com.mx/propiedades/ them to query
    or how and where i should insert relation => AND
    here is the plugin code
    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    and this is my current display code

    <div id="browselist" class="clearfix">
    <h3 class="sidetitle"> Подобрать помещение</h3>
    <p class="listin"><span>Город</span><br/><?php the_dropdown_taxonomy('city'); ?></p>
    <p class="listin"><span>Район</span><br/><?php the_dropdown_taxonomy('location'); ?></p>
    <p class="listir"><span>Тип помещения</span><br/><?php the_dropdown_taxonomy('property'); ?></p>
    <p class="listin"><span>Площадь в м2</span><br/><?php the_dropdown_taxonomy('area'); ?></p>
    <p class="listir"><span>Вместимость (чел.)</span><br/><?php the_dropdown_taxonomy('capacity'); ?></p>
    <p class="listir"><span>Ценовой диапазон</span><br/><?php the_dropdown_taxonomy('range'); ?></p>
    </div>
  2. leonmagee
    Member
    Posted 1 year ago #

    I found a way to search by multiple custom taxonomies by just creating my own form, using the wp_dropdown_categories function.

    This takes you to a taxonomy archive page, rather than a search results page, but if multiple taxonomies are specified in the URL with the GET method, it works to filter the results.

Topic Closed

This topic has been closed to new replies.

About this Topic