Support

Account

Home Forums Front-end Issues After upgrade post aggregator not working

Solving

After upgrade post aggregator not working

  • On our website we had a ACF create a table list of artists that would come to our casino and it would state which date and time and venue they would be performing at. Each act would be made in a post and ACF would create a listing on the table and display it.

    We were updating our plugins and wordpress install, and once we updated, none of the pages where the table would be displayed was working. The back end still has all the posts and listings, but it just won’t display on the front page.

    Both ACF and WordPress are now at their latest version 4.4.8 and 4.5 respectively.

    To see a sample of the page it can be seen here: http://riverrock.com/entertainment/show-theatre/

    This is the code that we used to display all the acts onto a page:

    <?php
    $today = current_time( 'timestamp' ); // Get current unix timestamp
    $nextWeek = $today + (8 * 24 * 60 * 60);
      $lulus = new WP_Query( array(
          'post_type' => 'event',
          'post_status' => 'publish',
          'posts_per_page' => -1,
          // 'orderby' => 'date',
          // 'order' => 'ASC',
          'meta_query' => array(
    array(
    'key' => 'event_venue',
    'value' => array('Lulu\'s Lounge')
    )
    )
      ) );
    
    if ( $lulus->have_posts() ) :
    $i = 0;
    $events = array();
    while ( $lulus->have_posts() ) : $lulus->the_post();
    
    do{
          if(get_sub_field('event_date')){
            $event_date = get_sub_field('event_date'); 
           $event_location = get_field('event_venue');
            $permalink = get_permalink();
            $thumbnail = get_the_post_thumbnail($post_id);
            $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail');
            $ticket = get_sub_field('event_ticket_link');
            $price = get_field('event_price');
            $title = get_the_title();
            $terms = get_the_terms($post->ID, 'genre');
            $url = wp_get_attachment_image_src($id,'event-thumb', true);
    
            if($event_date >= $today){
             if(isset($events[$title])){
             $events[$title]['dates'][] = $event_date;
             if($event_date < $events[$title]['earliest_date']){
             $events[$title]['earliest_date'] = $event_date;
             }
             }
             else{
    $events[$title] = array(
    'title' => $title,
    'permalink' => $permalink,
    'thumb' => $thumbnail,
    'thumbnail_src' => $thumbnail_src,
    'price' => $price,
    'ticket' => $ticket,
    'dates' => array($event_date),
    'earliest_date' => $event_date,
    'terms' => $terms
    );
    
             }
    
             }; $i++; // endif>today
          }
        } while(has_sub_field('dates'));
    endwhile;
    
    // print_r($events);
    
    usort($events, function($a, $b) {
    return $a['earliest_date'] - $b['earliest_date'];
    });
    
    $numEvents = count($events);
    // echo $numEvents;
    $counter = 0;
    foreach($events as $event) {
    
    $permalink = $event['permalink'];
    $title = $event['title'];
    $thumb = $event['thumb'];
    $thumbnail_src = $event['thumbnail_src'];
    $ticket = $event['ticket'];
    $terms = $event['terms'];
    
    if($counter <= 24){ ?>
    
    <div class="event-fifty <?php echo 'counter'.$counter; ?>">
    <div class="newImageBox" style="background:url(<?php echo $thumbnail_src[0]; ?>);background-size:cover;background-position:center center;"></div>
    
    <div class="lulu-text">
    <h5><?php print $title; ?></h5>
    <?php
    // $terms = get_the_terms( $post->ID, 'genre' );
    if ( $terms && ! is_wp_error( $terms ) ) :
    $genres = array();
    foreach ( $terms as $term ) {
    $genres[] = $term->name;
    }
    $genre = join( " / ", $genres );
    ?>
    <p class="location">
    <?php echo $event_location; ?>
    </p>
    <p class="genre">
    <?php echo $genre; ?>
    </p>
    <?php endif; ?>
    <span class="time">
    <?php
    $numDates = count($event['dates']);
    // print $numDates . ' dates... ';
    $i = 0;
    $img = get_stylesheet_directory_uri();
    
    foreach ($event['dates'] as $date){
    
    if($numDates == 1){
    $first_date = date('M. j', $date);
    $first_date_day = date('l', $date);
    
    if(date('i', $date) != '00'){
    $new_time = date('g:ia', $date);
    }else{
    $new_time = date('g:ia', $date);
    }
    echo $first_date_day. '<br />' . $first_date . '<br>' .$new_time;
    // echo date('ga', $date);
    }else{
    
    // more than 1 date
    
    if($i == $numDates-1){
    
    $first = date('F', $event['dates'][0]);
    $last = date('F',$event['dates'][$i]);
    
    if(date('i', $date) != '00'){
    $new_time = date('g:ia', $date);
    }else{
    $new_time = date('g:ia', $date);
    }
    
    $firstDayName = date('l', $event['dates'][0]);
    $lastDayName = date('l', $event['dates'][$i]);
    // echo $firstDayName . ' & ' . $lastDayName;
    
    // check if all show day names are the same or not + assign all days names to an array
    $allDaysNames = array();
    $sameDaysNames = True; 
    for ($x = 0; $x < $numDates; $x++) {
    $allDaysNames[$x] = date('D', $event['dates'][$x]);
    if ($x > 0){
    if ($sameDaysNames == True && $allDaysNames[$x] == $allDaysNames[$x-1]){
    $sameDaysNames = True; 
    }else{
    $sameDaysNames = False;
    }
    }
    }
    
    if($last != $first){
    // different months
    if( $numDates > 2 ){
    
    if ($sameDaysNames == True){ //if all show day names are the same
    echo $firstDayName . 's <br>'; //echo just first day in plural
    }else{
    // echo all days
    foreach ($allDaysNames as $e => $dayName){
    echo $dayName;
    if ($e != $numDates-1){
    echo ", "; 
    }else{
    echo "<br>";
    }
    } 
    }
    
    //echo 'Starts ' . $firstDayName . '<br>';
    }else{
    if( $firstDayName == $lastDayName ) { // wednesday & wednesday
    echo $firstDayName . 's <br>';
    }else{
    echo $firstDayName . ' & '. $lastDayName . '<br>';
    }
    }
    
    //echo date('M. j -', $event['dates'][0]) . date('M. j, ', $event['dates'][$i]) . $new_time; 
    //echo "<br>";
    
    $x_month = "a";
    $current_month = "a";
    
    for ($x = 0; $x < $numDates; $x++) {
    
    $current_month = date('F', $event['dates'][$x]);
    
    //echo $x_month . " | " . $current_month;
    //echo "<br>";
    
    if ($current_month != $x_month) { 
    if ($x > 0) {
    echo " | ";
    }
    echo date('M. j', $event['dates'][$x]);
    }else{
    echo date(', j', $event['dates'][$x]);
    }
    
    $x_month = date('F', $event['dates'][$x]); 
    }
    
    echo "<br>" . $new_time; 
    
    }else{
    
    if( $numDates > 2 ){
    
    if ($sameDaysNames == True){ //if all show day names are the same
    echo $firstDayName . 's <br>'; //echo just first day in plural
    }else{
    // echo all days
    foreach ($allDaysNames as $e => $dayName){
    echo $dayName;
    if ($e != $numDates-1){
    echo ", "; 
    }else{
    echo "<br>";
    }
    } 
    } 
    
    //echo 'Starts ' . $firstDayName . '<br>';
    
    }else{
    if( $firstDayName == $lastDayName ) { // wednesday & wednesday
    echo $firstDayName . 's <br>';
    }else{
    echo $firstDayName . ' & '. $lastDayName . '<br>';
    }
    }
    //echo date('M. j -', $event['dates'][0]). date('j, ', $event['dates'][$i]) . $new_time;
    //echo "<br>";
    for ($x = 0; $x < $numDates; $x++) {
    if ($x == 0) {
    echo date('M. j', $event['dates'][$x]);
    }else{
    echo date(', j', $event['dates'][$x]);
    } 
    }
    echo "<br>" . $new_time;
    }
    }
    }
    $i++;
    }
    ?>
    </span>
    </div>
    </div>
    
    <?php if( ($counter == 4) || ($counter == 9) || ($counter == 14) || ($counter == 19) ){
    // if( $counter == 4)|| ($counter == 9)|| ($counter == 14) || ($counter == 19) ) {
    
    ?>
    
    <?php }; ?>
    <?php if( ($counter == $numEvents-1) || ($counter == 24) ) { ?>
    <?php }; ?>
    <?php //}; ?>
    
    <?php $counter++; ?>
    
    <?php }; ?>
    <?php }; // end foreach ?>
    <?php endif; ?>
    <?php wp_reset_postdata(); ?>
  • Hi @mpayumo

    I think there’s something wrong with your query. Could you please debug it like this:

    $lulus = get_posts( array(
        'post_type' => 'event',
        'post_status' => 'publish',
        'posts_per_page' => -1,
        // 'orderby' => 'date',
        // 'order' => 'ASC',
        'meta_query' => array(
            array(
                'key' => 'event_venue',
                'value' => array('Lulu\'s Lounge')
            )
        )
    ));
    
    echo "<pre>";
    var_dump($lulus);
    echo "</pre>";

    If that doesn’t show anything, then I believe your meta_query is not correct. Could you please change the value like this:

    'value' => "Lulu's Lounge",

    Thanks 🙂

  • Hi James,

    it didn’t help. I have changed it to

      $lulus = new WP_Query( array(
          'post_type' => 'event',
          'post_status' => 'publish',
          'posts_per_page' => -1,
          // 'orderby' => 'date',
          // 'order' => 'ASC',
          'meta_query' => array(
    	        array(
    	            'key'			=> 'event_venue',
    	            'value' 	=> "Lulu's Lounge"
    	        )
    	    )
      ) );

    and it didn’t update at all.

    I have noticed that the addon plugin Advanced Custom Fields: Date and Time Picker might be the issue here. Whenever I try to update it, the section breaks.

  • Hi @mpayumo

    Could you please tell me what’s the result for this code:

    echo "<pre>";
    var_dump($lulus);
    echo "</pre>";

    When you used it for both:

    'value' => array('Lulu\'s Lounge')

    And:

    'value' => "Lulu's Lounge"

    It seems that you used a very customized PHP code. In this case, we need to debug the returned data/variables one by one to see which part that has the issue. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/debug/.

    Also, if the issue is related to Date and Time Picker add-on, I’m afraid I can’t help you because it’s not officially made by ACF. In this case, you need to ask the plugin author here: https://wordpress.org/support/plugin/acf-field-date-time-picker. ACF PRO now has the new Date Time Picker field included as default, though.

    Thanks 🙂

  • Here is the result of the dump for ‘Lulu’s Lounge’

    
    object(WP_Query)#4398 (49) {
      ["query"]=>
      array(4) {
        ["post_type"]=>
        string(5) "event"
        ["post_status"]=>
        string(7) "publish"
        ["posts_per_page"]=>
        int(-1)
        ["meta_query"]=>
        array(1) {
          [0]=>
          array(2) {
            ["key"]=>
            string(11) "event_venue"
            ["value"]=>
            string(13) "Lulu's Lounge"
          }
        }
      }
      ["query_vars"]=>
      array(65) {
        ["post_type"]=>
        string(5) "event"
        ["post_status"]=>
        string(7) "publish"
        ["posts_per_page"]=>
        int(-1)
        ["meta_query"]=>
        array(1) {
          [0]=>
          array(2) {
            ["key"]=>
            string(11) "event_venue"
            ["value"]=>
            string(13) "Lulu's Lounge"
          }
        }
        ["error"]=>
        string(0) ""
        ["m"]=>
        string(0) ""
        ["p"]=>
        int(0)
        ["post_parent"]=>
        string(0) ""
        ["subpost"]=>
        string(0) ""
        ["subpost_id"]=>
        string(0) ""
        ["attachment"]=>
        string(0) ""
        ["attachment_id"]=>
        int(0)
        ["name"]=>
        string(0) ""
        ["static"]=>
        string(0) ""
        ["pagename"]=>
        string(0) ""
        ["page_id"]=>
        int(0)
        ["second"]=>
        string(0) ""
        ["minute"]=>
        string(0) ""
        ["hour"]=>
        string(0) ""
        ["day"]=>
        int(0)
        ["monthnum"]=>
        int(0)
        ["year"]=>
        int(0)
        ["w"]=>
        int(0)
        ["category_name"]=>
        string(0) ""
        ["tag"]=>
        string(0) ""
        ["cat"]=>
        string(0) ""
        ["tag_id"]=>
        string(0) ""
        ["author"]=>
        string(0) ""
        ["author_name"]=>
        string(0) ""
        ["feed"]=>
        string(0) ""
        ["tb"]=>
        string(0) ""
        ["paged"]=>
        int(0)
        ["meta_key"]=>
        string(0) ""
        ["meta_value"]=>
        string(0) ""
        ["preview"]=>
        string(0) ""
        ["s"]=>
        string(0) ""
        ["sentence"]=>
        string(0) ""
        ["title"]=>
        string(0) ""
        ["fields"]=>
        string(0) ""
        ["menu_order"]=>
        string(0) ""
        ["embed"]=>
        string(0) ""
        ["category__in"]=>
        array(0) {
        }
        ["category__not_in"]=>
        array(0) {
        }
        ["category__and"]=>
        array(0) {
        }
        ["post__in"]=>
        array(0) {
        }
        ["post__not_in"]=>
        array(0) {
        }
        ["post_name__in"]=>
        array(0) {
        }
        ["tag__in"]=>
        array(0) {
        }
        ["tag__not_in"]=>
        array(0) {
        }
        ["tag__and"]=>
        array(0) {
        }
        ["tag_slug__in"]=>
        array(0) {
        }
        ["tag_slug__and"]=>
        array(0) {
        }
        ["post_parent__in"]=>
        array(0) {
        }
        ["post_parent__not_in"]=>
        array(0) {
        }
        ["author__in"]=>
        array(0) {
        }
        ["author__not_in"]=>
        array(0) {
        }
        ["ignore_sticky_posts"]=>
        bool(false)
        ["suppress_filters"]=>
        bool(false)
        ["cache_results"]=>
        bool(true)
        ["update_post_term_cache"]=>
        bool(true)
        ["update_post_meta_cache"]=>
        bool(true)
        ["nopaging"]=>
        bool(true)
        ["comments_per_page"]=>
        string(2) "50"
        ["no_found_rows"]=>
        bool(false)
        ["order"]=>
        string(4) "DESC"
      }
      ["tax_query"]=>
      object(WP_Tax_Query)#4483 (6) {
        ["queries"]=>
        array(0) {
        }
        ["relation"]=>
        string(3) "AND"
        ["table_aliases":protected]=>
        array(0) {
        }
        ["queried_terms"]=>
        array(0) {
        }
        ["primary_table"]=>
        string(8) "rr_posts"
        ["primary_id_column"]=>
        string(2) "ID"
      }
      ["meta_query"]=>
      object(WP_Meta_Query)#4396 (9) {
        ["queries"]=>
        array(2) {
          [0]=>
          array(2) {
            ["key"]=>
            string(11) "event_venue"
            ["value"]=>
            string(13) "Lulu's Lounge"
          }
          ["relation"]=>
          string(2) "OR"
        }
        ["relation"]=>
        string(3) "AND"
        ["meta_table"]=>
        string(11) "rr_postmeta"
        ["meta_id_column"]=>
        string(7) "post_id"
        ["primary_table"]=>
        string(8) "rr_posts"
        ["primary_id_column"]=>
        string(2) "ID"
        ["table_aliases":protected]=>
        array(1) {
          [0]=>
          string(11) "rr_postmeta"
        }
        ["clauses":protected]=>
        array(1) {
          ["rr_postmeta"]=>
          array(5) {
            ["key"]=>
            string(11) "event_venue"
            ["value"]=>
            string(13) "Lulu's Lounge"
            ["compare"]=>
            string(1) "="
            ["alias"]=>
            string(11) "rr_postmeta"
            ["cast"]=>
            string(4) "CHAR"
          }
        }
        ["has_or_relation":protected]=>
        bool(false)
      }
      ["date_query"]=>
      bool(false)
      ["request"]=>
      string(371) "SELECT   rr_posts.* FROM rr_posts  INNER JOIN rr_postmeta ON ( rr_posts.ID = rr_postmeta.post_id ) WHERE 1=1  AND ( 
      ( rr_postmeta.meta_key = 'event_venue' AND CAST(rr_postmeta.meta_value AS CHAR) = 'Lulu\'s Lounge' )
    ) AND rr_posts.post_type = 'event' AND ((rr_posts.post_status = 'publish')) GROUP BY rr_posts.ID ORDER BY rr_posts.menu_order, rr_posts.post_date DESC "
      ["posts"]=>
      array(35) {
        [0]=>
        object(WP_Post)#3983 (24) {
          ["ID"]=>
          int(7515)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-31 09:49:22"
          ["post_date_gmt"]=>
          string(19) "2016-03-31 16:49:22"
          ["post_content"]=>
          string(250) "Stephen Lecky is a Canadian Idol finalist, also appearing on shows such as "Canada's Got Talent". He uses a mix of tap shoes, guitar, loop pedal,  saxophone and flute to create a very entertaining and entrancing show that has never been seen before."
          ["post_title"]=>
          string(18) "Stephen Lecky Band"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(18) "stephen-lecky-band"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-06-24 12:53:08"
          ["post_modified_gmt"]=>
          string(19) "2016-06-24 20:53:08"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7515"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [1]=>
        object(WP_Post)#3984 (24) {
          ["ID"]=>
          int(7307)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-18 15:18:01"
          ["post_date_gmt"]=>
          string(19) "2016-03-18 22:18:01"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(17) "The So Tight Band"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(17) "the-so-tight-band"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-18 15:18:36"
          ["post_modified_gmt"]=>
          string(19) "2016-03-18 22:18:36"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7307"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [2]=>
        object(WP_Post)#3985 (24) {
          ["ID"]=>
          int(7251)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 21:48:31"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 05:48:31"
          ["post_content"]=>
          string(337) "Mike Henry was born in Shreveport, Louisiana. He developed his strong soulful voice performing with the vocal group, the Gospel Ambassadors. He moved to Las Vegas in the 80's and performed in hotel clubs and toured to Atlantic City, Reno and Lake Tahoe. Then he moved to the San Francisco's Bay area and worked in R&B and Funk clubs."
          ["post_title"]=>
          string(14) "Mike Henry Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(14) "mike-henry-duo"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-06-24 10:25:13"
          ["post_modified_gmt"]=>
          string(19) "2016-06-24 18:25:13"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7251"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [3]=>
        object(WP_Post)#3986 (24) {
          ["ID"]=>
          int(7248)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 21:43:47"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 05:43:47"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(9) "The Suits"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(5) "suits"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 21:43:47"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 05:43:47"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7248"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [4]=>
        object(WP_Post)#3987 (24) {
          ["ID"]=>
          int(7246)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 21:37:04"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 05:37:04"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(20) "East-Van Social Club"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(20) "east-van-social-club"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 21:38:32"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 05:38:32"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7246"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [5]=>
        object(WP_Post)#3988 (24) {
          ["ID"]=>
          int(7243)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 21:32:20"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 05:32:20"
          ["post_content"]=>
          string(670) "Renown for both his creative lyrics and lush melodies, as well as his dynamic live performances, Cole is an extremely talented singer/songwriter who’s words and music have struck a chord with thousands of appreciative listeners worldwide. Whether it was opening for Bon Jovi, receiving seven honorable mentions from Billboard Magazine, being a Finalist in the John Lennon Song Writing Contest, or recently being a finalist in the 2010 Great American song writing contest, Cole’s talents have been widely recognized with numerous awards and accolades. Cole’s songlist is in the hundreds, and comprises the hits of today, back through the 50’s and 60’s and more!"
          ["post_title"]=>
          string(12) "Cole Petrone"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(12) "cole-petrone"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-06-24 10:14:21"
          ["post_modified_gmt"]=>
          string(19) "2016-06-24 18:14:21"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7243"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [6]=>
        object(WP_Post)#3989 (24) {
          ["ID"]=>
          int(7231)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 21:09:48"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 05:09:48"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(19) "Rachael Chatoor Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(15) "rachael-chatoor"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-06-24 16:31:45"
          ["post_modified_gmt"]=>
          string(19) "2016-06-25 00:31:45"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7231"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [7]=>
        object(WP_Post)#3990 (24) {
          ["ID"]=>
          int(7229)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 20:58:12"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 04:58:12"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(13) "Phil Bell Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(13) "phil-bell-duo"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 20:58:35"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 04:58:35"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7229"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [8]=>
        object(WP_Post)#3991 (24) {
          ["ID"]=>
          int(7227)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 20:57:29"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 04:57:29"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(11) "Cory Curtis"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(11) "cory-curtis"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 20:57:29"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 04:57:29"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7227"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [9]=>
        object(WP_Post)#3992 (24) {
          ["ID"]=>
          int(7224)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 20:54:15"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 04:54:15"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(17) "Rose  Ranger  Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(17) "rose-ranger-duo-2"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 20:54:15"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 04:54:15"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7224"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [10]=>
        object(WP_Post)#3993 (24) {
          ["ID"]=>
          int(7222)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 20:52:09"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 04:52:09"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(11) "Rose Ranger"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(11) "rose-ranger"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 20:52:09"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 04:52:09"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7222"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [11]=>
        object(WP_Post)#3994 (24) {
          ["ID"]=>
          int(7218)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 20:48:15"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 04:48:15"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(13) "Rob Eller Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(13) "rob-eller-duo"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 20:48:15"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 04:48:15"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7218"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [12]=>
        object(WP_Post)#3995 (24) {
          ["ID"]=>
          int(7216)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 17:18:16"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 01:18:16"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(17) "Rachel Button Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(17) "rachel-button-duo"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 17:21:31"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 01:21:31"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7216"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [13]=>
        object(WP_Post)#3996 (24) {
          ["ID"]=>
          int(7214)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 17:17:03"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 01:17:03"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(10) "Kris James"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(10) "kris-james"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 17:17:03"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 01:17:03"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7214"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [14]=>
        object(WP_Post)#3997 (24) {
          ["ID"]=>
          int(7210)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2016-03-09 17:14:23"
          ["post_date_gmt"]=>
          string(19) "2016-03-10 01:14:23"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(15) "Rose Ranger Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(15) "rose-ranger-duo"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-03-09 17:14:23"
          ["post_modified_gmt"]=>
          string(19) "2016-03-10 01:14:23"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(49) "http://riverrock.com/?post_type=event&p=7210"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [15]=>
        object(WP_Post)#3998 (24) {
          ["ID"]=>
          int(5487)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2015-07-17 10:20:03"
          ["post_date_gmt"]=>
          string(19) "2015-07-17 17:20:03"
          ["post_content"]=>
          string(270) "Natural talent and a lifetime of experience combine to make Dan an entertainer extraordinaire
    who is confidently impressive on any size stage. Dan's high, crisp vocals and powerful guitar playing
    are always a crowd pleaser, and his love for entertaining is contagious."
          ["post_title"]=>
          string(8) "Dan Hare"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(8) "dan-hare"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-06-24 10:24:42"
          ["post_modified_gmt"]=>
          string(19) "2016-06-24 18:24:42"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=5487"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [16]=>
        object(WP_Post)#3999 (24) {
          ["ID"]=>
          int(4333)
          ["post_author"]=>
          string(2) "18"
          ["post_date"]=>
          string(19) "2015-01-30 11:10:33"
          ["post_date_gmt"]=>
          string(19) "2015-01-30 19:10:33"
          ["post_content"]=>
          string(515) "Named after the god of music and poetry, Apollo’s Crush is a band that makes everyone want to get up and dance! If you are looking for a pop/funk/R&B band that is fun to watch and fun to dance to, look no further. Apollo’s Crush will entertain you with classic hits from the 70’s through to recent chart toppers! The band includes successful members of the Vancouver music scene: Terry Fay, James Ennis, Adrian Stimpson, and Christian Bideau, with lead vocals by Jeassea Thyidor (Singapore Idol Finalist)."
          ["post_title"]=>
          string(14) "Apollo's Crush"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(13) "apollos-crush"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-06-24 12:53:52"
          ["post_modified_gmt"]=>
          string(19) "2016-06-24 20:53:52"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=4333"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [17]=>
        object(WP_Post)#4000 (24) {
          ["ID"]=>
          int(4046)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-12-27 00:16:58"
          ["post_date_gmt"]=>
          string(19) "2014-12-27 08:16:58"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(22) "Luis Giraldo & Friends"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(22) "luis-giraldo-friends-3"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-12-27 00:30:42"
          ["post_modified_gmt"]=>
          string(19) "2014-12-27 08:30:42"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=4046"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [18]=>
        object(WP_Post)#4001 (24) {
          ["ID"]=>
          int(3789)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-12-02 10:58:30"
          ["post_date_gmt"]=>
          string(19) "2014-12-02 18:58:30"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(26) "Doug Towle & Heidi McCurdy"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(24) "doug-towle-heidi-mccurdy"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-12-02 10:58:30"
          ["post_modified_gmt"]=>
          string(19) "2014-12-02 18:58:30"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3789"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [19]=>
        object(WP_Post)#4002 (24) {
          ["ID"]=>
          int(3722)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-11-18 10:12:11"
          ["post_date_gmt"]=>
          string(19) "2014-11-18 18:12:11"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(22) "Luis Giraldo & Friends"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(20) "luis-giraldo-friends"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-12-27 00:16:32"
          ["post_modified_gmt"]=>
          string(19) "2014-12-27 08:16:32"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3722"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [20]=>
        object(WP_Post)#4003 (24) {
          ["ID"]=>
          int(3720)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-11-18 10:09:38"
          ["post_date_gmt"]=>
          string(19) "2014-11-18 18:09:38"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(15) "Acoustic Groove"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(15) "acoustic-groove"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-11-18 10:09:38"
          ["post_modified_gmt"]=>
          string(19) "2014-11-18 18:09:38"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3720"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [21]=>
        object(WP_Post)#4004 (24) {
          ["ID"]=>
          int(3705)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-11-17 15:21:06"
          ["post_date_gmt"]=>
          string(19) "2014-11-17 23:21:06"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(19) "The Indestructibles"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(15) "indestructibles"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-11-17 15:21:06"
          ["post_modified_gmt"]=>
          string(19) "2014-11-17 23:21:06"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3705"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [22]=>
        object(WP_Post)#4005 (24) {
          ["ID"]=>
          int(3476)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-28 14:40:14"
          ["post_date_gmt"]=>
          string(19) "2014-10-28 21:40:14"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(11) "Kevin Coles"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(13) "kevin-coles-5"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-11-18 09:59:03"
          ["post_modified_gmt"]=>
          string(19) "2014-11-18 17:59:03"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3476"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [23]=>
        object(WP_Post)#4006 (24) {
          ["ID"]=>
          int(3474)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-28 14:40:08"
          ["post_date_gmt"]=>
          string(19) "2014-10-28 21:40:08"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(11) "Kevin Coles"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(13) "kevin-coles-3"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 14:40:08"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 21:40:08"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3474"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [24]=>
        object(WP_Post)#4007 (24) {
          ["ID"]=>
          int(3463)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-28 13:07:39"
          ["post_date_gmt"]=>
          string(19) "2014-10-28 20:07:39"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(16) "Marl Olexson Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(16) "marl-olexson-duo"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 13:07:54"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 20:07:54"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3463"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [25]=>
        object(WP_Post)#4008 (24) {
          ["ID"]=>
          int(3461)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-28 13:05:41"
          ["post_date_gmt"]=>
          string(19) "2014-10-28 20:05:41"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(13) "Marie Hui Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(13) "marie-hui-duo"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-11-18 09:35:26"
          ["post_modified_gmt"]=>
          string(19) "2014-11-18 17:35:26"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3461"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [26]=>
        object(WP_Post)#4009 (24) {
          ["ID"]=>
          int(3457)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-28 13:03:16"
          ["post_date_gmt"]=>
          string(19) "2014-10-28 20:03:16"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(16) "Paul Gibbons Duo"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(16) "paul-gibbons-duo"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 13:03:16"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 20:03:16"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3457"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [27]=>
        object(WP_Post)#4010 (24) {
          ["ID"]=>
          int(3391)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-21 10:39:07"
          ["post_date_gmt"]=>
          string(19) "2014-10-21 17:39:07"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(8) "Dynamics"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(8) "dynamics"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 14:44:11"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 21:44:11"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3391"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [28]=>
        object(WP_Post)#4011 (24) {
          ["ID"]=>
          int(3390)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-21 10:38:22"
          ["post_date_gmt"]=>
          string(19) "2014-10-21 17:38:22"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(32) "Bradley / McGillivray Blues Band"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(30) "bradley-mcgillivray-blues-band"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 14:44:17"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 21:44:17"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3390"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [29]=>
        object(WP_Post)#4012 (24) {
          ["ID"]=>
          int(3385)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-21 10:21:43"
          ["post_date_gmt"]=>
          string(19) "2014-10-21 17:21:43"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(6) "Dr. No"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(5) "dr-no"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 14:44:44"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 21:44:44"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3385"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [30]=>
        object(WP_Post)#4013 (24) {
          ["ID"]=>
          int(3382)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-21 10:19:10"
          ["post_date_gmt"]=>
          string(19) "2014-10-21 17:19:10"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(14) "Groove & Tonic"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(12) "groove-tonic"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 14:45:05"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 21:45:05"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3382"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [31]=>
        object(WP_Post)#4014 (24) {
          ["ID"]=>
          int(3381)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-21 10:17:41"
          ["post_date_gmt"]=>
          string(19) "2014-10-21 17:17:41"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(15) "Jeff St Germain"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(15) "jeff-st-germain"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-11-18 10:06:57"
          ["post_modified_gmt"]=>
          string(19) "2014-11-18 18:06:57"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3381"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [32]=>
        object(WP_Post)#4015 (24) {
          ["ID"]=>
          int(3368)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-10-21 10:16:42"
          ["post_date_gmt"]=>
          string(19) "2014-10-21 17:16:42"
          ["post_content"]=>
          string(0) ""
          ["post_title"]=>
          string(9) "Ken McCoy"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(9) "ken-mccoy"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 14:45:14"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 21:45:14"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(53) "http://www.riverrock.com/?post_type=event&p=3368"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [33]=>
        object(WP_Post)#4016 (24) {
          ["ID"]=>
          int(2910)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-09-24 11:10:12"
          ["post_date_gmt"]=>
          string(19) "2014-09-24 18:10:12"
          ["post_content"]=>
          string(472) "Tainted Lovers are six talented musicians who enjoy playing and performing. We have honed our skills with years of experience in various music projects. When you hire Tainted Lovers, these musicians are exactly who you’ll see performing. We’re not  just a group of musicians thrown together from who’s available at the time. We are a friends and most of all this is our BAND. With a playlist that span 5 decades we are confident that we have something for everyone."
          ["post_title"]=>
          string(14) "Tainted Lovers"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(14) "tainted-lovers"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2016-06-24 10:18:46"
          ["post_modified_gmt"]=>
          string(19) "2016-06-24 18:18:46"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(65) "http://dev-riverrock.gotpantheon.com/?post_type=event&p=2910"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
        [34]=>
        object(WP_Post)#4017 (24) {
          ["ID"]=>
          int(2903)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2014-09-24 10:47:56"
          ["post_date_gmt"]=>
          string(19) "2014-09-24 17:47:56"
          ["post_content"]=>
          string(46) "70’s - Current Hits
    Wednesday October 1, 29"
          ["post_title"]=>
          string(11) "Kevin Coles"
          ["post_excerpt"]=>
          string(0) ""
          ["post_status"]=>
          string(7) "publish"
          ["comment_status"]=>
          string(6) "closed"
          ["ping_status"]=>
          string(6) "closed"
          ["post_password"]=>
          string(0) ""
          ["post_name"]=>
          string(11) "kevin-coles"
          ["to_ping"]=>
          string(0) ""
          ["pinged"]=>
          string(0) ""
          ["post_modified"]=>
          string(19) "2014-10-28 14:40:00"
          ["post_modified_gmt"]=>
          string(19) "2014-10-28 21:40:00"
          ["post_content_filtered"]=>
          string(0) ""
          ["post_parent"]=>
          int(0)
          ["guid"]=>
          string(65) "http://dev-riverrock.gotpantheon.com/?post_type=event&p=2903"
          ["menu_order"]=>
          int(0)
          ["post_type"]=>
          string(5) "event"
          ["post_mime_type"]=>
          string(0) ""
          ["comment_count"]=>
          string(1) "0"
          ["filter"]=>
          string(3) "raw"
        }
      }
      ["post_count"]=>
      int(35)
      ["current_post"]=>
      int(-1)
      ["in_the_loop"]=>
      bool(false)
      ["post"]=>
      object(WP_Post)#3983 (24) {
        ["ID"]=>
        int(7515)
        ["post_author"]=>
        string(2) "18"
        ["post_date"]=>
        string(19) "2016-03-31 09:49:22"
        ["post_date_gmt"]=>
        string(19) "2016-03-31 16:49:22"
        ["post_content"]=>
        string(250) "Stephen Lecky is a Canadian Idol finalist, also appearing on shows such as "Canada's Got Talent". He uses a mix of tap shoes, guitar, loop pedal,  saxophone and flute to create a very entertaining and entrancing show that has never been seen before."
        ["post_title"]=>
        string(18) "Stephen Lecky Band"
        ["post_excerpt"]=>
        string(0) ""
        ["post_status"]=>
        string(7) "publish"
        ["comment_status"]=>
        string(6) "closed"
        ["ping_status"]=>
        string(6) "closed"
        ["post_password"]=>
        string(0) ""
        ["post_name"]=>
        string(18) "stephen-lecky-band"
        ["to_ping"]=>
        string(0) ""
        ["pinged"]=>
        string(0) ""
        ["post_modified"]=>
        string(19) "2016-06-24 12:53:08"
        ["post_modified_gmt"]=>
        string(19) "2016-06-24 20:53:08"
        ["post_content_filtered"]=>
        string(0) ""
        ["post_parent"]=>
        int(0)
        ["guid"]=>
        string(49) "http://riverrock.com/?post_type=event&p=7515"
        ["menu_order"]=>
        int(0)
        ["post_type"]=>
        string(5) "event"
        ["post_mime_type"]=>
        string(0) ""
        ["comment_count"]=>
        string(1) "0"
        ["filter"]=>
        string(3) "raw"
      }
      ["comment_count"]=>
      int(0)
      ["current_comment"]=>
      int(-1)
      ["found_posts"]=>
      int(35)
      ["max_num_pages"]=>
      int(0)
      ["max_num_comment_pages"]=>
      int(0)
      ["is_single"]=>
      bool(false)
      ["is_preview"]=>
      bool(false)
      ["is_page"]=>
      bool(false)
      ["is_archive"]=>
      bool(true)
      ["is_date"]=>
      bool(false)
      ["is_year"]=>
      bool(false)
      ["is_month"]=>
      bool(false)
      ["is_day"]=>
      bool(false)
      ["is_time"]=>
      bool(false)
      ["is_author"]=>
      bool(false)
      ["is_category"]=>
      bool(false)
      ["is_tag"]=>
      bool(false)
      ["is_tax"]=>
      bool(false)
      ["is_search"]=>
      bool(false)
      ["is_feed"]=>
      bool(false)
      ["is_comment_feed"]=>
      bool(false)
      ["is_trackback"]=>
      bool(false)
      ["is_home"]=>
      bool(false)
      ["is_404"]=>
      bool(false)
      ["is_embed"]=>
      bool(false)
      ["is_paged"]=>
      bool(false)
      ["is_admin"]=>
      bool(false)
      ["is_attachment"]=>
      bool(false)
      ["is_singular"]=>
      bool(false)
      ["is_robots"]=>
      bool(false)
      ["is_posts_page"]=>
      bool(false)
      ["is_post_type_archive"]=>
      bool(true)
      ["query_vars_hash":"WP_Query":private]=>
      string(32) "a5b5a222a65ab09d98d977aa6018d731"
      ["query_vars_changed":"WP_Query":private]=>
      bool(false)
      ["thumbnails_cached"]=>
      bool(false)
      ["stopwords":"WP_Query":private]=>
      NULL
      ["compat_fields":"WP_Query":private]=>
      array(2) {
        [0]=>
        string(15) "query_vars_hash"
        [1]=>
        string(18) "query_vars_changed"
      }
      ["compat_methods":"WP_Query":private]=>
      array(2) {
        [0]=>
        string(16) "init_query_flags"
        [1]=>
        string(15) "parse_tax_query"
      }
    }
    

    and here’s the result for “Lulu\’s Lounge”

    
    object(WP_Query)#4398 (48) {
      ["query"]=>
      array(4) {
        ["post_type"]=>
        string(5) "event"
        ["post_status"]=>
        string(7) "publish"
        ["posts_per_page"]=>
        int(-1)
        ["meta_query"]=>
        array(1) {
          [0]=>
          array(2) {
            ["key"]=>
            string(11) "event_venue"
            ["value"]=>
            string(14) "Lulu\'s Lounge"
          }
        }
      }
      ["query_vars"]=>
      array(65) {
        ["post_type"]=>
        string(5) "event"
        ["post_status"]=>
        string(7) "publish"
        ["posts_per_page"]=>
        int(-1)
        ["meta_query"]=>
        array(1) {
          [0]=>
          array(2) {
            ["key"]=>
            string(11) "event_venue"
            ["value"]=>
            string(14) "Lulu\'s Lounge"
          }
        }
        ["error"]=>
        string(0) ""
        ["m"]=>
        string(0) ""
        ["p"]=>
        int(0)
        ["post_parent"]=>
        string(0) ""
        ["subpost"]=>
        string(0) ""
        ["subpost_id"]=>
        string(0) ""
        ["attachment"]=>
        string(0) ""
        ["attachment_id"]=>
        int(0)
        ["name"]=>
        string(0) ""
        ["static"]=>
        string(0) ""
        ["pagename"]=>
        string(0) ""
        ["page_id"]=>
        int(0)
        ["second"]=>
        string(0) ""
        ["minute"]=>
        string(0) ""
        ["hour"]=>
        string(0) ""
        ["day"]=>
        int(0)
        ["monthnum"]=>
        int(0)
        ["year"]=>
        int(0)
        ["w"]=>
        int(0)
        ["category_name"]=>
        string(0) ""
        ["tag"]=>
        string(0) ""
        ["cat"]=>
        string(0) ""
        ["tag_id"]=>
        string(0) ""
        ["author"]=>
        string(0) ""
        ["author_name"]=>
        string(0) ""
        ["feed"]=>
        string(0) ""
        ["tb"]=>
        string(0) ""
        ["paged"]=>
        int(0)
        ["meta_key"]=>
        string(0) ""
        ["meta_value"]=>
        string(0) ""
        ["preview"]=>
        string(0) ""
        ["s"]=>
        string(0) ""
        ["sentence"]=>
        string(0) ""
        ["title"]=>
        string(0) ""
        ["fields"]=>
        string(0) ""
        ["menu_order"]=>
        string(0) ""
        ["embed"]=>
        string(0) ""
        ["category__in"]=>
        array(0) {
        }
        ["category__not_in"]=>
        array(0) {
        }
        ["category__and"]=>
        array(0) {
        }
        ["post__in"]=>
        array(0) {
        }
        ["post__not_in"]=>
        array(0) {
        }
        ["post_name__in"]=>
        array(0) {
        }
        ["tag__in"]=>
        array(0) {
        }
        ["tag__not_in"]=>
        array(0) {
        }
        ["tag__and"]=>
        array(0) {
        }
        ["tag_slug__in"]=>
        array(0) {
        }
        ["tag_slug__and"]=>
        array(0) {
        }
        ["post_parent__in"]=>
        array(0) {
        }
        ["post_parent__not_in"]=>
        array(0) {
        }
        ["author__in"]=>
        array(0) {
        }
        ["author__not_in"]=>
        array(0) {
        }
        ["ignore_sticky_posts"]=>
        bool(false)
        ["suppress_filters"]=>
        bool(false)
        ["cache_results"]=>
        bool(true)
        ["update_post_term_cache"]=>
        bool(true)
        ["update_post_meta_cache"]=>
        bool(true)
        ["nopaging"]=>
        bool(true)
        ["comments_per_page"]=>
        string(2) "50"
        ["no_found_rows"]=>
        bool(false)
        ["order"]=>
        string(4) "DESC"
      }
      ["tax_query"]=>
      object(WP_Tax_Query)#4483 (6) {
        ["queries"]=>
        array(0) {
        }
        ["relation"]=>
        string(3) "AND"
        ["table_aliases":protected]=>
        array(0) {
        }
        ["queried_terms"]=>
        array(0) {
        }
        ["primary_table"]=>
        string(8) "rr_posts"
        ["primary_id_column"]=>
        string(2) "ID"
      }
      ["meta_query"]=>
      object(WP_Meta_Query)#4396 (9) {
        ["queries"]=>
        array(2) {
          [0]=>
          array(2) {
            ["key"]=>
            string(11) "event_venue"
            ["value"]=>
            string(14) "Lulu\'s Lounge"
          }
          ["relation"]=>
          string(2) "OR"
        }
        ["relation"]=>
        string(3) "AND"
        ["meta_table"]=>
        string(11) "rr_postmeta"
        ["meta_id_column"]=>
        string(7) "post_id"
        ["primary_table"]=>
        string(8) "rr_posts"
        ["primary_id_column"]=>
        string(2) "ID"
        ["table_aliases":protected]=>
        array(1) {
          [0]=>
          string(11) "rr_postmeta"
        }
        ["clauses":protected]=>
        array(1) {
          ["rr_postmeta"]=>
          array(5) {
            ["key"]=>
            string(11) "event_venue"
            ["value"]=>
            string(14) "Lulu\'s Lounge"
            ["compare"]=>
            string(1) "="
            ["alias"]=>
            string(11) "rr_postmeta"
            ["cast"]=>
            string(4) "CHAR"
          }
        }
        ["has_or_relation":protected]=>
        bool(false)
      }
      ["date_query"]=>
      bool(false)
      ["request"]=>
      string(373) "SELECT   rr_posts.* FROM rr_posts  INNER JOIN rr_postmeta ON ( rr_posts.ID = rr_postmeta.post_id ) WHERE 1=1  AND ( 
      ( rr_postmeta.meta_key = 'event_venue' AND CAST(rr_postmeta.meta_value AS CHAR) = 'Lulu\\\'s Lounge' )
    ) AND rr_posts.post_type = 'event' AND ((rr_posts.post_status = 'publish')) GROUP BY rr_posts.ID ORDER BY rr_posts.menu_order, rr_posts.post_date DESC "
      ["posts"]=>
      array(0) {
      }
      ["post_count"]=>
      int(0)
      ["current_post"]=>
      int(-1)
      ["in_the_loop"]=>
      bool(false)
      ["comment_count"]=>
      int(0)
      ["current_comment"]=>
      int(-1)
      ["found_posts"]=>
      int(0)
      ["max_num_pages"]=>
      int(0)
      ["max_num_comment_pages"]=>
      int(0)
      ["is_single"]=>
      bool(false)
      ["is_preview"]=>
      bool(false)
      ["is_page"]=>
      bool(false)
      ["is_archive"]=>
      bool(true)
      ["is_date"]=>
      bool(false)
      ["is_year"]=>
      bool(false)
      ["is_month"]=>
      bool(false)
      ["is_day"]=>
      bool(false)
      ["is_time"]=>
      bool(false)
      ["is_author"]=>
      bool(false)
      ["is_category"]=>
      bool(false)
      ["is_tag"]=>
      bool(false)
      ["is_tax"]=>
      bool(false)
      ["is_search"]=>
      bool(false)
      ["is_feed"]=>
      bool(false)
      ["is_comment_feed"]=>
      bool(false)
      ["is_trackback"]=>
      bool(false)
      ["is_home"]=>
      bool(false)
      ["is_404"]=>
      bool(false)
      ["is_embed"]=>
      bool(false)
      ["is_paged"]=>
      bool(false)
      ["is_admin"]=>
      bool(false)
      ["is_attachment"]=>
      bool(false)
      ["is_singular"]=>
      bool(false)
      ["is_robots"]=>
      bool(false)
      ["is_posts_page"]=>
      bool(false)
      ["is_post_type_archive"]=>
      bool(true)
      ["query_vars_hash":"WP_Query":private]=>
      string(32) "070698c14cf3bd473111ab869f5b3bcf"
      ["query_vars_changed":"WP_Query":private]=>
      bool(false)
      ["thumbnails_cached"]=>
      bool(false)
      ["stopwords":"WP_Query":private]=>
      NULL
      ["compat_fields":"WP_Query":private]=>
      array(2) {
        [0]=>
        string(15) "query_vars_hash"
        [1]=>
        string(18) "query_vars_changed"
      }
      ["compat_methods":"WP_Query":private]=>
      array(2) {
        [0]=>
        string(16) "init_query_flags"
        [1]=>
        string(15) "parse_tax_query"
      }
    }
    

    I have just purchased ACF pro to see if it was the Date and Time Picker causing the conflict, but unfortunately even in Pro the script is now broken….

  • So I believe the content is there, it’s just not displaying it on the page. What could be the issue of it not outputting the information into HTML?

  • Hi @mpayumo

    Yes, it seems that the content is returned correctly. Next, could you please debug all key variables like $events.

    Also, could you please check if the repeater returns correct data like this:

    echo "<pre>";
    while ( $lulus->have_posts() ) : $lulus->the_post();
    
        $dates = get_field('dates');
        print_r($dates);
    
    endwhile;
    echo "</pre>";

    If that doesn’t work, could you please try to set the post ID manually like this:

    $dates = get_field('dates', 99);

    Where ’99’ is the post ID.

    Thanks 🙂

  • ok so when I dump $events, I get this:

    
    array(0) {
    }
    

    Does this mean that the data is not getting passed to $events?

    Repeater does return data with the code you provided, so I don’t think it’s the issue.

  • Hi @mpayumo

    It seems you’re using the old syntax for the repeater. Could you please try the new syntax and debug the variables like this:

    while ( have_rows('dates') ) : the_row();
     
        if(get_sub_field('event_date')){
            $post_id = get_the_ID(); // Set the current post ID
            $event_date = get_sub_field('event_date'); 
            $event_location = get_field('event_venue');
            $permalink = get_permalink();
            $thumbnail = get_the_post_thumbnail($post_id);
            $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id($post_id), 'thumbnail');
            $ticket = get_sub_field('event_ticket_link');
            $price = get_field('event_price');
            $title = get_the_title();
            $terms = get_the_terms($post_id, 'genre');
            $url = wp_get_attachment_image_src($id,'event-thumb', true);
    
            if($event_date >= $today){
                if(isset($events[$post_id])){
                    $events[$post_id]['dates'][] = $event_date;
                    if($event_date < $events[$post_id]['earliest_date']){
                        $events[$post_id]['earliest_date'] = $event_date;
                    }
                }
                else{
                    $events[$post_id] = array(
                        'title' => $title,
                        'permalink' => $permalink,
                        'thumb' => $thumbnail,
                        'thumbnail_src' => $thumbnail_src,
                        'price' => $price,
                        'ticket' => $ticket,
                        'dates' => array($event_date),
                        'earliest_date' => $event_date,
                        'terms' => $terms
                    );
    
                }
    
            }
            
            $i++;
        }
        
        echo "<pre>";
        
        echo "======== Start debugging the events variable ========";
        print_r($events[$post_id]);
        echo "======== End debugging the events variable ========";
        
        echo "======== Start debugging the events date ========";
        print_r(get_sub_field('event_date'));
        echo "======== End debugging the events date ========";
        
        echo "</pre>";
    
    endwhile;

    Thanks 🙂

  • I’ve replaced the code to have the new syntax as follows, but it still doesn’t show anthing in the events:

    
    <h1>Upcoming Events at Lulu's Lounge</h1>
    <div class="inner-box">
    <?php
    	$today = current_time( 'timestamp' ); // Get current unix timestamp
    	$nextWeek = $today + (8 * 24 * 60 * 60);
      $lulus = new WP_Query( array(
          'post_type' => 'event',
          'post_status' => 'publish',
          'posts_per_page' => -1,
          // 'orderby' => 'date',
          // 'order' => 'ASC',
          'meta_query' => array(
    	        array(
    	            'key'			=> 'event_venue',
    	            'value' 	=> array('Lulus')
    	        )
    	    )
      ) );
    
    if ( $lulus->have_posts() ) :
    	$i = 0;
    	$events = array();
    	while ( have_rows('dates') ) : the_row();
     
        if(get_sub_field('event_date')){
            $post_id = get_the_ID(); // Set the current post ID
            $event_date = get_sub_field('event_date'); 
            $event_location = get_field('event_venue');
            $permalink = get_permalink();
            $thumbnail = get_the_post_thumbnail($post_id);
            $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id($post_id), 'thumbnail');
            $ticket = get_sub_field('event_ticket_link');
            $price = get_field('event_price');
            $title = get_the_title();
            $terms = get_the_terms($post_id, 'genre');
            $url = wp_get_attachment_image_src($id,'event-thumb', true);
    
            if($event_date >= $today){
                if(isset($events[$post_id])){
                    $events[$post_id]['dates'][] = $event_date;
                    if($event_date < $events[$post_id]['earliest_date']){
                        $events[$post_id]['earliest_date'] = $event_date;
                    }
                }
                else{
                    $events[$post_id] = array(
                        'title' => $title,
                        'permalink' => $permalink,
                        'thumb' => $thumbnail,
                        'thumbnail_src' => $thumbnail_src,
                        'price' => $price,
                        'ticket' => $ticket,
                        'dates' => array($event_date),
                        'earliest_date' => $event_date,
                        'terms' => $terms
                    );
    
                }
    
            }
            
            $i++;
        } 
    	
    	echo "<pre>";
        
        echo "======== Start debugging the events variable ========";
        print_r($events[$post_id]);
        echo "======== End debugging the events variable ========";
        
        echo "======== Start debugging the events date ========";
        print_r(get_sub_field('event_date'));
        echo "======== End debugging the events date ========";
        
        echo "</pre>";
    	endwhile;
    	
    		usort($events, function($a, $b) {
    		  return $a['earliest_date'] - $b['earliest_date'];
    		});
    
    		$numEvents = count($events);
    		// echo $numEvents;
    			$counter = 0;
    			foreach($events as $event) {
    
    				$permalink = $event['permalink'];
    				$title = $event['title'];
    				$thumb = $event['thumb'];
    				$thumbnail_src = $event['thumbnail_src'];
    				$ticket = $event['ticket'];
    				$terms = $event['terms'];
    
    				if($counter <= 24){  ?>
    
    					<div class="event-fifty <?php echo 'counter'.$counter; ?>">
    						<div class="newImageBox" style="background:url(<?php echo $thumbnail_src[0]; ?>);background-size:cover;background-position:center center;"></div>
    						
    						<div class="lulu-text">
    							<h5><?php print $title; ?></h5>
    							<?php
    								// $terms = get_the_terms( $post->ID, 'genre' );
    								if ( $terms && ! is_wp_error( $terms ) ) :
    									$genres = array();
    									foreach ( $terms as $term ) {
    										$genres[] = $term->name;
    									}
    									$genre = join( " / ", $genres );
    								?>
    								<p class="location">
    									<?php echo $event_location; ?>
    								</p>
    								<p class="genre">
    									<?php echo $genre; ?>
    								</p>
    								<?php endif; ?>
    							<span class="time">
    									<?php
    					 					$numDates = count($event['dates']);
    		   								// print $numDates . ' dates... ';
    		   								$i = 0;
    		   								$img =  get_stylesheet_directory_uri();
    						 				
    										foreach ($event['dates'] as $date){
    						 					
    											if($numDates == 1){
    						 						$first_date = date('M. j', $date);
    				            					$first_date_day = date('l', $date);
    				            					
    												if(date('i', $date) != '00'){
    					   								$new_time = date('g:ia', $date);
    				   								}else{
    				   									$new_time = date('g:ia', $date);
    				   								}
    				   									echo $first_date_day. '<br />' . $first_date . '<br>' .$new_time;
    				   									// echo date('ga', $date);
    				   							}else{
    				   								
    												// more than 1 date
    				   								
    												if($i == $numDates-1){
    					   								
    													$first = date('F', $event['dates'][0]);
    					   								$last = date('F',$event['dates'][$i]);
    					   							
    													if(date('i', $date) != '00'){
    														$new_time = date('g:ia', $date);
    													}else{
    														$new_time = date('g:ia', $date);
    													}
    
    													$firstDayName = date('l', $event['dates'][0]);
    													$lastDayName = date('l', $event['dates'][$i]);
    														// echo $firstDayName . ' & ' . $lastDayName;
    														
    														
    													// check if all show day names are the same or not + assign all days names to an array
    													$allDaysNames = array();
    													$sameDaysNames = True;								  
    													for ($x = 0; $x < $numDates; $x++) {
    														$allDaysNames[$x] = date('D', $event['dates'][$x]);
    														if ($x > 0){
    															if ($sameDaysNames == True && $allDaysNames[$x] == $allDaysNames[$x-1]){
    																$sameDaysNames = True;												  
    															}else{
    																$sameDaysNames = False;
    															}
    														}
    													}
    													
    														
    	
    													if($last != $first){
    															// different months
    														if( $numDates > 2 ){
    															
    															if ($sameDaysNames == True){ //if all show day names are the same
    															   echo $firstDayName . 's <br>'; //echo just first day in plural
    															}else{
    																// echo all days
    																foreach ($allDaysNames as $e => $dayName){
    																	echo $dayName;
    																	if ($e != $numDates-1){
    																		echo ", ";										  
    																	}else{
    																		echo "<br>";
    																	}
    																}													  
    															}
    															
    															//echo 'Starts ' . $firstDayName . '<br>';
    														}else{
    															if( $firstDayName == $lastDayName ) { // wednesday & wednesday
    																echo $firstDayName . 's <br>';
    															}else{
    																echo $firstDayName . ' & '. $lastDayName . '<br>';
    															}
    														}
    													
    														//echo date('M. j -', $event['dates'][0]) . date('M. j, ', $event['dates'][$i]) . $new_time;																											
    														//echo "<br>";
    														
    														$x_month = "a";
    														$current_month = "a";
    														
    														for ($x = 0; $x < $numDates; $x++) {
    															
    															$current_month = date('F', $event['dates'][$x]);
    															
    															//echo $x_month . " | " . $current_month;
    															//echo "<br>";
    															
    															if ($current_month != $x_month) {																											
    																if ($x > 0) {
    																	echo " | ";
    																}
    																echo date('M. j', $event['dates'][$x]);
    															}else{
    																echo date(', j', $event['dates'][$x]);
    															}
    															
    															$x_month = date('F', $event['dates'][$x]);												
    														}
    														
    														echo "<br>" . $new_time;																																		
    
    					   								}else{
    
    														if( $numDates > 2 ){
    															
    															if ($sameDaysNames == True){ //if all show day names are the same
    															   echo $firstDayName . 's <br>'; //echo just first day in plural
    															}else{
    																// echo all days
    																foreach ($allDaysNames as $e => $dayName){
    																	echo $dayName;
    																	if ($e != $numDates-1){
    																		echo ", ";										  
    																	}else{
    																		echo "<br>";
    																	}
    																}													  
    															}												  
    												  
    												  			//echo 'Starts ' . $firstDayName . '<br>';
    
    														}else{
    															if( $firstDayName == $lastDayName ) { // wednesday & wednesday
    																echo $firstDayName . 's <br>';
    															}else{
    																echo $firstDayName . ' & '. $lastDayName . '<br>';
    															}
    														}
    														//echo date('M. j -', $event['dates'][0]). date('j, ', $event['dates'][$i]) . $new_time;
    														//echo "<br>";
    														for ($x = 0; $x < $numDates; $x++) {
    															if ($x == 0) {
    																echo date('M. j', $event['dates'][$x]);
    															}else{
    																echo date(', j', $event['dates'][$x]);
    															}															
    														}
    														echo "<br>" . $new_time;
    					   								}
    					   							}
    											}
    											$i++;
    										}
    					 				 ?>
    					 		</span>
    				 		</div>
    					</div>
    
    		<?php if( ($counter == 4) || ($counter == 9) || ($counter == 14) || ($counter == 19) ){
    					// if( $counter == 4)|| ($counter == 9)|| ($counter == 14) || ($counter == 19) ) {
    			
    						?>
    
    					<?php }; ?>
    					<?php  if( ($counter == $numEvents-1) || ($counter == 24) ) { ?>
    					<?php }; ?>
    		<?php //}; ?>
    
    	<?php $counter++; ?>
    
    	<?php }; ?>
    <?php }; // end foreach ?>
    <?php endif; ?>
    <?php 
    //	echo "<pre>";
    //	var_dump($events);
    //	echo "</pre>";
    ?>
    <?php wp_reset_postdata(); ?>
    </div>
    
  • Hi @mpayumo

    Could you please let me know the result of the following debug code?

    echo "<pre>";
        
    echo "======== Start debugging the events variable ========";
    print_r($events[$post_id]);
    echo "======== End debugging the events variable ========";
    
    echo "======== Start debugging the events date ========";
    print_r(get_sub_field('event_date'));
    echo "======== End debugging the events date ========";
    
    echo "</pre>";

    Also could you please let me know the result of this code:

    echo "<pre>";
    while ( $lulus->have_posts() ) : $lulus->the_post();
    
        $dates = get_field('dates');
        print_r($dates);
    
    endwhile;
    echo "</pre>";

    To avoid long reply, you can include only the first post or use https://gist.github.com/ instead.

    Thanks 🙂

  • The result of code 1
    ======== Start debugging the events variable ================ End debugging the events variable ================ Start debugging the events date ================ End debugging the events date ========

    I put the debug code at the end of the php file before
    <?php wp_reset_postdata(); ?>

    Debug code 2

  • Hi @mpayumo

    Thanks for testing it out.

    I believe the issue is because the $event_date variable is formatted but the $today variable is in timestamp format. That makes the comparison failed. Could you please try the following code?

    $event_date = get_sub_field('event_date', false, false);
    $event_date = strtotime($event_date);

    If that doesn’t work, could you please open a new ticket and provide temporary admin credentials to your site? You can open a new ticket here: https://support.advancedcustomfields.com/new-ticket. Also, please don’t forget to explain the issue again and provide the link to this thread.

    Thanks 🙂

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘After upgrade post aggregator not working’ is closed to new replies.