Multisite & Event Filtering / Advanced Custom Fields
-
0
I need help. A client has WordPress Multisite. I am set up to work on it locally in development. Event Calendar Pro is installed, and there are hundreds of event listings, all added via the main site. The client wants, on the sub site(s), to have events relevant to that subsite appear as they would on the main site. They have Advanced Custom Fields installed, with a field ‘display_on_site’ with values for each individual site, and a separate one for global.
Now I realize that Event Calendar Pro does not come equipped with the ability to broadcast events across multisite, but it looks like the dev created a custom plugin to enable this kind of functionality. It honestly looks chinese to me. It’s my first experience with multisite. Anyways, when I’m, on the sub-site, the only way I am able to see any event is if I use the exact slug ‘events-classes’ which is the slug in the admin section for the main site as well. If I name it anything else, the calendar loads but there are no results.
So, on the sub-site, at /events-classes/ All of the events show, and are being pulled from the main sites DB (wp_). I tried using a URL query, but the field for display_on_site is meta_key, meta_value, which can only be used in private queries. I found a function on ACF’s site to add to functions.php to register these fields so I can use them in a URL query. However, the meta_value value from the ACF field is serialized data, but I was able to install a converter.
That being said, I was able to query the events by /events-classes/?display_override=Arkansas Literary Festival
But then, the Main Menu disappears! Should I try a custom page template? Should I use a private query/PHP? I am not sure where to go on this. Please help! Thanks!
- The topic ‘Multisite & Event Filtering / Advanced Custom Fields’ is closed to new replies.