Support

Home Forums Events Calendar Add-on Two Event Venues/Location – Only one is showing in Calendar

Two Event Venues/Location – Only one is showing in Calendar

Posted: July 19, 2013 at 3:40 pm


Rich O

July 19, 2013 at 3:40 pm

Hello guys,

My calendar had events with one venue/location. Then I created same events but with other venue/location, the problem is that, only the old venue/location is showing in my calendar.

I had created and checked the event categories for the new location/venue.

If I am correct, the solution might be the proper way of adding the “EVENT CATEGORY CODE” for each enrollment page.

May I request for a right coding for each enrollment page when there are two location/venue?

Or if there are other solution?

Thanks a lot.


Josh

  • Support Staff

July 19, 2013 at 3:48 pm

Hi Richard,

Usually one event will be in one venue, we really do not have a solution for one event that happens in two venues.

What is the shortcode that’s set to display the calendar? Is is [ESPRESSO_CALENDAR] ?


Rich O

July 19, 2013 at 4:03 pm

Thanks for responding Josh. Below is the code that I am seeing in my enrollment page:

<p style=”text-align: justify;”>[ESPRESSO_CALENDAR event_category_id=”torrance-healthcare-cpraed-bls-class-13512819″ show_expired=”false”]</p>

How should I add the below code so my new location will be existed in my calendar?

event_category_id=”lawndale-bls-cpr-1374179858″

Thanks.


Josh

  • Support Staff

July 19, 2013 at 4:14 pm

What looks off here is the category ID looks like an event ID. However, if that’s the actual category ID, any events that are assigned to the category with this ID should display on that calendar. Unless the dates are not correctly formatted.

Start and end dates need to be formatted as YYYY-MM-DD, like this:

2013-12-01


Rich O

July 19, 2013 at 4:57 pm

Done with the date formatting – YYYY-MM-DD , but still the event with other location/venue is not showing.

Below is the original codes in my enrollment page.

<p style=”text-align: justify;”>[ESPRESSO_CALENDAR event_category_id=”torrance-healthcare-cpraed-bls-class-13512819″ show_expired=”false”]</p>

I am thinking that adding the new location code on the above code is the solution? but don’t know how.

I have tried a lot of combination but did not got the exact pattern.

When I tried this:

<p style=”text-align: justify;”>[ESPRESSO_CALENDAR event_category_id=”torrance-healthcare-cpraed-bls-class-13512819″, =”lawndale-bls-cpr-1374179858? show_expired=”false”]</p>

Events with two locations/venues are now showing in the calendar, the problem is, even the events that should not be included in the calendar are showing.


Josh

  • Support Staff

July 22, 2013 at 7:23 am

Hi Richard,

The [ESPRESSO_CALENDAR] event_category_id parameter takes one parameter. In order to display only the two events on this calendar you can assign both events to the same category. Then you set this category in the [ESPRESSO_CALENDAR] shortcode.

Here’s an example to help clarify:

1) A new category gets created in Event Espresso>Categories with the ID of cprclass1:

screenshot of category mananger

2) You go into the event editor for each event you want to appear in the calendar and assign them to a category and save/update the event:

screenshot of event editor where you assign an event to a category

3) You go to edit the page that displays the calendar. The calendar shortcode gets the category ID for the event_category_id parameter and save the changes in the page:

screenshot of the page editor with the calendar shortcode

Hope that helps!

The support post ‘Two Event Venues/Location – Only one is showing in Calendar’ 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