Support

Home Forums Event Espresso Premium Show next event date and registration for specific category_slug

Show next event date and registration for specific category_slug

Posted: October 9, 2019 at 1:13 am


madsth

October 9, 2019 at 1:13 am

Hi

Is it possible for a specific category, to show only next event date and link to registration?

Fx for category_slug=XYZ

Next course <date> <registration>

Regards
Mads


Tony

  • Support Staff

October 9, 2019 at 5:55 am

Hi Mads,

Just to confirm, you just want to output Next course <date> <registration>?

May I ask where you want to output the above?


madsth

October 9, 2019 at 6:39 am

Hi Tony

Below each listed course (PSF, PSM, PSPO etc. on https://madstroelshansen.com/) i would like to show next scheduled date and a link to registration (for category_slug=PSF, category_slug=PSM, category_slug=PSPO etc).

/Mads


Tony

  • Support Staff

October 11, 2019 at 6:51 am

EE doesn’t have a shortcode to do the above, but you can add one to a custom functions plugin, for example:

https://gist.github.com/Pebblo/c9ced882dd7ea826c612661939a84ea2

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

That function adds a [NEXT_UPCOMING_EVENT category_slug={slug}] shortcode and outputs ‘Next course {start date} – Register’ but can be changed on this line.

The support post ‘Show next event date and registration for specific category_slug’ 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