Support

Home Forums Event Espresso Premium How to Create a Custom Shortcode in EE4

How to Create a Custom Shortcode in EE4

Posted: March 8, 2015 at 4:26 pm

Viewing 1 reply thread


Jeya Ganes Kisnan

March 8, 2015 at 4:26 pm

How do I create a Custom ShortCode

I need to show

1. List of Paid Attendee
2. List of Unpaid Attendee
3. List of Group Attendee
4. Countdown Timer

Tried reading through the documentation but could not find anything related to this …

Nearest I could find was the code posted on github and this link
https://gist.github.com/Apina/568dbb38be956f314a64
https://eventespresso.com/topic/custom-shortcodes/

I could not find the section for Custom Files in Downloads Section

and most of this shortcodes are from EE3 cant be used in EE4 🙁


Dean

March 9, 2015 at 3:42 am

Hi,

The links you provided relate to EE3, NOT to EE4.

Under the hood, EE4 is vastly different from EE3, so the code designed for EE3 simply won’t work for EE4.

For what you want to do, most likely you will need to use the database directly as there’s no shortcode for it currently.

Josh made a basic Attendee List function for EE4 here: https://gist.github.com/joshfeck/55f20059953119b46b34

And here is the same function converted to a shortcode: https://gist.github.com/Apina/a7bd83cdb4e2fa9788dd

You should be ale to modify the code to display the appropriate data you need.

Viewing 1 reply thread

The support post ‘How to Create a Custom Shortcode in EE4’ 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