在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);