foreach ループに次のコードがあります。
<?php $current_date[] = the_date('F Y'); ?>
私がやろうとしているのは、すべての日付を配列に集めることです
しかし、配列をprint_rしても何も表示されません...どうすればこれを修正できますか?
the_dateはエコーです。
<?php $current_date[] = the_date('F Y', '','', false); ?>
エコーをfalseオフにします。
http://codex.wordpress.org/Function_Reference/the_date
またはペッカが持っているようにget_the_date('F Y');