Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/confenda.com/wp-content/themes/beevent/functions/element/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/confenda.com/wp-content/themes/beevent/functions/element/schedule.php
<?php

/**

 * @package WordPress

 * @subpackage beevent

 * @since beevent 1.5

 */



//1 ****************** Schedule List Style 1 Shortcode ***********************//

function beevent_schedule_style1(){

ob_start();

?>

<div class="col-sm-12 col-lg-12 col-lg-offset-2 padding_none">

    <div class="day-time-m">

       <ul class="nav nav-tabs" id="myTab" role="tablist">

                <?php

                    $taxonomy = 'speaker_category';

                    $tax_terms = get_terms($taxonomy);

                    $id=1;

                    foreach ($tax_terms as $tax_term) {

                    $tax_term_id[] = $tax_term->term_id;

                    $schedule_date = get_term_meta( $tax_term->term_id, 'schedule_date', true );


                     ?>

                        <li class="nav-item" role="presentation">

                          <button data-bs-toggle="tab" class="nav-link <?php if($id =='1'){ echo esc_attr('active'); }?>" id="day<?php echo esc_attr($id);?>-tab" data-bs-target="#day<?php echo esc_attr($id);?>" type="button" role="tab" aria-controls="day<?php echo esc_attr($id);?>" aria-selected="<?php if($id =='1'){ echo esc_attr('true' ); } else { echo 'false'; } ?>">

                            <?php echo esc_attr($tax_term->name); ?>

                            <span style="line-height: 10px;margin-top: 5px;"><?php echo isset( $schedule_date ) ? date( 'l', strtotime( $schedule_date ) ) : ''; ?></span>
                            <span><?php echo isset( $schedule_date ) ? $schedule_date : ''; ?></span>

                          </button>

                        </li>

                    <?php $id++;

                    }

                    $catid1= isset( $tax_term_id['0'] ) ? $tax_term_id['0'] : '';

                    $catid2= isset( $tax_term_id['1'] ) ? $tax_term_id['1'] : '';

                    $catid3= isset( $tax_term_id['2'] ) ? $tax_term_id['2'] : '';

                    $catid4= isset( $tax_term_id['3'] ) ? $tax_term_id['3'] : '';

                    $catid5= isset( $tax_term_id['4'] ) ? $tax_term_id['4'] : '';

                    $catid6= isset( $tax_term_id['5'] ) ? $tax_term_id['5'] : '';

                    $catid7= isset( $tax_term_id['6'] ) ? $tax_term_id['6'] : '';

                ?>

                

          </ul>

    </div>

    <div id="my-tab-content" class="tab-content"> 

          <!--Day 1 schedule-->

          <div class="tab-pane fade show active" id="day1">

                <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array('taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid1) ) ) ); 

                $day1id=1; ?>

                <?php while ($speakerList->have_posts() ) : $speakerList->the_post();?>

                    <div class="conference-time-list">

                      <div class="conf-user-time"> 

						<?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid1 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif; ?>

                        </div>

                      <div class="conf-user-img"> 

                          <?php if ( has_post_thumbnail() ):

                          the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                          else:

                          echo "<div class='is-empty-box'></div>";

                          endif;?> 

                      </div>

                      <div class="conf-user-info">

                        <h5><?php the_title();?></h5>

                        <?php 

                               $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                               if (!empty( $destination)):

                                 echo '<h6>'.$destination.'</h6>';

                               endif;?>

                        <a  href="#collapse<?php echo esc_html($day1id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" aria-controls="collapse<?php echo esc_html($day1id,'beevent');?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                        <div class="collapse" id="collapse<?php echo esc_html($day1id,'beevent');?>">

                          <div class="conf-user-content">

                            <?php the_excerpt();?>

                          </div>

                        </div>

                      </div>

                    </div>

                <?php 

                $day1id++;

                endwhile;

                wp_reset_query(); ?>

          </div>

          <!--/Day 1 schedule--> 

          <!--Day 2 schedule-->

          <div class="tab-pane fade" id="day2">

                <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

                'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid2) ) ) ); 

                $day2id=40; ?>

                <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                    <div class="conference-time-list">

                      <div class="conf-user-time"> 

						<?php 
                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid2 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif; ?>

                        </div>

                      <div class="conf-user-img"> 

                          <?php if ( has_post_thumbnail() ):

                          the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                          else:

                          echo "<div class='is-empty-box'></div>";

                          endif;?> 

                      </div>

                      <div class="conf-user-info">

                        <h5><?php the_title();?></h5>

                        <?php 

                               $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                               if (!empty( $destination)):

                                 echo '<h6>'.$destination.'</h6>';

                               endif;?>

                        <a  href="#collapse<?php echo esc_html($day2id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" aria-controls="<?php echo esc_html($day2id,'beevent');?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                        <div class="collapse" id="collapse<?php echo esc_html($day2id,'beevent');?>">

                          <div class="conf-user-content">

                           <?php the_excerpt();?>

                          </div>

                        </div>

                      </div>

                    </div>

                <?php 

                $day2id++;

                endwhile;

                wp_reset_query(); ?>

          </div>

          <!--/Day 2 schedule--> 

          <!--Day 3 schedule-->

          <div class="tab-pane fade" id="day3">

                <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

                'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid3) ) ) ); 

                $day3id=80; ?>

                <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                    <div class="conference-time-list">

                      <div class="conf-user-time"> 

						<?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid3 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </div>

                      <div class="conf-user-img"> 

                          <?php if ( has_post_thumbnail() ):

                          the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                          else:

                          echo "<div class='is-empty-box'></div>";

                          endif;?> 

                      </div>

                      <div class="conf-user-info">

                        <h5><?php the_title();?></h5>

                        <?php 

                               $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                               if (!empty( $destination)):

                                 echo '<h6>'.$destination.'</h6>';

                               endif;?>

                        <a  href="#collapse<?php echo esc_attr($day3id);?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" aria-controls="<?php echo esc_attr($day3id);?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                        <div class="collapse" id="collapse<?php echo esc_attr($day3id);?>">

                          <div class="conf-user-content">

                            <?php the_excerpt();?>

                          </div>

                        </div>

                      </div>

                    </div>

                <?php 

                $day3id++;

                endwhile;

                wp_reset_query(); ?>

          </div>

          <!--/Day 3 schedule--> 

          <!--Day 4 schedule-->

          <div class="tab-pane fade" id="day4">

                <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

                'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid4) ) ) ); 

                $day4id=120; ?>

                <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                    <div class="conference-time-list">

                      <div class="conf-user-time"> 

						<?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid4 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </div>

                      <div class="conf-user-img"> 

                          <?php if ( has_post_thumbnail() ):

                          the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                          else:

                          echo "<div class='is-empty-box'></div>";

                          endif;?> 

                      </div>

                      <div class="conf-user-info">

                        <h5><?php the_title();?></h5>

                        <?php 

                               $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                               if (!empty( $destination)):

                                 echo '<h6>'.$destination.'</h6>';

                               endif;?>

                        <a  href="#collapse<?php echo esc_html($day4id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" aria-controls="<?php echo esc_html($day4id,'beevent');?>"> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                        <div class="collapse" id="collapse<?php echo esc_html($day4id,'beevent');?>">

                          <div class="conf-user-content">

                            <?php the_excerpt();?>

                          </div>

                        </div>

                      </div>

                    </div>

                <?php 

                $day4id++;

                endwhile;

                wp_reset_query(); ?>

          </div>

          <!--/Day 4 schedule--> 

          <!--Day 5 schedule-->

          <div class="tab-pane fade" id="day5">

                <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

                'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid5) ) ) ); 

                $day5id=160; ?>

                <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                    <div class="conference-time-list">

                      <div class="conf-user-time"> 

						<?php 

                       $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid5 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </div>

                      <div class="conf-user-img"> 

                          <?php if ( has_post_thumbnail() ):

                          the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                          else:

                          echo "<div class='is-empty-box'></div>";

                          endif;?> 

                      </div>

                      <div class="conf-user-info">

                        <h5><?php the_title();?></h5>

                        <?php 

                               $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                               if (!empty( $destination)):

                                 echo '<h6>'.$destination.'</h6>';

                               endif;?>

                        <a  href="#collapse<?php echo esc_html($day5id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day5id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                        <div class="collapse" id="collapse<?php echo esc_html($day5id,'beevent');?>">

                          <div class="conf-user-content">

                           <?php the_excerpt();?>

                          </div>

                        </div>

                      </div>

                    </div>

                <?php 

                $day5id++;

                endwhile;

                wp_reset_query(); ?>

          </div>

          <!--/Day 5 schedule--> 

          <!--Day 6 schedule-->

          <div class="tab-pane fade" id="day6">

                <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

                'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid6) ) ) ); 

                $day6id=200; ?>

                <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                    <div class="conference-time-list">

                      <div class="conf-user-time"> 

						<?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid6 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </div>

                      <div class="conf-user-img"> 

                          <?php if ( has_post_thumbnail() ):

                          the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                          else:

                          echo "<div class='is-empty-box'></div>";

                          endif;?> 

                      </div>

                      <div class="conf-user-info">

                        <h5><?php the_title();?></h5>

                        <?php 

                               $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                               if (!empty( $destination)):

                                 echo '<h6>'.$destination.'</h6>';

                               endif;?>

                        <a  href="#collapse<?php echo esc_html($day6id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day6id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                        <div class="collapse" id="collapse<?php echo esc_html($day6id,'beevent');?>">

                          <div class="conf-user-content">

                            <?php the_excerpt();?>

                          </div>

                        </div>

                      </div>

                    </div>

                <?php 

                $day6id++;

                endwhile;

                wp_reset_query(); ?>

          </div>

          <!--/Day 6 schedule--> 

          <!--Day 7 schedule-->

          <div class="tab-pane fade" id="day7">

                <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

                'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid7) ) ) ); 

                $day7id=240; ?>

                <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                    <div class="conference-time-list">

                      <div class="conf-user-time"> 

						<?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid7 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </div>

                      <div class="conf-user-img"> 

                          <?php if ( has_post_thumbnail() ):

                          the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                          else:

                          echo "<div class='is-empty-box'></div>";

                          endif;?> 

                      </div>

                      <div class="conf-user-info">

                        <h5><?php the_title();?></h5>

                        <?php 

                               $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                               if (!empty( $destination)):

                                 echo '<h6>'.$destination.'</h6>';

                               endif;?>

                        <a  href="#collapse<?php echo esc_html($day7id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day7id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                        <div class="collapse" id="collapse<?php echo esc_html($day7id,'beevent');?>">

                          <div class="conf-user-content">

                           <?php the_excerpt();?>

                          </div>

                        </div>

                      </div>

                    </div>

                <?php 

                $day7id++;

                endwhile;

                wp_reset_query(); ?>

          </div>

          <!--/Day 7 schedule--> 

    </div>

  </div>

<?php return ob_get_clean(); }

//2 ****************** Schedule List Style 2 Shortcode ***********************//

function beevent_schedule_style2(){ ob_start();?>

<div class="col-md-12 col-md-offset-1">

	<div class="schedule_style2">

    <div class="schedule_info2">

      <ul class="nav nav-tabs" id="myTab2" role="tablist">

            <?php

                $taxonomy = 'speaker_category';

                $tax_terms = get_terms($taxonomy);

                $id=20;

                foreach ($tax_terms as $tax_term) {

                $tax_term_id[] = $tax_term->term_id;
                $schedule_date = get_term_meta( $tax_term->term_id, 'schedule_date', true );
                 ?>

                <li class="nav-item" role="presentation">

                  <button data-bs-toggle="tab" class="nav-link <?php if($id =='20'){ echo esc_attr('active'); }?>" id="day<?php echo esc_attr($id);?>-tab" data-bs-target="#day<?php echo esc_attr($id);?>" type="button" role="tab" aria-controls="day<?php echo esc_attr($id);?>" aria-selected="<?php if($id =='20'){ echo esc_attr('true' ); } else { echo 'false'; } ?>">

                    <?php echo esc_attr($tax_term->name); ?>
                    <span style="line-height: 10px;margin-top: 5px;"><?php echo isset( $schedule_date ) ? date( 'l', strtotime( $schedule_date ) ) : ''; ?></span>
                            <span><?php echo isset( $schedule_date ) ? $schedule_date : ''; ?></span>
                  </button>

                </li>

                <?php $id++;

                }

                $catid1= $tax_term_id['0'];

                $catid2= $tax_term_id['1'];

                $catid3= $tax_term_id['2'];

                $catid4= $tax_term_id['3'];

                $catid5= $tax_term_id['4'];

                $catid6= $tax_term_id['5'];

                $catid7= $tax_term_id['6'];

            ?>

            

      </ul>

      <div id="my-tab-content" class="tab-content"> 

      <!--Day 1 schedule-->

      <div class="tab-pane fade show active" id="day20">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid1) ) ) ); 

            $day1id=280; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-time"> 

                    <?php 

                    $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid1 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif; ?>

                    </div>

                  <div class="conf-user-img"> 

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                    <h5><?php the_title();?></h5>

                    <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>

                    <a  href="#collapse<?php echo esc_html($day1id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day3id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day1id,'beevent');?>">

                      <div class="conf-user-content">

                        <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day1id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 1 schedule--> 

      <!--Day 2 schedule-->

      <div class="tab-pane fade" id="day21">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid2) ) ) ); 

            $day2id=320; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-time"> 

                    <?php 

                    $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid2 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif; ?>

                    </div>

                  <div class="conf-user-img"> 

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                    <h5><?php the_title();?></h5>

                    <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>

                    <a  href="#collapse<?php echo esc_html($day2id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day3id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day2id,'beevent');?>">

                      <div class="conf-user-content">

                       <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day2id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 2 schedule--> 

      <!--Day 3 schedule-->

      <div class="tab-pane fade" id="day22">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid3) ) ) ); 

            $day3id=360; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-time"> 

                    <?php 

                    $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid3 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                    </div>

                  <div class="conf-user-img"> 

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                    <h5><?php the_title();?></h5>

                    <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>

                    <a  href="#collapse<?php echo esc_html($day3id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day3id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day3id,'beevent');?>">

                      <div class="conf-user-content">

                        <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day3id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 3 schedule--> 

      <!--Day 4 schedule-->

      <div class="tab-pane fade" id="day23">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid4) ) ) ); 

            $day4id=400; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-time"> 

                    <?php 

                    $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid4 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                    </div>

                  <div class="conf-user-img"> 

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                    <h5><?php the_title();?></h5>

                    <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>

                    <a  href="#collapse<?php echo esc_html($day4id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day4id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day4id,'beevent');?>">

                      <div class="conf-user-content">

                        <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day4id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 4 schedule--> 

      <!--Day 5 schedule-->

      <div class="tab-pane fade" id="day24">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid5) ) ) ); 

            $day5id=440; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-time"> 

                    <?php 

                    $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid5 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif; ?>

                    </div>

                  <div class="conf-user-img"> 

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                    <h5><?php the_title();?></h5>

                    <?php 

                     $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                     if(!empty( $destination)):

                        echo '<h6>'.$destination.'</h6>';

                     endif;?>

                    <a href="#collapse<?php echo esc_html($day5id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day5id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day5id,'beevent');?>">

                      <div class="conf-user-content">

                       <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day5id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 5 schedule--> 

      <!--Day 6 schedule-->

      <div class="tab-pane fade" id="day25">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num', 'meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid6) ) ) ); 

            $day6id=480; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-time"> 

                    <?php 

                    $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid6 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                    </div>

                  <div class="conf-user-img"> 

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                    <h5><?php the_title();?></h5>

                    <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>

                    <a href="#collapse<?php echo esc_html($day6id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day6id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day6id,'beevent');?>">

                      <div class="conf-user-content">

                        <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day6id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 6 schedule--> 

      <!--Day 7 schedule-->

      <div class="tab-pane fade" id="day26">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid7) ) ) ); 

            $day7id=520; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-time"> 

                    <?php 

                    $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid7 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                    </div>

                  <div class="conf-user-img"> 

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                    <h5><?php the_title();?></h5>

                    <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>

                    <a  href="#collapse<?php echo esc_html($day7id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day7id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day7id,'beevent');?>">

                      <div class="conf-user-content">

                       <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day7id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 7 schedule--> 

