Posted: 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? |
|
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 |
Hi, it should appear similar to this: https://monosnap.com/image/jpmFuX5sFK6VHIoYeugxJGPYPKv1fq Is your site specific plugin activated? — |
|
|
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? |
Hi Bob, That’s correct. Nothing needs to be done to the venue template because the function loads on the 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:
|
|
|
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. |
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 — |
|
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? |
|
|
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? |
|
Josh, We are using iThemes’ Builder as our theme. It does have a single.php |
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. |
|
|
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). |
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.