Support

Home Forums Event Espresso Premium Venue Details page

Venue Details page

Posted: December 19, 2014 at 9:48 pm


Bob Randklev

December 19, 2014 at 9:48 pm

I’ve implemented the code to add a function to list all events for a given venue as described in: https://eventespresso.com/wiki/useful-php-code-snippets/#venue-event-list, but I am not absolutely sure how I view the Venue Details page.

Where do I find/access this page?


Bob Randklev

December 21, 2014 at 6:43 am

Update: I’ve now found the Venue Detail page – sorry, didn’t see the “View Venue” button and resulting URL for that venue page.

Even so, I am still unable to get the venue’s events to be displayed after adding the #venue-event-list code as a plugin.

To confirm, I only needed to add this code to our custom code plugin. I didn’t need to make any edits to the venue template file?

FWIW, here is the URL for one of our venues: http://streetsmartsdriversed.com/venues/4-4ecd23ce71044/

To confirm, I only needed to add this code to our


Lorenzo Orlando Caum

  • Support Staff

December 22, 2014 at 9:30 am

Hi, it should appear similar to this:

https://monosnap.com/image/jpmFuX5sFK6VHIoYeugxJGPYPKv1fq

Is your site specific plugin activated?


Lorenzo


Bob Randklev

December 23, 2014 at 3:22 pm

Hi Lorenzo,

Just confirmed that the plugin is activated. So, again, if I create the custom plugin and add the code as described in the sample code post, there’s nothing further to do in the venue page (or its template) – the venue events should just appear from that point forward?


Josh

  • Support Staff

December 23, 2014 at 5:09 pm

Hi Bob,

That’s correct. Nothing needs to be done to the venue template because the function loads on the AHEE__content_espresso_venues_details_template__after_the_content action hook.

Did you happen to make some modifications to one of the venue templates? The reason I ask is because your list of events for each venue is displaying on the venue archive page:

http://streetsmartsdriversed.com/venues/

If that’s the case, you could try changing the code so the function fires on a different hook like:

AHEE__content_espresso_venues_template__after_post


Bob Randklev

December 26, 2014 at 9:51 pm

No changes have been made any changes to the venue template so I am not sure why this function wouldn’t fire.

I even changed the code as you suggested to the AHEE__content_espresso_venues_template__after_post hook, but no observable change occurred.


Lorenzo Orlando Caum

  • Support Staff

December 29, 2014 at 10:57 am

Hi, when I inspect your page source, the folder name for Event Espresso appears like this:

/wp-content/plugins/eventespresso.tmp

That appears to be a temporary folder name. Could you try removing Event Espresso 4 and re-installing a fresh copy from your Event Espresso account page?

Also, are there any Event Espresso 4 template files located here:

/wp-content/themes/your-theme-folder


Lorenzo


Josh

  • Support Staff

December 29, 2014 at 2:33 pm

I’m wondering if there’s a loop within the theme that’s being overridden for the single venue. The single venue loop and archive loop both use this same template.

Does your theme have any single post or single venue post templates, or does it have a feature that lets you alter single post loops?


Bob Randklev

December 30, 2014 at 2:06 pm

Hi Lorenzo,

So that I don’t screw something up by reinstalling the plugin, am I okay to just uninstall the EE and then reinstall? Will our EE data (DB tables) go untouched?


Bob Randklev

December 30, 2014 at 2:07 pm

Josh,

We are using iThemes’ Builder as our theme. It does have a single.php


Josh

  • Support Staff

December 30, 2014 at 2:43 pm

Hi Bob,

You could check to see if the theme is causing the issue by installing the theme test drive plugin and test drive another theme.

You can deactivate EE4, and upload a fresh copy. This will only affect the PHP files on your server. The database is in a separate part of your server and doesn’t get touched when you re-install the Event Espresso plugin.


Bob Randklev

January 8, 2015 at 9:33 pm

Hi Josh,

I’ve updated the EE4 plugin and it appears to be pulling from the correct directory now.

Unfortunately, my events are still not listing under a given venue even after “test driving” with a standard theme like 2013 theme (per your instructions).


Josh

  • Support Staff

January 9, 2015 at 2:35 pm

Hi Bob,

Is the code snippet to add the events to the venue page still active? The reason I ask is because there used to be a list of events for each venue on the venue archive when I checked before. It’s not there now.

The support post ‘Venue Details page’ 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