Support

Home Forums Event Espresso Premium “When” makes a combination of dates

“When” makes a combination of dates

Posted: October 4, 2024 at 4:39 am

Viewing 9 reply threads


InnSpireAcademy

October 4, 2024 at 4:39 am

When you come to the detail page of an event, it shows at the section “when” the start date of the first event occurrence and the enddate of the last occurrence. Is it possible to get the dates per row of an occurrence?

example: PSM II training
currently:
WHEN 07-11-2024 u/I 10-04-2029

expected:
WHEN
07-11-2024 u/I 08-11-2024
03-01-2025 u/I 04-01-2025


Tony

  • Support Staff

October 4, 2024 at 4:48 am

Hi there,

Can you link me to the page you are referring to so I can take a look?


InnSpireAcademy

November 21, 2024 at 8:26 am

Yes, I can..

https://innspire.nl/academy/professional-scrum-master-a/


Tony

  • Support Staff

November 22, 2024 at 2:51 am

Hmmm, ok so that’s not the default output from Event Espresso.

Did you have a developer customize how the Events were output when setting up?


InnSpireAcademy

November 22, 2024 at 5:20 am

No, no developer worked on it. The only thing I removed was the image on top
$findme=’Voor wie is de cursus’;
$pos = strpos($result_string, $findme);
$pos=$pos -5;
//* var_dump($InnSpire_event_details);
$InnSpire_event_details=substr($result_string,$pos);
echo $InnSpire_event_details;
}


Tony

  • Support Staff

November 22, 2024 at 5:30 am

But the output on your event page doesn’t match anything like what EE would output.

I’ll show you, here:

https://monosnap.com/file/Mvzjr9Ow7kwqT9IY7EoJOIIyzUalsF

Event Espresso doesn’t have any ‘focus-block’ classes within the codebase, at all, if I search out entire repo for that class noting shows up.

See HERE, that’s search all of out repo, core, add-ons etc.

When EE outputs Datetime details to the event page it outputs differently to the above, it wraps those details in a div with the class event-datetimes (just like it does with event-tickets shown in the screenshot from your site).

So that ‘When’ section has to be something custom here, either a custom template or custom function hooking in and adding that section.


InnSpireAcademy

November 26, 2024 at 5:20 am

OK, I will try to find out. Maybe it’s because all and everything is using this archive ‘thing’


Tony

  • Support Staff

November 26, 2024 at 5:28 am

Possibly but that would be another output.

https://innspire.nl/academy/

Would be the archive of EE events.

https://innspire.nl/academy/professional-scrum-master-a/

Would be the ‘singular’ output for an EE event.

Both would require custom code/templates to customize the output.

I can see your using a custom built theme so I would guess you have custom templates within there.

Take a look in /wp-content/themes/innspire/

Look for any templates that have the name ‘espresso’ in them, they are likely related to EE’s output.


InnSpireAcademy

November 26, 2024 at 7:14 am

I found it indeed! We have in the themes folder a single-event_espresso.php which had copies from the examples provided in the EE plugin folder. I was able to remove the strange focus block. Thanks!!


Tony

  • Support Staff

November 26, 2024 at 7:33 am

You’re most welcome, I’m glad you found it.

Viewing 9 reply threads

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

Event Espresso