在Wordpress中可以設置get_next_post中使用的類別。Wordpress get_next_post設置類別
我有可以有多個類別的文章。
在single.php頁面上顯示我想要顯示的帖子和prev帖子。
我有我想從在single.php中選擇類別讓我怎麼使用,在get_next_post
$the_cat = 'latest';
$next_post = get_next_post($in_same_term = true, $excluded_terms = '', $taxonomy = $the_cat);