How can I load in Tribe templates without applying the `the_content` filter?

Home Forums Calendar Products Events Calendar PRO How can I load in Tribe templates without applying the `the_content` filter?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1403144
    Andy Clements
    Participant

    I’ve got some filter set up on the_content specifically for user content, and they’re breaking some styling stuff when Tribe Events gets loaded in. How can I remove the the_content filter from the Tribe Events template lodaer?

    #1403149
    Andy Clements
    Participant

    I want to prevent Tribe Events from loading in via the_content() and instead manually load them myself. I believe this is the line of code that I need to disable, but I can’t figure out how:

    Tribe/Templates.php:292

    add_filter( 'the_content', array( __CLASS__, 'load_ecp_into_page_template' ) );

    #1405152
    Cliff
    Member

    Hi, Andy.

    I believe you could add a check for tribe_is_event_query() to be false: https://theeventscalendar.com/function/tribe_is_event_query/

    For example:

    if( ! tribe_is_event_query() ) { /* do your custom the_content filter stuff here */ }

    Please let me know how this goes for you.

    #1408137
    Andy Clements
    Participant

    I just gave that a try; this doesn’t really solve the problem because I still want to apply my filters to the content output for each individual event, just not for all markup that’s output by Tribe Events.

    I guess it’s kind of hard to get across clearly what I mean, let me know if that doesn’t make sense.

    #1408197
    Cliff
    Member

    I appreciate your question and the desire to customize it for your use. However, we cannot provide additional customization help, per our Scope of Support / Terms.

    If you need further coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    #1421456
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How can I load in Tribe templates without applying the `the_content` filter?’ is closed to new replies.