Warning: Use of undefined constant post_type - assumed 'post_type' (this will throw an Error in a future version of PHP) in /home/hapskyoto/haps-kyoto.com/public_html/our-school/wp-content/themes/onesie/404.php on line 21
//年・月を取得 $get_year = intval( get_query_var('year')); $get_month = sprintf("%02d", intval( get_query_var('monthnum'))); //タイムスタンプに変換 $current_date = strtotime($get_year. '/'.$get_month. '/'. '01'); //次の月取得 $next_date = strtotime('+1 month', $current_date); //date型に変換 $current_date = date('Y-m-d', $current_date); $next_date = date('Y-m-d', $next_date); $query = new WP_Query( array( 'post_type' => 'events', 'post_status' => 'publish', 'meta_key' => 'event_start', /* event_startメタキー */ 'order' => 'ASC', 'orderby' => 'meta_value', /* ソートの値を指定 */ 'meta_query' => array( array( 'key' => 'event_start', 'value' => $current_date, 'compare' => '>=', 'order' => 'ASC', ), array( 'key' => 'event_start', 'value' => $next_date, 'compare' => '<', 'order' => 'ASC', ), ), 'paged' => get_query_var('paged') ));

It looks like nothing was found at this location. Maybe try one of the links below or a search?

最近の投稿


Fatal error: Uncaught Error: Call to undefined function onesie_categorized_blog() in /home/hapskyoto/haps-kyoto.com/public_html/our-school/wp-content/themes/onesie/404.php:36 Stack trace: #0 /home/hapskyoto/haps-kyoto.com/public_html/our-school/wp-includes/template-loader.php(106): include() #1 /home/hapskyoto/haps-kyoto.com/public_html/our-school/wp-blog-header.php(19): require_once('/home/hapskyoto...') #2 /home/hapskyoto/haps-kyoto.com/public_html/our-school/index.php(17): require('/home/hapskyoto...') #3 {main} thrown in /home/hapskyoto/haps-kyoto.com/public_html/our-school/wp-content/themes/onesie/404.php on line 36