Support

Home Forums Custom Files Add-on (EE3) Using [SINGLEEVENT] shortcode in custom post type file

Using [SINGLEEVENT] shortcode in custom post type file

Posted: July 16, 2012 at 11:13 am


Brad Ball

July 16, 2012 at 11:13 am

I am using do_shortcode(‘[SINGLEEVENT single_event_id=”my_identifier”]’); in my custom post type template. It is displaying correctly but I would like to know if there are any parameters I am able to pass to it? Like how you can pass parameters to the Venue short code to allow different items to show or not. My goal is to just display the Registration Form and nothing else. I am using the “Single Event” short code because the REG_EVENT_FORM short code always displays at the top of the page and I cannot control it.


Seth Shoultes

  • Support Staff

July 16, 2012 at 11:31 am

I see what is happening with the output of the ESPRESSO_REG_FORM shortcode. We are not using output buffering in the espresso_reg_form_sc function. If you are experienced with PHP, you should be able to add that to the espresso_reg_form_sc function in the event-espresso/includes/shortcodes.php file.

I am going to add it right now, so the next update should include this change.

The support post ‘Using [SINGLEEVENT] shortcode in custom post type file’ 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