mchansy
Forum Replies Created
-
Forum: Plugins
In reply to: [Unique Title Checker] Does not work with Gutenberg?Hello,
I have the problem that the messages do not work with wordpress 5.8.2.Forum: Plugins
In reply to: [Polylang] Post to more than one languageThank you for your answer, but this is not a really good solution.
The articles are partly very extensive and are maintained by different authors. If you have to copy the content with every small change, mistakes are predictable.
Redundant data in an IT system is always a bad solution.“Keine Veranstaltungen” -> no event found.
The Tutoroila descript that I can register the post category to use with a event:
Exceptions : Post Tags and Categories
One final common example which has a slight twist – adding the normal posts category to your events and locations:
1
function my_em_own_taxonomy_register(){
2
register_taxonomy_for_object_type(‘category’,EM_POST_TYPE_EVENT);
3
register_taxonomy_for_object_type(‘category’,EM_POST_TYPE_LOCATION);
4
register_taxonomy_for_object_type(‘category’,’event-recurring’);
5
}
6
add_action(‘init’,’my_em_own_taxonomy_register’,100);Now your Events and Locations can assign and search for post categories. The twist is when using this in your search attributes, since we already use category and tag, you need to use post_category and post_tag instead.
Using Custom Taxonomies in searchesOnce you’ve added the taxonomy to Events or Locations, it’s time to search! You can do this using shortcode or PHP. Here’s an example of both ways to search the post categories we added above.
Shortcode:
[events_list post_category=”featured,-hidden”]
[locations_list post_category=”featured,-hidden”]And I do this. I can select the post category in the event this work fine. But I can’t use “post_category” (see the last shortcode discription) to show only the events for one or more post categories.
I did not want to use my own taxonomy, I want category of normal posts. For this reason I tried the lower part of the tutorial. When using the post category, however, you should use the type post_category for searching or filtering. But this is not working.
it is not the solution. I make a dump of the event’s in the hook
add_filter('em_events_get','my_em_category_events_get',1,2);
but I see not the category. If I edit the event I can see the category and change it.Sorry I try it, but it don’t work. The $searches includes the attribute at the start of the get_default_search function with the right values. I thinnk it is not needed to include this code.
Forum: Plugins
In reply to: [WP Survey And Quiz Tool] Error on line 93 of Question.phpTry a update to 2.14.1