WordPress / doaction.org

do_action is a charity hackathon that uses WordPress to uplift local communities.
https://doaction.org
11 stars 15 forks source link

Missing events in the "Past Events" page #13

Closed naokomc closed 1 year ago

naokomc commented 1 year ago

The "past events" pages are not listing all events. https://doaction.org/past-events/ https://doaction.org/ja/past-events/

I didn't check through all of the events, but none of these three most recent events that happened in 2023 are listed.

Screenshot 2023-06-30 at 11 14 41
StevenDufresne commented 1 year ago

The code is looking for the event to be "completed" which is a manual action when viewing the post. Not sure why that would be the case? https://github.com/WordPress/doaction.org/blob/e95e9d88012aa1a1f9d448ec70995219c254a10a/wp-content/plugins/do-action/includes/class-do-action.php#L983C18-L983C27

I have "completed" the Barcelona event and now you can see it in the list.

naokomc commented 1 year ago

Thank you @StevenDufresne (and sorry about my late reply). That's exactly what we needed to do. I will add this to our documentation so it won't be missed.

https://make.wordpress.org/community/?p=38812