您现在的位置是:首页 > 网站制作 > WordpressWordpress
WordPress函数get_the_author()
杰帅2023-08-06【Wordpress】人已围观
简介get_the_author() 用于显示文章作者的名称的函数,必须使用在 the_loop 循环中。
介绍
get_the_author() 用于显示文章作者的名称的函数,必须使用在 the_loop 循环中。
使用
<?php $author = get_the_author(); ?>
参数
$deprecated
(string) (optional) Deprecated.
Default: ''
Returns
(string)
The author's display name.
示例
Grab the Author's 'Public' Name
Grabs the value in the user's Display name publicly as field.
<?php $author = get_the_author(); ?>
Tags:wordpress函数 WordPress建站
很赞哦! ()
相关文章
- WordPress函数wp_get_archives()
- WordPress函数WordPress禁用RSS Feed
- WordPress函数get_calendar()日历标签
- WordPress函数single_post_title()
- WordPress函数get_archives_link()
- WordPress函数get_archives_link()
- WordPress函数single_month_title()
- WordPress函数single_tag_title()
- WordPress函数single_term_title()
- WordPress函数post_type_archive_title()
随机图文
WordPress 页面模板(Page Template)下拉列表不显示的原因及解决方法
WordPress 的自定义页面模板是一个非常强大好用的功能,使用它新建一些静态页面(Page),添加上一些数据调用的函数,再在网页上做一个导航连接到对应的页面就可以实现很多自定义的功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格式。