Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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/Dr5nCR0

    Categorie Magazin Element Frontpage: https://jmp.sh/1l8jY7g
    and Backend: https://jmp.sh/GO0AzpT

    How can we change this?

    Thanks for your help.

    #1102176

    Hey Tobias,

    Thanks for that, the login details are not working though. Please check and verify.

    FEHLER: Ungültiger Benutzername. Passwort vergessen?

    Best regards,
    Rikard

    #1102308

    Please try again

    #1102730

    Hi 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,
    Victoria

    #1102740

    Hi Victoria,

    thanks for your answer. We change it https://jmp.sh/F4alAQG but the events are always there.

    Thanks for your help

    Tobais

    #1103237

    Hi Tobais,

    Please have a look at the solution posted here

    Best regards,
    Victoria

    #1103256

    Hi 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

    #1104636

    Hi,

    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,
    Ismael

    #1104702

    Hi 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

    #1105428

    Hi,

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.