URLスタイルが : の場合に各カテゴリのランダムな投稿を表示する方法 : http://www.whatever.com/category/all-english/poetry/
、カテゴリリンクをクリックするたびに異なる投稿が表示されます
私はこれを試しました:
$cat=get_query_var( 'cat' );
query_posts('cat=$cat&orderby=rand');
if (have_posts()) :
if ( $is_top_single ) $GLOBALS['more'] = false; //important
while (have_posts()) : the_post(); ?>
しかし、結果は正しくありません。すべてのカテゴリのランダムな投稿が表示されます!