Support

Home Forums Event Espresso Premium show event data and don't show an event if it is full

show event data and don't show an event if it is full

Posted: October 21, 2016 at 7:56 am

Viewing 12 reply threads


a.chiarottino

October 21, 2016 at 7:56 am

Hi,
I want to display events data and it is possible don’t display an event if that event is sold out?

Now i use that slug, can i know the correct slug for show data and dont show full events?
[ESPRESSO_EVENTS category_slug=category]

thanks


Josh

  • Support Staff

October 21, 2016 at 9:32 am

Hi there,

I’m afraid there isn’t a short code parameter for not showing sold events. Instead, you’ll need to add some PHP to your site. Here’s some example code that removes sold out events from the event list:

https://gist.github.com/joshfeck/c35096d61507241f2c455d54517d1054

I want to display events data

May I ask exactly what do you mean by events data?


a.chiarottino

October 21, 2016 at 9:35 am

yes, the event date. for example if an event is on 22/10/2016 i want to show that detail in my event list


a.chiarottino

October 21, 2016 at 9:37 am

Sorry, where i need to put that file ?
https://gist.github.com/joshfeck/c35096d61507241f2c455d54517d1054
The sold_out.php must be inside eventespresso plugin or somewhere else ? How i can recall it ?


Josh

  • Support Staff

October 21, 2016 at 10:15 am

You can add the above code to a functions plugin or into your WordPress theme’s functions.php file. You do *not* put the code inside the Event Espresso plugin.

The event date can be displayed by turning on a setting in Event Espresso > Events > Templates > Event Listings. You set Display Datetimes to Yes.


a.chiarottino

October 21, 2016 at 10:20 am

The event date can be displayed by turning on a setting in Event Espresso > Events > Templates > Event Listings. You set Display Datetimes to Yes.

Is already set on yes..


Josh

  • Support Staff

October 21, 2016 at 10:36 am

Uh oh, what’s the name of the active WordPress theme, and where might I be able to download a copy of it? When no dates are displaying, that’s usually because the WordPress theme broke something.


a.chiarottino

October 24, 2016 at 1:51 am

the theme is that
https://themeforest.net/item/jupiter-multipurpose-responsive-theme/5177775
jupiter for wordpress.
Yes, i cannot see the data in the main events page or using shortcode.

you can download it here
https://www.dropbox.com/s/czhj5prf3amsy5x/jupiter.zip?dl=0

thanks!


Josh

  • Support Staff

October 24, 2016 at 9:48 am

I’m not seeing any issues with using the short code on a page with the Jupiter theme. The event data does display there. It may help to double-check the settings and re-save them.

With the main events page, the Jupiter theme actually outputs the post archive views using a short code, and you can override its default “full-content” parameter to get the event data to display. So it looks like the only way to override it is go into the Jupiter theme’s shortcodes folder, and edit the mk_blog.php file on line 6 and change this:
'full_content' => 'false',
to be this:
'full_content' => 'true',

Then, you’ll need to make sure you use one of the layouts like “modern” or “classic”. Some of the layouts like Magazine do not return any of the post content.


a.chiarottino

October 25, 2016 at 7:24 am

no i need to display that using that shortcode
[ESPRESSO_EVENTS category_slug=category]

not in the event page… can you try with this shortcode on jupiter?

thanks


Josh

  • Support Staff

October 25, 2016 at 11:07 am

I did try that short code on the Jupiter theme and it did display the event data.


a.chiarottino

October 27, 2016 at 7:32 am

sorry i try again and i cannot see that… what can I do?


Josh

  • Support Staff

October 27, 2016 at 8:26 am

Which layout are you using for blog archives in the Jupiter theme settings?

Viewing 12 reply threads

The support post ‘show event data and don't show an event if it is full’ 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