WordPress获取指定文章类型的文章列表链接:get_post_type_archive_link

2022/07/13
服务器0元试用,首购低至0.6折

WordPress函数get_post_type_archive_link用于获取指定文章类型的文章列表链接。

get_post_type_archive_link( string $post_type )

函数参数

$post_type

字符串

文章类型

函数使用示例

<a href="<?php echo get_post_type_archive_link( 'books' ); ?>">图书列表</a>
learndash-corporate-training
本文由点金主题网发布 点金主题网提供WordPress主题开发、汉化、安装、优化及网站设计开发服务。 自2010年以来,我们一直在WordPress行业深耕。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注