Tagged: blog element, bug
-
AuthorPosts
-
May 18, 2019 at 1:40 am #1101957
Hi Enfold Support,
the blog-element on our site shows product and event posts (woocommerce, the events calendar pro).
Frontpage: https://jmp.sh/xHog8k6
Backend: https://jmp.sh/DkXqysx
The events calendar settings: https://jmp.sh/Dr5nCR0Categorie Magazin Element Frontpage: https://jmp.sh/1l8jY7g
and Backend: https://jmp.sh/GO0AzpTHow can we change this?
Thanks for your help.
May 19, 2019 at 6:02 am #1102176Hey Tobias,
Thanks for that, the login details are not working though. Please check and verify.
FEHLER: Ungültiger Benutzername. Passwort vergessen?
Best regards,
RikardMay 19, 2019 at 6:19 pm #1102308Please try again
May 21, 2019 at 8:46 am #1102730Hi Tobias,
YOu included all categories and so all posts show up, you might want to exclude categories that are used with products and events.
Best regards,
VictoriaMay 21, 2019 at 9:09 am #1102740Hi Victoria,
thanks for your answer. We change it https://jmp.sh/F4alAQG but the events are always there.
Thanks for your help
Tobais
May 22, 2019 at 11:16 am #1103237Hi Tobais,
Please have a look at the solution posted here
Best regards,
VictoriaMay 22, 2019 at 12:46 pm #1103256Hi Victoria,
thank you for your answer.
We try this, but that didn´t work for us:
// exclude events in blogposts add_filter('avia_blog_post_query', 'avia_blog_post_query_mod', 10, 2); function avia_blog_post_query_mod($query, $params) { $query['tax_query'][] = [ 'taxonomy' => 'category', 'field' => 'name', 'terms' => 'termin', 'operator' => 'NOT IN', ]; return $query; }
Maybe there is a bug… we duplicate the post entry box and on the second box only regular blog post are shown. please have a look at our website.
Thank you very much.
Tobias
May 28, 2019 at 4:46 am #1104636Hi,
What is the password for that page? Please post it in the private field.
Is “termin” a post category? Which categories do the posts and events have in common?Thank you for the update.
Best regards,
IsmaelMay 28, 2019 at 6:26 am #1104702Hi Ismael,
no, it is tribe_events – but the script doesn´t work for me.
We decide to use another page to figure it out. Please look at this site (private content). There is only enfold an the events calendar aktiv. But the tribe_events allways in the post loop.
Thanks for your help!
Tobias
May 30, 2019 at 2:41 pm #1105428Hi,
Thanks for the info.
You should use the “tribe_events_cat” as the taxonomy value instead of “category”.
// exclude events in blogposts add_filter('avia_blog_post_query', 'avia_blog_post_query_mod', 10, 2); function avia_blog_post_query_mod($query, $params) { $query['tax_query'][] = [ 'taxonomy' => 'tribe_events_cat', 'field' => 'name', 'terms' => 'termin', 'operator' => 'NOT IN', ]; return $query; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.