• Hi!

    I was using the Events Manager plugin and the shortcode [events_calendar tag="tag_slug"] so I thought I’d replace that with this plugin. It works awesome with every other version of the shortcode I’ve used but for some reason if I try [fullcalendar tag="tag_slug"] it displays all events, not just the ones tagged with tag_slug. Any ideas? I tried to look through the code but I get lost after about a gazillion cascading hooks.

    https://wordpress.org/plugins/wp-fullcalendar/

Viewing 1 replies (of 1 total)
  • Thread Starter dyordan1

    (@dyordan1)

    Yeah, I traced it down to the em-wpfc.php file, line 149. The line for tag is obviously different from the line for category on 148. Don’t know if that’s intentional. Simply marrying them together fixes the issue: if( isset($_REQUEST[EM_TAXONOMY_TAG]) || empty($_REQUEST['tag']) ) $_REQUEST['tag'] = !empty($_REQUEST[EM_TAXONOMY_TAG]) ? $_REQUEST[EM_TAXONOMY_TAG]:false;

    Also, worth noting, if you try to use the shortcode as [fullcalendar event-tags="tag_slug"] or [fullcalendar event-categories="1,4"] in the $_REQUEST array you get 0 => “event-tags=\”tag_slug\”” instead of the expected “event-tags” => “tag_slug” (same for categories). So I’m not even sure in what situation you’d need those two lines at all (unless the ajax calls were changed and the bug was recently introduced).

    I will not mark this as resolved purely to attract attention to the integration issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode filter by tag?’ is closed to new replies.