WordPress:更改标签的 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();