Support

Home Forums Event Espresso Premium URL vars

URL vars

Posted: March 18, 2013 at 8:39 am

Viewing 4 reply threads


mat taylor

March 18, 2013 at 8:39 am

I think i have a relatively simple question but im not a developer, im a designer with technical knowledge. I have the following:

Page A:
>>a drop down list containing a list of cities
>> & a button that says ‘events in your city’

Page B:
>>An event list that takes the city choice and displays all events in the chosen city, sorted by soonest first.

So, when the user hits the button they get a dynamic list of events.

ideally i would like some kind of URL variable so i dont have to dig about too much in php. any ideas?? 🙁

mat


Chris Reynolds

  • Support Staff

March 18, 2013 at 2:43 pm

Anything I can think of off the top of my head would require digging around in php or hard-coding the dropdown list. Pick your poison.


mat taylor

March 22, 2013 at 7:52 am

I picked the poison and hardcoded in a dropdown to capture user input so ive now got a form that posts 2 variables… $eventTitle & $eventState. I would like to filter ALL events on these two variables.

I can manage the State matching with categories but i will need to match the event title as well and im not able to use categories for this as they change often. So how can I filter/search by title & a category?

mat


mat taylor

March 22, 2013 at 7:53 am

btw, nested categories would be a nice feature for futre versions. As would the ability to add categories to venues.


Chris Reynolds

  • Support Staff

March 22, 2013 at 1:23 pm

Hey Mat —

Search by category — would probably require a custom sql query.
Search by title can be done with the event search shortcode…that’s probably not specifically what you’re looking for but, I dunno, maybe if you look into that shortcode it might give you hints about what you’re trying to do. https://eventespresso.com/wiki/shortcodes-template-variables/#event-search

Nested categories — excellent recommendation. Can add it to the feature request list.
Assigning venues to categories — I believe venues are going to be eventually made into custom post types (categories might become taxonomies), so this may be possible down the road as well.

Viewing 4 reply threads

The support post ‘URL vars’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso