• Resolved Jennyfer37

    (@jennyfer37)


    Hi,

    I want to create the effect of two calendars – one for events and one for classes.

    I’ve managed to set up a page with all events with a certain “tag” as I understand this is the best way to have different calendars?

    I’d like to be able to replicate the features of the main events page I currently have including a search form but when I run a search on my custom page, the search form returns me to the default events page.

    Any idea how I can change this? I want to only search events with that tag and for results to be shown on my custom page.

    Thanks
    Jen

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Just to confirm, you are basically trying to keep search results to one tag? Perhaps you can try the following: [event_search_form pagination=1 limit=20 tag=81 ]

    Thread Starter Jennyfer37

    (@jennyfer37)

    Yes, that’s right – doesn’t seem to work with tags though…

    Are you sure the tag ID is correct?

    Which version of Events Manager are you using?

    Thread Starter Jennyfer37

    (@jennyfer37)

    I don’t see a tag number so used the tag name as shown:

    [event_search_form pagination=1 limit=20 tag=”class” ]

    I also included the tag in an events list as shown:

    [events_list scope=”month” tag=”class”]
    #_EVENTLINK
    Dates : #_EVENTDATES
    Times : #_EVENTTIMES
    [/events_list]

    The tags work in the events list but when I search it still searches all events and takes me to https://www.thishitchinmummy.co.uk/events rather than results being displayed on the page where the listings are e.g .www.thisihitchinmummy.co.uk/test-classes

    I’m using version 5.7.3

    Thanks
    Jen

    The [event_search_form] shortcode doesn’t use attributes, so you use tags with it in this way.

    The use tags as a searchable option you’d need to use custom coding like this:
    https://pastebin.com/2GiqjWfG

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search form for custom pages’ is closed to new replies.