Posted: February 12, 2020 at 12:26 pm
Hello, I have this page on my website that a user can go to to see the events they have registered for. Only logged in users with registered events will see the content I will be referring to though. Here is that page: https://www.lighthousehomeschoolers.org/my-event-registrations/
I currently like everything on this page except:
This page is using this shortcode:
What tweaks could we make to this shortcode to get the two items of showing the events in order of date and showing only upcoming ones?
We filter the arguments used on the models to query he registrations/events listed on that section so you can hook i alter them if needed.
To remove expired events you can use the snippet available here:
You can add that to a custom functions plugin on your site, we have some documentation on creating one here:
You can also use that same snippet to change the order but adding something like:
Right after Line 16 of that snippet.
If you need to modify the query further I highly recommend taking a look at our model documentation available here: