Support

Home Forums Event Espresso Premium Shortcodes

Shortcodes

Posted: January 28, 2017 at 11:50 am


dee4dogs

January 28, 2017 at 11:50 am

Is there a shortcode where I can display the events happening at a particular venue?

I’ve searched the documentation, and I can’t seem to find one.

Thanks
D


dee4dogs

January 28, 2017 at 11:53 am

Found this – trying it now.

https://eventespresso.com/wiki/useful-php-code-snippets/#venue-event-list


dee4dogs

January 28, 2017 at 12:01 pm

OK.. that’s worked, but not exactly how I wanted.

It displays the list here – https://www.dee4dogs.co.uk/venues/

and I would also like it to display that same list (for the appropriate venue) on the next level down… for example:

https://www.dee4dogs.co.uk/venues/loughborough/

Does that make sense?

Thanks
D


Seth Shoultes

  • Support Staff

January 30, 2017 at 9:25 am

Hey there,

It looks to me like the single venue details page is not outputting the venue details correctly. Possibly because the venue template is getting overridden by your theme.

I tested the code you found and it is outputting the events assigned to the venue for me. Here’s some screenshots from two different WordPress themes:

Baskerville:

Twenty Seventeen:

You might want to try creating a a single venue template in your theme directory, or better yet, create a child theme, then include the single venue template in the child theme.

Here’s the single venue template file for reference:
https://github.com/eventespresso/event-espresso-core/blob/master/public/Espresso_Arabica_2014/single-espresso_venues.php

I hope that helps. Please let us know if you have further questions.


dee4dogs

January 30, 2017 at 3:12 pm

It’s the standard 2016 wordpress template.. so not sure it’s doing anything too fancy

Failed on the creation of a child theme… but it’s late, and my brain is a bit fuzzy. I’ll try that again another day.

However, dropping that Github file into the main template folder… worked a charm!

Thanks for a rapid reply.

The support post ‘Shortcodes’ 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.

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: closed

Updated by  dee4dogs 2 years, 3 months ago ago

Topic Tags

Tagged: 

Notifications

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