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>