您现在的位置是:首页 > 网站制作 > WordpressWordpress
WordPress函数post_type_archive_title()
杰帅2023-08-06【Wordpress】人已围观
简介介绍
介绍
post_type_archive_title()
是自定义文章类型 post type 的archive页面标题。显示 archive.php 和 archive-{posttype}.php 页面标题。
使用
<?php post_type_archive_title( $prefix, $display); ?>
参数
$prefix
(string) (optional) What to display before the title
Default: None
$display
(bool) (optional) Whether to display or retrieve title
Default: true
返回值
(string)
Title when retrieving, null when displaying or failure.
示例
显示自定义文章类型的archive标题。
<h1><?php post_type_archive_title(); ?></h1>
Tags:wordpress函数 WordPress建站 wordpress教程
很赞哦! ()
相关文章
- WordPress函数single_cat_title()
- WordPress建站:如何调用当前文章的前5篇和后5篇
- 如何制作wordpress 网站搜索功能| WordPress教程网
- WordPress函数:wp_get_archives根据日期显示日志归档详
- wordpress函数title()应用替换优化
- WordPress函数wp register sidebar widget添加自定义
- WordPress函数wp register sidebar widget添加自定义
- WordPress函数:get_permalink()获取文章页面的固定链接
- WordPress函数:add_meta_box(自定义添加Meta模块)
- WordPress函数:register post type (自定义文章类型)用
随机图文
wp_reset_postdata 和 wp_reset_query 的作用与区别
什么时候使用wp_reset_query,什么时候用wp_reset_postdata?wordpress 上传的图片不显示的问题 base64,data:image/gif
如何将WordPress文章迁移到Shopify:使用WP All Export插件的完整指南
如果您正在将WordPress网站迁移到Shopify,并希望将文章内容一起迁移,WP All Export插件是一个理想的解决方案。通过这款插件,您可以轻松导出WordPress中的文章,并将其转换为适合Shopify的CSV格式。WordPress 页面模板(Page Template)下拉列表不显示的原因及解决方法
WordPress 的自定义页面模板是一个非常强大好用的功能,使用它新建一些静态页面(Page),添加上一些数据调用的函数,再在网页上做一个导航连接到对应的页面就可以实现很多自定义的功