Support » Plugin: Events Manager » Booking form not displayed when used with template custom content layout

  • Hi!

    A problem has emerged when Events Manager are used with Custom content Layout in some modern Template builders, such as Avada.
    The single event is displayed in the template content section, but the booking form is NOT displayed.

    The problem is that the Template custom content layout overrides the default content of the event. Since Events Manager embeds the form inside the content of the event, the custom layout won’t include the booking form.

    I need to embed the form myself (in the content of my template custom layout).

    Is there any shortcode that would let me add the booking form for the active event?
    I found a reply in the forum regarding booking form shortcode:

    [event post_id="123"]
    #_BOOKINGFORM
    [/event]

    But from the reply I assume the post_id must be set manually for each add?
    I need the id to be set dynamically based on the displayed single event. (In the same way it would be included in the Formatting settings.

    (Maybe it’s possible to add a button in the event content that links to the booking form? I cannot use the “Book now” button function since the user needs to see the booking form and select number of tickets, etc.)

    Looking forward to any suggestions/solutions that could solve my problem.

    Thanks, (and thanks for a great plugin)

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

    (@angelo_nwl)

    But from the reply, I assume the post_id must be set manually for each add?

    post_id is autogenerated by WP upon saving of the events; under Events > events > hover to the Edit link to see the post_id

    Thread Starter Nighthawk

    (@prilum)

    Thanks for your reply, however I can’t see the relevans between knowing the post id for a particular event, and solving dynamically displayed booking forms. 🙂

    I use AVADA as template, and to create a custom layout (template) to be used with all events, I create a custom layout by adding the sections for Title, Meta and Content.
    I set the layout to be used with Events. The Content section of this layout should display the content dynamically of an Event when displayed as Single Event page, and the sections for Title, Meta and event description are displayed correctly, but due to the way Custom Layouts works the Booking form is not generated within the content section for the displayed event.

    After fiddling around some more, It seems I cannot get the layout from the Events Manager Settings page, but it looks like I can recreate each part of the event content separately in the custom layout, so I will try some more. 🙂

    But, if there is a shortcode (or code) I can add in my template section that shows the booking form related to the displayed event (dynamically) as it is designed in the Events Manager Settings page, it would be great.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Booking form not displayed when used with template custom content layout’ is closed to new replies.