Add Month in between appropriate Events in a simple Event List

Home Forums Calendar Products Events Calendar PRO Add Month in between appropriate Events in a simple Event List

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #973780
    stephenschildbach
    Participant

    I know there is the function tribe_events_list_the_date_headers in the standard events post loop to show the month in between the appropriate events, but when I’m doing a custom loop with get_tribe_events the month shows in between every event. Is there another way to show the months to separate the event titles in a simple event list such as seen in the left column of: http://northwestdharma.org/events/ ???

    <?php
    		global $post;
    		$list_events = tribe_get_events(array(
            'eventDisplay'=>'upcoming',
            'posts_per_page'=>10
    		));
    		if (count($list_events) == 0) {
    		    echo '<p>No Events at this time.</p>';
    		} else {       
    		foreach($list_events as $post) {         
    		setup_postdata($post);             
       ?>
                <p><strong><a href="<?php the_permalink(); ?>" class="title-link"><?php the_title(); ?></a></strong><br>
                    <?php  
    		echo '<strong>Starts:</strong> ' . tribe_get_start_date($post, false, $format = 'D, M jS' ) . '<br>';
             echo '<strong>Contact:</strong> ' . get_the_title( tribe_get_organizer_id() ) . '<br>';
                 echo '<strong>Region:</strong> ' . tribe_get_city( $event_id );
    echo ', ';
    echo tribe_get_region( $event_id );
                echo '</p>';
    		}} //endforeach ?>
    		<?php wp_reset_query(); ?>
    #973914
    Brian
    Member

    Hi,

    Thanks for using our plugins.

    I can help out here. The function always shows the Month name and we do not have logic to change that.

    Another customer did create a function that you might be able to use.

    You can find their coding here:

    tribe_events_cat query and tribe_events_list_the_date_headers()

    Let me know if that helps.

    Thanks

    #986570
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add Month in between appropriate Events in a simple Event List’ is closed to new replies.