Marc Bellêtre
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF RRule Field] End Date (DTEND) IssueForum: Plugins
In reply to: [ACF RRule Field] End Date changing on saveHi Nick,
This field was indeed not working as intended when the timezone is other than UTC. I just pushed a fix that should solve your problem.
Cheers,
MarcForum: Plugins
In reply to: [ACF RRule Field] End DateHi @nicksatkovich,
For now I don’t plan to add support for DTEND attribute. Please note that this attribute is not supported by rrule.js.
Maybe this feature could be implemented as an option of the RRule field though but I don’t have time to work on it right now.
I will create an issue on the Github repository to remind myself to take a look on this when I have more time.
Cheers,
MarcForum: Plugins
In reply to: [ACF RRule Field] Map this field to WPforms Post Submission field?Hi,
This plugin does not provide a field for WPforms. It is only meant to work with Advanced Custom Fields.
Cheers,
MarcForum: Plugins
In reply to: [ACF RRule Field] Not work the get_fieldThere is no built-in function to do what you want but it is definitely something you can implement yourself.
I wrote an “advanced usage” guide to show an example of how you can create an agenda view here.
Forum: Plugins
In reply to: [ACF RRule Field] Not work the get_fieldWhat do you mean the entire date? If you want to show the first and last occurrences you can use the
first_date
andlast_date
attributes.<?php $rrule = get_field('start_date'); if ($rrule['last_date']) { $string = "From {$rrule['first_date']} to {$rrule['last_date']}"; } else { $string = "From {$rrule['first_date']}"; } ?>
You can also use the
text
attribute that retrieves a human-readable representation of the recurrence like “Every monday starting July 1st”.Forum: Plugins
In reply to: [ACF RRule Field] Not work the get_fieldHi,
Ok I just wanted to make sure you were on the right track. If you want to create recurring events then this plugin should be what you need but keep in mind that this plugin just provides the field to store the RRULE string in database and retrieve the individual dates. It does not display anything.
If you want to show every single date then you will have to loop through the dates like this (assuming your field is named
start_date
):<?php $rrule = get_field('start_date'); ?> <ul> <?php foreach ($rrule['dates_collection'] as $date) : ?> <li><?= $date->format('Y-m-d') ?></li> <?php endforeach; ?> </ul>
For more information about the attributes that are returned by the RRule field you can check the readme from the GitHub repository.
- This reply was modified 11 months, 2 weeks ago by Marc Bellêtre.
Forum: Plugins
In reply to: [ACF RRule Field] Not work the get_fieldHi Loukas,
This plugin has no feature to display anything on the front-end. Furthermore, the code you provided just stores the content of the field in a
$rrule
variable so it would not display anything anyway.I see you’re naming your field
start_date
so I’m assuming you want to show a single date. In that case this plugin would not make sense and you should use a single date field. Maybe with a bit more context I could try to help you?Cheers,
MarcForum: Plugins
In reply to: [ACF RRule Field] fifth weekday of the monthThe fifth option has been added to the latest version ??
Forum: Plugins
In reply to: [ACF RRule Field] fifth weekday of the monthHi Dirk!
There is no “fifth” option because there can’t be more than 5 weekdays in a month. The fifth weekday would be either the 4th or the last.
If you need for example the fifth friday of the month and if there is only 4 fridays in the month then there is no occurrence of the event, that would make sense to add the fifth option. That seems very unlikely but if that’s what you need it doesn’t take so much time to add the option ??
Cheers,
MarcForum: Plugins
In reply to: [ACF RRule Field] Timezone supportHi @hoverlord,
Glad you sorted it out. I still don’t understand why I couldn’t reproduce this on my side…
Maybe the plugin should use
wp_date
instead ofdate_i18n
if it makes more sense. I’m pretty busy right now but will have a look as soone as possible.Thank you!
Forum: Plugins
In reply to: [ACF RRule Field] Timezone supportHi @hoverlord,
Sorry I didn’t have time earlier to check on this.
I just did a quick test and could not reproduce your problem. Could you please provide a sample of your code that displays the wrong date?
What I tested so far was creating a recurrence with a time value then updating the timezone in general settings. Whatever timezone I use the time value remains the same as the one selected in the field. But maybe I misunderstood the issue.
Forum: Plugins
In reply to: [ACF RRule Field] german translationHi @jensratzel,
Great news, many thanks to both of you for your work! ??
Forum: Plugins
In reply to: [ACF RRule Field] german translationHi @jensratzel,
I don’t speak german so I can’t tell. The decision is up to you ??
Forum: Plugins
In reply to: [ACF RRule Field] german translationHi @hoverlord,
I don’t have the ability to approve translations. You will have to submit a PTE request here: https://make.www.ads-software.com/polyglots/
Thank you for your contribution!