Forum Replies Created
-
AuthorPosts
-
March 2, 2017 at 1:53 pm in reply to: Advanced Custom Fields Time Picker Field Format Modified #1248609
inhouse
ParticipantHere’s another screencast while I show the difference between editing the time picker custom field on a new event post vs a page. The ACF field works fine on a page but doesn’t on the event screen.
February 24, 2017 at 7:44 am in reply to: List all occurrences on single and list templates #1245203inhouse
ParticipantI understand this may be a little outside normal support; however, I finally found my previous support thread where I was assisted with a function that lists all occurrences. It was mostly working; however there was a bug with TEC Pro that we’ve waited to be patched before updating and moving over to using the built-in flexible recurring events. I’m simply trying to do what the /all permalink does and hopefully control the date/time format.
February 23, 2017 at 9:05 am in reply to: List all occurrences on single and list templates #1244643inhouse
ParticipantAlso noticed that the event list link is /event-calendar/event-title/2017-03-10 which then redirects to /event-calendar/event-title/2017-03-11 (2nd occurrence date) for some reason. Not sure why the date is included in the permalink structure at all actually. Ideally this would be removed. For reference, my permalink structure is /%category%/%postname%/ and the Events URL slug and Single event URL slug are both event-calendar.
March 24, 2016 at 6:45 am in reply to: Recurring Event Occurrences List – Problems with custom exclusions #1093375inhouse
ParticipantHi @brian; thanks for the reply. The linked thread should have all the info. It was a repeating event that was generating dates in between the desired dates. I no longer have the screenshot of the event settings but @barrykenobi had confirmed they looked correct and that it appeared to be a bug with the exclusions. Switching from repeater custom fields to using the built-in date management for recurring events is a bit of an undertaking that we’d prefer to do only after we know things will work as needed. Thanks for confirming the fix before we upgrade the site for our client.
Desired occurrences:
- December 18 AT 7:30 pm
- December 20 AT 2:00 pm
- December 20 AT 7:30 pm
Currently displaying:
- December 18 AT 7:30 pm
- December 19 AT 2:00 pm
- December 19 AT 7:30 pm
- December 20 AT 2:00 pm
- December 20 AT 7:30 pm
inhouse
ParticipantOk, I’m already subscribed to this thread. Please do bump the thread when the plugin has been updated if you don’t mind.
We’re choosing to roll back to the manual approach for the time being which relied on the client using custom fields to manually display the occurrences.
While testing your suggestion to manually remove the extra ‘in between’ dates we noticed that past dates still show on the front end. Is there a way to add a class for expired dates so we can hide them with CSS?
foreach ( $dates as $instance_date ) echo '<div class="date-span date-span-expired ">' . $instance_date . '</div>';inhouse
ParticipantAh, ok. I’ll have to roll our templates back to the previous versions to get dates displaying ‘properly’ again until the next update. I really appreciate your continued support on this! Will I be notified of a new update via this thread (email notification)? And not to be impatient at all but would you estimate days, weeks or months for the update?
inhouse
ParticipantThanks @Barry but this is still not displaying the dates correctly. There seem to be in between dates showing up for some reason. Can you confirm we’re entering event recurrences correctly (see screenshot and typed example below)? The verbiage “Recurrence Rules: ‘Custom’ and will end ‘On’…” is confusing to me. Could the plugin or function be displaying all custom field data even if it was since ‘deleted’? I’ve seen this type of thing while working with custom fields for other projects.
Desired occurrences:
- December 18 AT 7:30 pm
- December 20 AT 2:00 pm
- December 20 AT 7:30 pm
Currently displaying:
- December 18 AT 7:30 pm
- December 19 AT 2:00 pm
- December 19 AT 7:30 pm
- December 20 AT 2:00 pm
- December 20 AT 7:30 pm
-
This reply was modified 10 years, 4 months ago by
inhouse. Reason: Added an idea
inhouse
ParticipantThanks for re-opening @Brian. @Barry I spoke too soon last week when I said this was working perfectly. I realized that this is working for events which have 2 occurrences (only 1 recurrence rule) but if there are 2 or more recurrence rules the dates are out of order and duplicated. The same scenario is true of event detail pages and the list view.
I’m posting screenshots of my event schedule details in case there’s anything wrong there but the fact that the dates are out of order seems more to do with the function or even a plugin bug but I have no idea. If you have anything you want me to test, let me know. Thanks again!
Example event recurrence settings:
https://www.dropbox.com/s/ejatn6swwfrz4qe/Screenshot%202015-11-30%2008.54.26.png?dl=0Example event display:
- December 20
- December 19
- December 20
- December 18
- December 19
inhouse
Participant@Barry this is working great! I made a couple minor modifications so that it works for non-recurring events and my markup but overall this is exactly what was needed. Thanks again!
inhouse
ParticipantThis reply is private.
inhouse
ParticipantHi @Barry and thanks for your help! The function isn’t working quite right. It’s returning extra dates. It’s returning today’s date and time mixed in with 1 legit date. I was getting only 1 date when I tried using tribe_events_event_schedule_details.
Instead of:
- December 4 at 6:45 PM
- December 5 at 7:30 PM
It’s returning:
- November 25 @ 9:18 am
- November 25 @ 9:18 am
- November 25 @ 9:18 am
- December 5 @ 7:30 pm
- November 25 @ 9:18 am
inhouse
ParticipantNot sure how this was posted to the community events forum. There was an error when submitting which must have knocked this into the default/first forum. Anyway, I added the same thread to the Events Calendar Pro forum. https://theeventscalendar.com/support/forums/topic/recurring-event-occurrences-list-2/
Feel free to delete this thread.inhouse
ParticipantHi Barry, the My Content Manager author has done some digging and I will place his findings below. It does appear that the way The Events Calendar is saving Venue data is causing duplicate information in the post and then also in the markup. I’m hoping this would be an easy fix for you guys as this website is nearing completion and the duplicate data will be off putting and confusing to the clients who edit the content. Thanks again for your help with this.
What it’s doing is calling an action on save_post to save venue data, which calls a class method called “updateVenue”. That method calls the function wp_update_post, which calls save_post. As a result, save_post gets called twice. They’ve employed some trickery to prevent their own function from triggering an infinite loop, but it doesn’t prevent other posts that are saving meta from being called twice.
inhouse
ParticipantThanks Barry, where’s the functions code? It reads as though there should be a link somewhere.
inhouse
ParticipantHi Barry, for our own sanity and in case others come across this issue or a similar issue, would you mind sharing how the data is stored? This might help the My Content Management plugin author figure out a workaround or possibly even a solution to the problem. The Venues seem to be different than Events in the way the data is stored or there wouldn’t be any issues entering/getting custom field data. Thanks again and we appreciate your help.
Also, I didn’t realize we could add custom field support to Venues but since the plugin custom fields don’t support repeater functionality, they won’t work for what we’re requiring. The Venues need to post hours so we needed to provide repeater fields for this so they could post as many lines as they want and we can display the data any way we need.
-
AuthorPosts
