1, 'order' => 'DESC', 'orderby' => 'date', 'category' => $category_id); $posts = get_posts($args); foreach ($posts as $p) { $latest = mysql2date('Y/m/d', $p->post_date); list($latest_year, $latest_month, $latest_day) = explode('/', $latest); } $min_date = ""; $args = array('posts_per_page' => 20, 'order' => 'DESC', 'orderby' => 'date', 'category' => $category_id); $posts = get_posts($args); foreach ($posts as $p) { $target_day = mysql2date('Y/m/d', $p->post_date); if ($date_count < 2) { if (strtotime($latest) === strtotime($target_day)) { } else if (strtotime($latest) > strtotime($target_day)) { if ($min_date !== $target_day) { $date_count++; $min_date = $target_day; list($min_year, $min_month, $min_day) = explode('/', $min_date); } } } } if (isset($min_year, $min_month, $min_day, $latest_year, $latest_month, $latest_day)) { $args = array( 'posts_per_page' => -1, 'date_query' => array( array( 'after' => array( 'year' => intval($min_year), 'month' => intval($min_month), 'day' => intval($min_day), ), 'before' => array( 'year' => intval($latest_year), 'month' => intval($latest_month), 'day' => intval($latest_day), ), 'inclusive' => true, ), ), 'order' => 'DESC', 'orderby' => 'date', 'category' => $category_id ); $posts = get_posts($args); foreach ($posts as $p) { ?>
ID); ?> post_date); ?>
post_title; ?>
post_content); ?>
  • サクラノ刻 -櫻の森の下を歩む-の製品紹介
  • 素晴らしき日々~不連続存在~10th Anniversary特別仕様版の製品紹介
  • 素晴らしき日々~不連続存在~ フルボイスHD版の製品紹介
  • サクラノ詩-櫻の森の上を舞う-の製品紹介
  •  向日葵の教会と長い夏休みの製品紹介
  • いきなりあなたに恋しているの製品紹介
  • 素晴らしき日々の製品紹介
  • H2O Completeの製品紹介
ケロQ・枕ツイッター
スワイプでも操作できるよ
過去記事