</div>

</div>

</div>

</div>

<?php return ob_get_clean(); }

//3 ****************** Schedule List Style 3 Shortcode ***********************//

function beevent_schedule_style3(){ ob_start(); ?>

<div class="col-md-12 col-md-offset-1">

<div class="schedule_info3 schedule_style3">

    <ul class="nav nav-tabs" id="myTab3" role="tablist">

            <?php

                $taxonomy = 'speaker_category';

                $tax_terms = get_terms($taxonomy);

                $id=40;

                foreach ($tax_terms as $tax_term) {
                  $schedule_date = get_term_meta( $tax_term->term_id, 'schedule_date', true );
                $tax_term_id[] = $tax_term->term_id; ?>

                    <li class="nav-item" role="presentation">

                      <button data-bs-toggle="tab" class="nav-link <?php if($id =='40'){ echo esc_attr('active'); }?>" id="day<?php echo esc_attr($id);?>-tab" data-bs-target="#day<?php echo esc_attr($id);?>" type="button" role="tab" aria-controls="day<?php echo esc_attr($id);?>" aria-selected="<?php if($id =='40'){ echo esc_attr('true' ); } else { echo 'false'; } ?>">

                        <?php echo esc_attr($tax_term->name); ?>
                        <span style="line-height: 10px;margin-top: 5px;"><?php echo isset( $schedule_date ) ? date( 'l', strtotime( $schedule_date ) ) : ''; ?></span>
                            <span><?php echo isset( $schedule_date ) ? $schedule_date : ''; ?></span>
                      </button>

                    </li>

                <?php $id++;

                }

                $catid1= $tax_term_id['0'];

                $catid2= $tax_term_id['1'];

                $catid3= $tax_term_id['2'];

                $catid4= $tax_term_id['3'];

                $catid5= $tax_term_id['4'];

                $catid6= $tax_term_id['5'];

                $catid7= $tax_term_id['6'];

            ?>

      </ul>

    <div id="my-tab-content" class="tab-content"> 

      <!--Day 1 schedule-->

      <div class="tab-pane fade show active" id="day40">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid1) ) ) ); 

            $day1id=560; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-img">

                      <?php if(has_post_thumbnail()):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  

                  <div class="conf-user-info">

                        <h5><?php the_title();?> 

                        <?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid1 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </h5>

                           <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>



                    <a  href="#collapse<?php echo esc_html($day1id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day1id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day1id,'beevent');?>">

                      <div class="conf-user-content">

                        <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

                

                

                

            <?php 

            $day1id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 1 schedule--> 

      <!--Day 2 schedule-->

      <div class="tab-pane fade" id="day41">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid2) ) ) ); 

            $day2id=600; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-img">

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  

                  <div class="conf-user-info">

                    <h5><?php the_title();?> 

                    <?php 

                    $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid2 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                    </h5>

                       <?php 

                       $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                       if (!empty( $destination)):

                         echo '<h6>'.$destination.'</h6>';

                       endif;?>

                    <a  href="#collapse<?php echo esc_html($day2id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day2id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day2id,'beevent');?>">

                      <div class="conf-user-content">

                       <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day2id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 2 schedule--> 

      <!--Day 3 schedule-->

      <div class="tab-pane fade" id="day42">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid3) ) ) ); 

            $day3id=640; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-img">

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                        <h5><?php the_title();?> 

                        <?php 

                       $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid3 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </h5>

                           <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>



                    <a  href="#collapse<?php echo esc_html($day3id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day3id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day3id,'beevent');?>">

                      <div class="conf-user-content">

                        <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day3id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 3 schedule--> 

      <!--Day 4 schedule-->

      <div class="tab-pane fade" id="day43">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid4) ) ) ); 

            $day4id=680; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-img">

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                        <h5><?php the_title();?> 

                        <?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid4 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </h5>

                           <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>



                    <a  href="#collapse<?php echo esc_html($day4id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day4id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day4id,'beevent');?>">

                      <div class="conf-user-content">

                        <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day4id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 4 schedule--> 

      <!--Day 5 schedule-->

      <div class="tab-pane fade" id="day44">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid5) ) ) ); 

            $day5id=720; ?>

            <?php while($speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-img">

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                    <h5><?php the_title();?> 

                <?php 

                $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid5 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                </h5>

                   <?php 

                   $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                   if (!empty( $destination)):

                     echo '<h6>'.$destination.'</h6>';

                   endif;?>

                    <a  href="#collapse<?php echo esc_html($day5id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day5id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day5id,'beevent');?>">

              <div class="conf-user-content">

               <?php the_excerpt();?>

              </div>

            </div>

                  </div>

                </div>

            <?php 

            $day5id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 5 schedule--> 

      <!--Day 6 schedule-->

      <div class="tab-pane fade" id="day45">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid6) ) ) ); 

            $day6id=760; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  

                  <div class="conf-user-img">

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                        <h5><?php the_title();?> 

                        <?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid6 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </h5>

                           <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>



                    <a  href="#collapse<?php echo esc_html($day6id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day6id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day6id,'beevent');?>">

                      <div class="conf-user-content">

                        <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day6id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 6 schedule--> 

      <!--Day 7 schedule-->

      <div class="tab-pane fade" id="day46">

            <?php $speakerList = new WP_Query( array( 'post_type' => 'speaker', 'order' => 'ASC', 'orderby' => 'meta_value_num','meta_key' => 'Be_schedule_time', 'post_status' => 'publish', 'posts_per_page'=>-1, 'tax_query' => array( array(

            'taxonomy' => 'speaker_category', 'field' => 'id', 'terms' =>$catid7) ) ) ); 

            $day7id=800; ?>

            <?php while ( $speakerList->have_posts() ) : $speakerList->the_post(); ?>

                <div class="conference-time-list">

                  <div class="conf-user-img">

                      <?php if ( has_post_thumbnail() ):

                      the_post_thumbnail('medium', array('class' => 'img-responsive center-block'));

                      else:

                      echo "<div class='is-empty-box'></div>";

                      endif;?> 

                  </div>

                  <div class="conf-user-info">

                        <h5><?php the_title();?> 

                        <?php 

                        $lblTitle = get_post_meta( get_the_ID(), 'schedule_DateTime', true );
                        $schedule_content_arr = unserialize( $lblTitle );

                        if ( ! empty( $schedule_content_arr ) ):
                          foreach ( $schedule_content_arr as $days_key => $days_value ) {
                            if ( $days_value['inner-day-input'] == $catid7 ) {
                              echo '<span class="time">'.$days_value['inner-time-input'].'</span>';
                            }
                          }
                            
                        endif;?>

                        </h5>

                           <?php 

                           $destination = get_post_meta(get_the_ID(),'Be_destination', true );

                           if (!empty( $destination)):

                             echo '<h6>'.$destination.'</h6>';

                           endif;?>



                    <a  href="#collapse<?php echo esc_html($day7id,'beevent');?>" data-bs-toggle="collapse" role="button" class="conf-close" aria-expanded="false" <?php echo esc_html($day7id,'beevent');?>> <i class="fa fa-angle-right" aria-hidden="true"></i> </a>

                    <div class="collapse" id="collapse<?php echo esc_html($day7id,'beevent');?>">

                      <div class="conf-user-content">

                       <?php the_excerpt();?>

                      </div>

                    </div>

                  </div>

                </div>

            <?php 

            $day7id++;

            endwhile;

            wp_reset_query(); ?>

      </div>

      <!--/Day 7 schedule--> 

   </div>

</div>

</div>

<?php return ob_get_clean(); }

ZeroDay Forums Mini