0
私の計画は、日付検索フォームを作ることですが、私は8月13日検索した場合、たとえば、それは何も表示されませんので、私は検索中にポスト日付を照会する必要があり、はワードプレスに日付別の投稿を検索
投稿の投稿日を検索する
私はこのコードを使用していますが、何も起こりません。私はこの記事を読んでみましたhttps://developer.wordpress.org/reference/functions/query_posts/、私は非常に申し訳ありません。私はwordpressとphpで新しく、ありがとうございました。私は、これは間違った
<?php
global $wp_query;
$args = array_merge($wp_query->query, array('posts_per_page' => 12,
'year' => $current_year,
'monthnum' => $current_month,
'order' => 'ASC'));
query_posts($args);
$x = 0;
while (have_posts()) : the_post(); ?>
だと思うと、これはあなたのような何か試してみてください、私の通常の検索
<?php
global $wp_query;
$args = array_merge($wp_query->query, array('posts_per_page' => 12));
query_posts($args);
$x = 0;
while (have_posts()) : the_post(); ?>