Forums Forums Search & Filter Pro Pass slug of current taxonomy term to (hidden) search field

Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #195241

    I have a custom taxonomy of business_types. Users arrive on a business_type by selecting ‘restaurants’ or whatever. The URL now would be: .com/business-type/restaurants in my taxonomy.php I have a search form that can then filter restaurants by locations.

    The problem is the locations filter dropdown is not passed the restaurant term, so whatever the user has previously selected the same amount of results (anything in locations) can be filtered. So there might be 200 ‘eating and drinking’ businesses, and even if I’ve clicked to ‘cafes’ I can filter by the full taxonomy, not just ‘cafes’ in specified ‘locations’.

    Can I pass the taxonomy slug to search and filter somehow? Or will I need separate taxonomy-[term].php pages to handle this?

    Trevor
    #195242

    Please note that, as your license appears to have expired a year ago, you will first need to renew/complete the license/purchase to receive updates or support.

    I would then suggest that you update the plugin to the latest version, 2.4.6

    However, on the General Settings tab, there is an auto detect Tags, Categories and Taxonomies option. Did you try that?

    Anonymous
    #195259

    Hi Trevor – I had no idea. I’ll get a new licence.

    Also – thank you. I’ll give it a go.

    Matt

    Anonymous
    #195325

    Licence renewed. I tried what you suggested but it’s not working. The custom taxonomy is related to a custom post type. All selected as far as I can see in the admin. But presumably because the first drill down into the business type taxonomy is a wp_query generated links list – Search and filter is not aware of this when it generates its filters on the page business_type/restaurants etc.

    Anonymous
    #195362

    This is almost certainly to do with me using wp_query on the taxonomy page, the trouble is – I think I need to do this. The normal loop won’t work for me.

    Trevor
    #195369
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)