Hi,
I have a relatively simple issue with the Grid View template that I’ve been unable to solve. One of my events has multiple dates, May 16 and May 17, however the grid view is only showing the first date. It would make the most sense if it was able to show both dates as their own grid item, and then linking to the same spot, I just don’t know how to accomplish it with the EE functions within the Grid View.
For reference, this is the code that is in the template file.
Sorry for the delay. It looks like you have some code issues with what you’ve shared here. For example, this line of your code: <img />" alt="" />
Should look like this: <img src="<?php echo $image; ?>" alt="" />
Then, this line of code is broken: <p class="event-link"><?php echo '<a>ID .'" href="' . $registration_url . '">' . $button_text . '</a>'; ?></p>
It should look something like this: <p class="event-link"><?php echo '<a href="'. $post->ID .'" ' . $registration_url . '">' . $button_text . '</a>'; ?></p>
Once those issues are fixed, try the code again and see if it’s working.
Further to the above, you can’t easily split individual datetimes within events into separate grid items but you can change the date output on the dried to be a range, would that work?
I’ve put together a template that shows how you can do the above here:
The support post ‘Events Grid View Template – All Event Dates’ 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.