Would like to have List View sort by Category per day.

Home Forums Calendar Products Events Calendar PRO Would like to have List View sort by Category per day.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1105631
    Noel Sufrin
    Participant

    Hi,

    I’m trying to figure out a way to have a specific category sort first on each day visible in the list view. (subsorted by start time, as is the default sort)

    For example, we have Webinars & Local Events, but wish to have the Webinars displayed first (or sticky) on each day in the list.

    Monday May 2nd:

    • Webinar 1 – 12pm
    • Webinar 2 – 1pm
    • Local Event 1 – 8am
    • Local Event 2- 10am
    • Local Event 3- 12pm

    Tuesday May 3rd:

    • Webinar 1 – 2pm
    • Local Event 1- 8am
    • Local Event 2- 9am
    • Local Event 3- 10am
    • Local Event 4- 11am

    Am I looking at the right bit of code to modify in the list\loop.php file?

    <!-- Event  -->
    		<?php
    		$post_parent = '';
    		if ( $post->post_parent ) {
    			$post_parent = ' data-parent-post-id="' . absint( $post->post_parent ) . '"';
    		}
    		?>
    		<div id="post-<?php the_ID() ?>" class="<?php tribe_events_event_classes() ?>" <?php echo $post_parent; ?>>
    			<?php tribe_get_template_part( 'list/single', 'event' ) ?>
    		</div>
    #1106113
    Josh
    Participant

    Hey Debra,

    Thanks for reaching out to us!

    This would be the right space to be looking to modify the output of the events within the list view. Personally, I would probably pursue creating a custom view for outputting the events in this way. This would give you a little more control from the start with how you wanted to pull and display the events rather than having to filter the default loop for the archive view there.

    Let me know if this helps.

    Thanks!

    #1111866
    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 ‘Would like to have List View sort by Category per day.’ is closed to new replies.