WordPress:更改标签';s url和按日期升序排列


WordPress: change a tag's url and order by date in ascending manner

我的WordPress网站上有以下标签:

http://www.example.com/tag/collection-100

并且我想将标签的url更改为http://www.example.com/legends以及使显示在该页面上的帖子在以降序显示的时刻按日期升序排列。

我已经搜索了可以做到这一点的插件,但我在WordPress的网站上找不到任何东西。

我还尝试创建一个新模板,并在其中使用以下代码:

query_posts( 'tag=collection-100&order=ASC' );

它获取前18个帖子,但分页不能正常工作,而是总是显示前18个文章。

非常感谢您的帮助:)

创建一个像"example-template.php"这样的自定义模板,并像这样编写查询:

get_header();
$loop = new WP_Query( array( 'post_type' => 'your-post-type',  'orderby' => 'date', 'order' => ASC ) ); 
while ( $loop->have_posts() ) : $loop->the_post(); 
    //print your needs
endwhile;
get_footer();