函数共65篇 第3页
WordPress函数calendar_week_mod()-龙网 - 教程、网赚、安全、免费资源

WordPress函数calendar_week_mod()

描述 获取从一周开始的几天。 使用 <?php calendar_week_mod( $num ); ?> 参数 $num (int) (必填) 天数 Default: None 返回 (int) 获取从一周开始的几天。 示例 “获取从一周开始的几天”...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
010430
WordPress函数get_the_author_link()-龙网 - 教程、网赚、安全、免费资源

WordPress函数get_the_author_link()

介绍 get_the_author_link() 与 the_author_link() 是相对应的函数,只不过 get_the_author_link() 只是获取,不做输出,要做输出,需要用 echo 进行输出。 get_the_author_link() 是获取文章作...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
06667
WordPress函数the_author_meta()-龙网 - 教程、网赚、安全、免费资源

WordPress函数the_author_meta()

介绍 the_author_meta() 显示用户资料的函数,如果该函数在 the_loop 中,那么将显示loop中的用户资料,如果在 the_loop 之外使用,必须指定用户ID才能输出内容。 使用 <?php the_author_met...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
035131
WordPress函数the_author_posts()-龙网 - 教程、网赚、安全、免费资源

WordPress函数the_author_posts()

介绍 the_author_posts() 显示作者已发布的文章数量,必须使用在 the_loop 中。 使用 <?php the_author_posts(); ?> 示例 显示作者名称和已经发布的文章数量。 <p> <?php the_au...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
071115
WordPress函数the_author_posts_link()-龙网 - 教程、网赚、安全、免费资源

WordPress函数the_author_posts_link()

介绍 the_author_posts_link() 显示作者所有文章的链接,链接的文字是作者的“公开显示名”。链接地址会链接到 作者模板 ,如果没有作者模板就会更具 模板层次结构 用其他模板来显示。该函...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
05469
WordPress函数wp_dropdown_users()-龙网 - 教程、网赚、安全、免费资源

WordPress函数wp_dropdown_users()

介绍 创建一个下拉选择输出所有作者。 使用 <?php wp_dropdown_users( $args ); ?> 默认使用 <?php $args = array( 'show_option_all' => null, // string 'show_option_none' =>...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
068128
WordPress函数the_author()-龙网 - 教程、网赚、安全、免费资源

WordPress函数the_author()

介绍 the_author() 是显示作者公开名的函数,此函数必须在 the_loop 循环标签内使用才有效。 使用 <?php the_author(); ?> 示例 显示公开名: <p>This post was written by <?ph...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
07090
WordPress注册js函数wp_enqueue_script()-龙网 - 教程、网赚、安全、免费资源

WordPress注册js函数wp_enqueue_script()

wp_enqueue_script( string $handle, string $src = '', array $deps = array(), string|bool|null $ver = false, bool $in_footer = false ) wp_enqueue_script() 是WordPress注册和引用一个js...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
0100125
WordPress函数the_author_link()-龙网 - 教程、网赚、安全、免费资源

WordPress函数the_author_link()

介绍 the_author_link() 是显示文章作者的网站链接,该链接会加在 the_author() 显示的公开名秒文本中。 网站链接来自 仪表盘 -> 用户 -> 我的个人资料 中的“站点”所填写的值。 并且该...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
04492
WordPress函数get_bloginfo-龙网 - 教程、网赚、安全、免费资源

WordPress函数get_bloginfo

get_bloginfo( string $show = '', string $filter = 'raw' ) 描述 get_bloginfo()是取值,bloginfo()是输出。 $show 包含的可能值: 'name' - 网站标题(在设置>常规中设置) 'description'...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
05297
WordPress函数get_current_blog_id()-龙网 - 教程、网赚、安全、免费资源

WordPress函数get_current_blog_id()

get_current_blog_id()在WordPress主题开发过程中,多站点的情况下用的比较多。 介绍 返回当前WordPress的ID。 使用 <?php get_current_blog_id() ?> 参数 无。 返回值 (integer) Blog id...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
06864
WordPress函数wp_title()-龙网 - 教程、网赚、安全、免费资源

WordPress函数wp_title()

介绍 wp_title( string $sep = '»', bool $display = true, string $seplocation = '' ) wp_title() 是用于显示页面标题的函数,通常和 bloginfo() 一起用。 参数 $sep (string) (Optional) de...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
046139
WordPress函数wp_meta()-龙网 - 教程、网赚、安全、免费资源

WordPress函数wp_meta()

介绍 WordPress默认提供了很多小组件,“功能”小组件就是其中的一个。通过wp_meta这个动作(action),我们就可以来定制自己的小工具。 使用 <?php wp_meta(); ?> 示例 添加一个自己收藏...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
061108
WordPress函数bloginfo()-龙网 - 教程、网赚、安全、免费资源

WordPress函数bloginfo()

介绍 用于显示博客信息的函数。 参数 $show (string) (选填) 显示网站的信息。 默认返回值: '' 使用 参数配置: 'name'-显示 设置 - 常规 - 站点标题 'description'-显示 设置 - 常规 - 副标题 ...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
010510
WordPress函数wp_register()-龙网 - 教程、网赚、安全、免费资源

WordPress函数wp_register()

描述 如果用户已登录,此标记将显示“站点管理”链接,如果用户未登录,则显示“注册”链接。 如果未选中管理 > 设置 > 常规 > 成员资格:任何人都可以注册框,则不提供“注册”链接。...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
067206
WordPress函数 get_header()-龙网 - 教程、网赚、安全、免费资源

WordPress函数 get_header()

介绍 包含当前主题目录中的header.php模板文件。 如果指定了名称,则将包含专用的标题头 - {name} .php。 如果主题不包含header.php文件,则将包含默认主题wp-includes/theme-compat/header.php...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
08491
WordPress函数 get_sidebar()-龙网 - 教程、网赚、安全、免费资源

WordPress函数 get_sidebar()

介绍 主题边栏模板调用函数,可以调用一些特别的边栏'sidebar-special.php',如这样。 参数 $name (string) (Optional) The name of the specialised sidebar. Default value: null 示例 调用你...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
010171
WordPress函数 get_footer()-龙网 - 教程、网赚、安全、免费资源

WordPress函数 get_footer()

介绍 包含当前主题目录中的footer.php模板文件。 如果指定了名称,则将包含专门的页脚 -{name}.php。 如果主题不包含footer.php文件,则将包含默认主题 wp-includes/theme-compat/footer.php 中...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
09356
WordPress函数get_template_part()-龙网 - 教程、网赚、安全、免费资源

WordPress函数get_template_part()

介绍 get_template_part( string $slug, string $name = null ) get_template_part()是用于调用主题目录中的文件。 参数 $slug (string) (必填) The slug name for the generic template. $name...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
08944
WordPress函数get_search_form()-龙网 - 教程、网赚、安全、免费资源

WordPress函数get_search_form()

get_search_form( bool $echo = true ) 显示搜索框。 介绍 默认会调用 searchform.php 文件,如果主题中没有这个文件,会使用 wp-includes/general-template.php 中的 get_search_form 函数。 ...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
040135