• Resolved signale

    (@signale)


    Hello and a very good day!
    Could you please tell how does the RSVP form template is processed?
    It doesn’t follow the common template path. Could you please tell which filter could be applied so shortcodes work there too?
    I set a shortcode there just like in the single event field and it doesn’t work as expected, it works like previously the single event template without the filter did.
    May be it’s due to the nested placeholders? So RSVP form placeholder displays other placeholders, so it acts like a shortcode itself
    Is there a way to render a shortcode in this form template field?
    It would simplify the form styling a lot. Also, while we’re on this topic, is there a way to set the input field class somehow? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    (@liedekef)

    The RSVP form does support shortcodes. Do you have an example of something that doesn’t work?

    Thread Starter signale

    (@signale)

    Well, I’m not putting the shortcode inside the form template, I’m doing quite the opposite – I’m putting the form template into the shortcode which I wish to render lately just as I’m doing with the single event template here:
    https://www.ads-software.com/support/topic/shortcode-and-placeholder-render-order/

    In the form default template I got a shortcode. But it doesn’t render correctly, it doesn’t see placeholders and outputs them as is

    So I need to put the same do_shortcode() function before rendering the placeholders. It seems like the ordinary filter eme_events_format_prefilter doesn’t have effect here

    Plugin Author Franky

    (@liedekef)

    The preflter acts on the event format before any placeholders are replaced. And since the form is shown by a placeholder, it is not “present” at that time yet.
    But at the end of the function where event placeholders are replaced by their values, I also call do_shortcode on the rest so any leftover shortcodes get replaced.
    You’d need eme_add_booking_form_prefilter, I’ll add that in the next version.

    Thread Starter signale

    (@signale)

    Oh, awesome, and it would be so useful to have filters for all other templates too.
    Thanks for such responsive support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘RSVP form template processing differently’ is closed to new replies.