nevey

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Events List #990893
    nevey
    Participant

    I have no custom templates and already deactivated all the widgets adn the problem was still there. Those lines of code were already in the file. Here is what the file looks like.

    ******************************************************
    if ( ! defined( ‘ABSPATH’ ) ) {
    die( ‘-1’ );
    }

    $events_label_plural = tribe_get_event_label_plural();

    $posts = tribe_get_list_widget_events();

    // Check if any event posts are found.
    if ( $posts ) : ?>

      <?php
      // Setup the post data for each event.
      foreach ( $posts as $post ) :
      setup_postdata( $post );
      ?>
      <li class=”tribe-events-list-widget-events <?php tribe_events_event_classes() ?>”>

      <?php do_action( ‘tribe_events_list_widget_before_the_event_title’ ); ?>
      <!– Event Title –>
      <h4 class=”entry-title summary”>
      ” rel=”bookmark”><?php the_title(); ?>
      </h4>

      <?php do_action( ‘tribe_events_list_widget_after_the_event_title’ ); ?>
      <!– Event Time –>

      <?php do_action( ‘tribe_events_list_widget_before_the_meta’ ) ?>

      <div class=”duration”>
      <?php echo tribe_events_event_schedule_details(); ?>
      </div>

      <?php do_action( ‘tribe_events_list_widget_after_the_meta’ ) ?>

      <?php
      endforeach;
      ?>

    <!– .hfeed –>

    <p class=”tribe-events-widget-link”>
    ” rel=”bookmark”><?php printf( __( ‘View All %s’, ‘tribe-events-calendar’ ), $events_label_plural ); ?>
    </p>

    <?php
    // No events were found.
    else : ?>
    <p><?php printf( __( ‘There are no upcoming %s at this time.’, ‘tribe-events-calendar’ ), strtolower( $events_label_plural ) ); ?></p>
    <?php
    endif;

Viewing 1 post (of 1 total)