Support

Home Forums Event Espresso Premium Add Weekdays to Event Times

Add Weekdays to Event Times

Posted: August 10, 2020 at 2:31 pm


KGM_Adm

August 10, 2020 at 2:31 pm

Hello again,

When displaying the event datetimes in the [ESPRESSO_EVENTS] list view for each course I was wondering if it is possible to edit the time of each event.

Right now it shows the clock icon and the time the event runs at, I will be having events run for months at a time and want the clock icon to have the weekday and time the event will run at. For example, “Wednesdays and Fridays at 9:00 am – 12:00 am”

Please let me know if this is possible, thank you!


KGM_Adm

August 10, 2020 at 2:33 pm

Also, one minor question I forgot, for the Address field in the venue details I was wondering if there is a setting somewhere to make the icon/text inline with the actual venue address that’s displayed (Again for when I call the shortcode). Was not sure if this is a question I should ask in a new post or not.


Tony

  • Support Staff

August 12, 2020 at 7:45 am

Hi there,

Right now it shows the clock icon and the time the event runs at, I will be having events run for months at a time and want the clock icon to have the weekday and time the event will run at. For example, “Wednesdays and Fridays at 9:00 am – 12:00 am”

Can you explain a little more of your event use case here, please?

How are users registering onto the event?

For example, do they purchase a single ticket and then have access to the full event?

Event Espresso does not officially support ‘recurring’ events at this time, so we don’t have a way to output the dates for events that run for long periods in the way you are requesting, although you can break up the dates using additional datetimes in the event.

Also, one minor question I forgot, for the Address field in the venue details I was wondering if there is a setting somewhere to make the icon/text inline with the actual venue address that’s displayed (Again for when I call the shortcode).

I’m not sure I follow here, can you link me to the page in question so I can take a look?


KGM_Adm

August 12, 2020 at 10:52 am

Can you explain a little more of your event use case here, please?

Each event is a course that runs on certain days like every Friday from Sept 1 to Dec 31.

How are users registering onto the event?

We are using third-party registration which is not in our control currently. Plan to have a button that takes users to the registration page.

I’m not sure I follow here, can you link me to the page in question so I can take a look?

The page is locked currently because it is under construction. I have attached an img though. I want the icon and the text to be on the same line. Current snip of the page


KGM_Adm

August 12, 2020 at 10:53 am

The img tag seems to not be working, here is the link to the imgur page though https://imgur.com/HTEGUcT


Tony

  • Support Staff

August 12, 2020 at 1:30 pm

Each event is a course that runs on certain days like every Friday from Sept 1 to Dec 31.

Ok, so are you just suing a single datetime to add that with a start date of Sept 1 and end date of Dec 31, or breaking those down into multiple datetimes?

I’m wondering if you might be able to just use a custom field from the event itself, to display just before the event dates.

I want the icon and the text to be on the same line.

Oh! Sorry, I was completely missing what you were trying to do there.

That is easy enough with some CSS:

.espresso-venue-dv div[itemprop="address"] {
    display: inline;
}


KGM_Adm

August 13, 2020 at 2:20 pm

Ok, so are you just suing a single datetime to add that with a start date of Sept 1 and end date of Dec 31, or breaking those down into multiple datetimes?

I’m not sure I fully understand the question, https://imgur.com/ZR5yEYz this is the event datetime.


Tony

  • Support Staff

August 14, 2020 at 5:43 am

Events can have multiple datetimes, your event just has just a single datetime which means its essentially one long event from 2020-08-08 8am through to 2020-08-29 5pm.

You could have multiple datetimes (one for each ‘instance’ of the event) but it depends on your use case if you actually ‘need’ that (it’s sounding like you don’t).

So to clarify, the event you linked to has one datetime that started on Saturday the 8th and you want to output something like ‘Every Saturday from August 8th – Aug 29th’? Meaning you would use whatever date set on the event start would be the value to use?

Is every event you create like this?

The problem you have right now is just editing the date output to include a ‘Every X’ means that every event will need to be in that format and you mentioned ‘Every X and Y’ earlier in your thread, I’m not sure how you would determine that from a single datetime to output the correct value.

You may simple be better removing the datetime output completely (you will still need to set in on the event itself) and adding the course start/end info into the event description itself.


KGM_Adm

August 14, 2020 at 11:39 am

You may simple be better removing the datetime output completely (you will still need to set in on the event itself) and adding the course start/end info into the event description itself.

I would do this but I still want to be able to select the date from the calender view. I was thinking to put a note ‘Every sunday’ for example in the datetime description. It looks like this now https://imgur.com/8Lfn4Xv but I was wondering if I can put it in between the clock icon and the dates and remove the ‘-‘?


Tony

  • Support Staff

August 17, 2020 at 4:15 am

I would do this but I still want to be able to select the date from the calender view.

I’m not sure why that would change anything here? You still set the date on the event (they are required by Event Espresso) but you don’t display the datetimes on the event list (which is separate from the calendar).

Unless I’m misunderstanding what you mean above then no displaying the datetimes wouldn’t change anything on the calendar.

I was thinking to put a note ‘Every sunday’ for example in the datetime description. It looks like this now https://imgur.com/8Lfn4Xv but I was wondering if I can put it in between the clock icon and the dates and remove the ‘-‘?

You can edit the output, but again, how does your function know what to output for ‘Every X’?

But to answer you question, the template used to output those dates uses espresso_list_of_event_dates($post->ID) which is a pluggable function so can be overridden with your own of the same name in a custom functions plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

That will change the output for anywhere that lists the datetimes on the front end.

You must be logged in to reply to this support post. Sign In or Register for an Account

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

Updated by  Tony 2 months, 1 week ago ago

Topic Tags

Notifications

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