• array(array( ‘key’ => ‘artis’, ‘value’ => get_query_var( ‘s’ ), ‘compare’ => ‘LIKE’ )),’post_status’ => ‘publish’);
      }else{
      $args=array(‘s’ => get_query_var( ‘s’ ),’post_status’ => ‘publish’);
      }
      }else{
      die(‘No searching’);
      }
      $args[‘posts_per_page’]= 10;
      $args[‘paged’]= $paged;
      //var_dump($args);
      $the_query = new WP_Query( $args );
      ?>

      have_posts() ) : ?>
      have_posts() ){
      $the_query->the_post();
      ?>



    get_col($wpdb->prepare(”
    SELECT ID
    FROM $wpdb->posts, $wpdb->postmeta
    WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id
    AND $wpdb->postmeta.meta_key = ‘artis’
    AND SUBSTR($wpdb->postmeta.meta_value,1,1) = %s

    GROUP BY $wpdb->postmeta.meta_value
    ORDER BY $wpdb->postmeta.meta_value
    “,get_query_var( ‘s’ )));
    $args=array(
    ‘post__in’ => $postids,
    ‘post_type’ => ‘post’,
    ‘post_status’ => ‘publish’

    );
    $args[‘posts_per_page’]= 10;
    $args[‘paged’]= $paged;
    //var_dump($args);
    $the_query = new WP_Query( $args );
    ?>

      have_posts() ) : ?>
      have_posts() ){
      $the_query->the_post();
      ?>


    get_col($wpdb->prepare(”
    SELECT ID
    FROM $wpdb->posts, $wpdb->postmeta
    WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id
    AND $wpdb->postmeta.meta_key = ‘artis’
    AND $wpdb->postmeta.meta_value = %s
    ORDER BY $wpdb->posts.post_title”,get_query_var( ‘s’ )));
    $args=array(
    ‘post__in’ => $postids,
    ‘post_type’ => ‘post’,
    ‘post_status’ => ‘publish’

    );
    $args[‘posts_per_page’]= 10;
    $args[‘paged’]= $paged;
    //var_dump($args);
    $the_query = new WP_Query( $args );
    ?>

      have_posts() ) : ?>
      have_posts() ){
      $the_query->the_post();
      ?>