• Resolved alexfregon

    (@alexfregon)


    Hi,

    I’m setting up a new site for a training organisation. I want to use Events Manager to handle the display of dates, but not bookings.

    Our courses have multiple dates, but obviously EM doesn’t handle events with multiple dates, so I’m setting up each course as a ‘category, and each instance of the course as a seperate event. Then I’m setting up a page for each course, and using a shortcode to display the dates for that category.

    I don’t want the user to be able to access the individual instance/event pages, so I’m using the #_EVENTNAME placeholder instead of #_EVENTLINK. But what I would like to do is have the dates link to another page instead: I’d like them to link to an application form, with the course title and date pre-populated.

    Is it possible to have shortcode dates link to custom URLs?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    just to confirm, did you mean link eventname placeholder to custom or external link?

    Thread Starter alexfregon

    (@alexfregon)

    to a custom link within the site. Hoping to link it to a contact form, and use the date from the event to pre-populate a date field.

    One way to do this would be to use a custom attribute to store and display the custom URL:

    https://wp-events-plugin.com/documentation/event-attributes/

    Thread Starter alexfregon

    (@alexfregon)

    For anyone interested, I’ve figured out a solution: embed an <a href> link inside an [events_list] shortcode, and use placeholders to pre-populate fields in the form I’m linking to.

    [events_list category="course+name"]
    <a href="/enquiry/?course=#_ATT{EVENTID}&date=#_{d/m/Y}">#_EVENTDATES, #_EVENTTIMES</a>
    [/events_list']

    This pulls a list of dates for a single event (I’m using categories to group individual dates of each course). Each date links to an enquiry form, with the course name and date pre-populated.

    Using date=#_{d/m/Y} means I can send the date to the form in a different format to the ay it’s displayed on the page (l, F j, Y).

    Too easy!

    • This reply was modified 7 years, 8 months ago by alexfregon.
    • This reply was modified 7 years, 8 months ago by alexfregon.

    Thanks for sharing your solution; it might help someone else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom links from shortcode dates’ is closed to new replies.