Forums Forums Search & Filter Pro Passing data to shortcode when displaying the filter form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #209004

    I have a situation where I am displaying custom posts based on location (which is defined by a custom taxonomy).

    I have create the ability to switch between locations, and would like to display posts and a filter that is locked to that location.

    The archive page for the custom post page is displaying results for the selected location, and I’m using the shortcode to display the filter form. I know that when you are setting up a form, you can specify to display ONLY posts from X taxonomy under the Tags, Categories & Taxonomies tab, but is there a way to pass a dynamically generated id instead of specifying it there? Ideally by adding a variable to the shortcode or by outputting the form with a PHP function.

    Right now, I could create a separate form for each location, but that seems like a nightmare to maintain and requires manual intervention every time a new location is added.

    Trevor
    #209019

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

    You have it correct. There is no way to dynamically pass the variable in advance of the results being filtered.

    Anonymous
    #209032

    Done, didn’t realize it had expired. Thanks for the heads up.

    So there’s basically no way to do what I’m trying to do without creating multiple forms?

    Trevor
    #209045

    That is how I do it on my sites. This may change in V3 (some months away yet).

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