質問: $thumbnail[0]; } // - output - ?> <div>show the goodies</div> <?php endforeach; ?> <?php else : ?> <h2 class="center">not found</h2> <p class="center">sorry, but you are looking for something that isn't here.</p> <?php endif; ?> 前もって感謝します :)
回答: このクエリに近い(複数のメタキーを選択できる場合はdunno - orderbyを使えば可能です):$tf_events_query = new wp_query( array( 'post_type' => 'tf_events' ,'posts_per_page' => '30' // ordered by meta_valu and date ,'orderby' => 'meta_value date' // or if the meta key value is numeric ordered by num meta value and date // ,'orderby' => 'meta_value_num date' ,'meta_key' => 'tf_events_startdate' ,'order' => 'asc' ) );