• Hello TEC team!

    Thank you for the good work you do on the TEC plugins.

    We recently encountered a conflict with the Announcer plugin where the all events were being displayed on /events/tag/ pages. I contacted the devs over there and they are saying that the issue is related to how TEC is modifying a query that gets all announcements. They provided the code below as a temporary fix and asked that I contact you about the issue.

    Here is the code they provided:

    function modify_announcements_query($query) {

        $post_types = $query->get(‘post_type’);
            if(in_array(‘tribe_events’, $post_types) &&  in_array(ANCR_POST_TYPE, $post_types)){
                    $query->set(‘post_type’, ANCR_POST_TYPE);
            }

    }
    add_action(‘pre_get_posts’, ‘modify_announcements_query’, 1, 999);

    Have a great day and thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @clerick44,

    Thank you for reaching out to us regarding the conflict with the Announcer plugin.

    We apologize for any inconvenience caused.

    The provided code snippet seems to be a temporary fix that modifies the query for displaying announcements.

    It aims to address the issue where all events are being displayed on the /events/tag/ pages.

    The code snippet ensures that only the announcements, not events, are included in the results.

    To implement the fix, you can follow these steps:

    1. Go to your WordPress dashboard.
    2. Navigate to “Appearance” and select “Theme Editor”.
    3. Locate the “functions.php” file of your active theme.
    4. Add the provided code snippet at the end of the file, just before the closing ?> tag (if present).
    5. Save the changes by clicking the “Update File” button.

    By adding this code snippet, the conflict between TEC and the Announcer plugin should be resolved, and only the announcements will be displayed on the /events/tag/ pages.

    Please note that modifying code snippets requires some coding knowledge.

    If you’re not comfortable making these changes yourself, we recommend seeking assistance from a developer or contacting the Announcer plugin’s support team for further guidance.

    Let us know how it goes.

    Thread Starter clerick44

    (@clerick44)

    Hello Cheska,

    Thank you for your reply. I have implemented the fix already, but as you say it is temporary. I was just bringing it to the attention of the TEC devs and provided the code to help pinpoint the issue I was describing.

    I am also curious if this is something that we can expect to be addressed in the future.

    Thank you for all the work on this great product

    Plugin Support Darian

    (@d0153)

    Hi @clerick44

    To clarify, are you referring to a bug where all events are showing up as Announcements when you view the events/tag/ pages?

    E.g.: https://share.getcloudapp.com/JrueGoWk

    I have already informed the team about this matter. I will keep you posted as soon as I receive a reply from them.

    Thread Starter clerick44

    (@clerick44)

    Hello Darian,

    Yes, that is the exact issue. Thank you so much for your reply and your work.

    Plugin Support Darian

    (@d0153)

    Hi @clerick44

    Thank you for confirming the issue. We have created an internal ticket to address the problem you reported and have included your case in it.

    Unfortunately, we don’t have an estimated time for when the issue will be resolved, but we’ll keep you updated as soon as a solution becomes available.

    Let me know if you have further questions or concerns.


    Internal Bug Ticket Reference: BTRIA-1925

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict with Announcer Plugin’ is closed to new replies.