Support

Home Forums Community Forum Event Shorcode Listing

Event Shorcode Listing

Posted: July 22, 2013 at 4:45 am


goneilbell

July 22, 2013 at 4:45 am

Hi

If I use the [ESPRESSO_VENUE_EVENTS id=”X”] shortcode, I get a list of the events at a venue – which is what I want.

However, I get ALL the event information as well – If I just want a list of the events and dates, how would I go about that (a bit like the appearance of the sidebar widget).

This bit is not live at the moment.

Thanks

Ged


Dean

July 22, 2013 at 5:48 am

Hi Ged,

There really isnt anything built in that will do it. As such you would need to create a custom shortcode, or one reasonable way would be to modify the ESPRESSO_TABLE shortcode from the Custom Files addon (premium) to display just the venue data, but you would still need to assign a specific category.

Alternatively, you could use the css_class attribute (the [ESPRESSO_VENUE_EVENTS] shortcode uses the same attributes that the [EVENT_LIST] shortcode uses), and using that class you could hide all the non essential data that is shown.


goneilbell

July 24, 2013 at 1:18 pm

Hi Dean

Thanks for that, the second paragraph certainly sounds like a good idea and what I’m after. Could you please explain that second paragraph like I’m a five year old?

Thanks again


Josh

  • Support Staff

July 24, 2013 at 3:09 pm

Hi there,

I can show you an example:

On your page where you have the venue list shortcode, you’d add a parameter so it looks like this:

[ESPRESSO_VENUE_EVENTS id=1 css_class=”hidestuff”]

Then in your WordPress theme’s options -or- by using a plugin like my custom CSS plugin you’d add the following code that hides stuff:

.hidestuff .event_price,
.hidestuff .event-desc,
.hidestuff .spaces-available {
display:none;
}


goneilbell

July 25, 2013 at 1:40 am

Thanks Josh

All sorted!

The support post ‘Event Shorcode Listing’ 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