THANK YOU THANK YOU THANK YOU!!!!
that worked perfect with the events, however I have regular posts mixed in with my relationship field. That code made all of the posts go away, and it only showed non expired events.
Can that code be set to only work with event post types, not regular wordpress posts.
it now is just removing the field completely again.
I get this on the front end
array(6) { [0]=> string(3) “175” [1]=> string(3) “216” [2]=> string(3) “536” [3]=> string(3) “173” [4]=> string(3) “225” [5]=> string(3) “528” }
I’m using ACF pro, does that make a difference?
That first filter sounds great, however, when I add it, it complete removes the ACF field section from the frontend.
In events manager, the events dont actually “expire”, they get archived and the events manager code is set up to only show events in the future. That’s where I am running into trouble.
I’m handy with php, not great at it, so im having trouble connecting the EM code into the WP query.