Luke

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Timber not working with the Filter Bar #972558
    Luke
    Participant

    Thanks Barry. I have seemed to get it to work by changing my tribe-events/default-template.php to:

    
    $context = Timber::get_context();
    Timber::render('templates/pages/events.twig', $context);
    

    and my events.twig to:

    
    {% extends "templates/layouts/default.twig" %}
    
    {% block content %}
      <div class = "row">
        <div class = "small-12 columns">
          {{fn('tribe_events_before_html')}}
          {{fn('tribe_get_view')}}
          {{fn('tribe_events_after_html')}}
        </div>
      </div>
    {% endblock %}
    

    The rendering seems to occur far enough down the pipeline where the proper hooks.

Viewing 1 post (of 1 total)