Created
June 2, 2021 20:37
-
-
Save renkasiyas/fe2b978fea8fbf374a43229f696d2783 to your computer and use it in GitHub Desktop.
Load All Relational Events - Tribe Events & ACF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function load_all_relational_events( $query ) | |
| { | |
| if (is_admin() && $query->tribe_is_event) { | |
| $query-/set('eventDisplay', 'all'); | |
| } | |
| } | |
| add_filter('pre_get_posts', 'load_all_relational_events'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment