Posted: October 21, 2016 at 7:56 am
|
Hi, Now i use that slug, can i know the correct slug for show data and dont show full events? thanks |
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
May I ask exactly what do you mean by events data? |
|
|
yes, the event date. for example if an event is on 22/10/2016 i want to show that detail in my event list |
|
Sorry, where i need to put that file ? |
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. |
|
|
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.. |
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. |
|
|
the theme is that you can download it here thanks! |
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: 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. |
|
|
no i need to display that using that shortcode not in the event page… can you try with this shortcode on jupiter? thanks |
I did try that short code on the Jupiter theme and it did display the event data. |
|
|
sorry i try again and i cannot see that… what can I do? |
Which layout are you using for blog archives in the Jupiter theme settings? |
|
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.