Home Forums Plugin Support Advanced Search Widget How to disable search box, and leave only taxonomy and custom fields

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Tareq Hasan 6 years, 8 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #655

    bluedot
    Participant

    Hi,

    I´ve purchased your plugin that looks great, but I have a problem / question: is it possible to disable the default search box and create the advanced search just with taxonomies and custom fields?

    Also what I noticed: I'm using it for a real estate search and I have the fields to choose: property type, buy or rent and the other fields should be for the input text: min. max price that I could create with custom fields but now need to use the search box. The thing is that if I choose just property type and buy or rent and I don't put anything into the search box, it doesn't show any results.. How to do that if people have chosen Apartments in property type field but haven't inserted any price, they would get all apartments with all the prices in the result page?

    #656

    Tareq Hasan
    Keymaster
    Post count: 2831

    Hello,

    There isn't any solution to hide the search box right now, but you can hide it through CSS. And if the property type, buy or rent is custom taxonomy, they should show the related posts. It won't work with post meta fields.

    #669

    bluedot
    Participant

    Hi,

    Thank's for info, it worked. Another my question is: Because I have different sidebars post types and I would like to use different advanced searches with different values. In the admin I see that is possible to create only one advanced search box (let´s say). Would it be difficult to create an option that enables to create more than 1 type of advanced search? If, yes, what would be a quote for this?

    Thank's

    #670

    Tareq Hasan
    Keymaster
    Post count: 2831

    Currently only one advanced search box is possible. And yes, it's hard to implement right now and we are currently busy with other projects. So it'll not be possible for us now.

    #671

    bluedot
    Participant

    I managed to customize it and produce 3 widgets with 3 different search forms. I'm having some trouble finding the place where the post type is defined for the search. The forms are searching for the different parameters but the post type seems to be defined somewhere else outside the widget files. Could you please point me some directions with this?

    #674

    Tareq Hasan
    Keymaster
    Post count: 2831

    find this line $query->set( 'post_type', $asw_post_types );

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘How to disable search box, and leave only taxonomy and custom fields’ is closed to new replies.