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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 5 days, 11 hours ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!