Searching with post_category
-
Hello,
I am trying to create separate lists of events based on the category (and by that I mean the WordPress category). I am following the tutorial on the plugin’s page (http://wp-events-plugin.com/tutorials/using-additional-custom-taxonomies/).
I have successfully registered the taxonomy with the events, and I am able to add categories to my events. The problem is with the search function that does not seem to take into account the post_category, or rather, it tries to filter according to that criterion but fails to find any post matching it.
So for example I have a category called “board”, and some events with this category, and when I try the shortcode [events_list post_category=”board”], I obtain “No events”. On the other hand, with shortcode [events_list post_category=”-board”] the events are still present in the list.
I have tried activating and deactivating the “Event category features” in Event Manager but the result remains the same. I have also tried category ID instead of slug, with no better luck.
So my question is as follows: is the tutorial up to date (I am using Version 5.9.2, which I believe is the last one), or could there be a problem elsewhere?
Note that I cannot use Event Categories instead because I am using another plugin (namely S2member) that does not support custom taxonomy types.
Cheers,
—
Mathieu Sassolas
The topic ‘Searching with post_category’ is closed to new replies.