Welcome, Guest
Username: Password: Remember me
Discussion about the Another Events Calendar plugin for WordPress.

TOPIC: Do not display an event that started earlier...

Do not display an event that started earlier... 2 weeks 1 day ago #1412

  • Oleg
  • Oleg's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Thank you received: 1
  • Karma: 0
Hello.
Some events are published for several days
For example: 31.10.2017-10.11.11.2017
If the current date is: 09.11.2017, such an event is displayed in the list by this code.

[aec_events past_events = 0 header = 0 view = table orderby = event_start_date pagination = 1]


Is it possible to exclude such events that started earlier? Even if they are relevant now.

It is necessary to show events only what starts from today (or tomorrow) and later.
Actual events that started earlier - no need to display.

Thank you!
The administrator has disabled public write access.

Do not display an event that started earlier... 2 weeks 1 day ago #1415

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 265
  • Thank you received: 56
  • Karma: 14
Very sorry. There is not any setting or shortcode attribute to do this. I assure we will have an option for this in future.
The administrator has disabled public write access.
The following user(s) said Thank You: Oleg

Do not display an event that started earlier... 2 weeks 1 day ago #1416

  • Oleg
  • Oleg's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Thank you received: 1
  • Karma: 0
ok

Can I turn off the input of the second date?

The user must be prohibited from entering the value on the final date.
This solves the problem.

Š¢hank you!
The administrator has disabled public write access.

Do not display an event that started earlier... 2 weeks 5 hours ago #1419

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 265
  • Thank you received: 56
  • Karma: 14
You will have to edit the following template file in order to remove the second date,
/wp-content/plugins/another-events-calendar/public/partials/user/aec-public-edit-event-display.php

Note: Our current version doesn't have option to safely override our template files. So, the changes you made will be wiped out when you upgrade to our later versions. So, please remember to have a backup of this file before you upgrade to our latest versions. We will have option to override our layout files safely very soon.
The administrator has disabled public write access.
The following user(s) said Thank You: Oleg
Time to create page: 0.131 seconds