建站教程共373篇 第10页
从基础到进阶,一步一步的学习怎么做好一个网站,从基础的环境搭建,到选择源码,再到搜索引擎的优化,还有其它各类相关的知识及注意事项。
WordPress函数single_term_title()-龙网 - 教程、网赚、安全、免费资源

WordPress函数single_term_title()

介绍 返回当前页面标题。 使用 <?php single_term_title( $prefix, $display ); ?> 参数 $prefix (字符串)(可选)要在标题前输出的文本。 默认值:无 注意:如果 $display 参数为 fals...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph2个月前
06229
WordPress函数single_tag_title()-龙网 - 教程、网赚、安全、免费资源

WordPress函数single_tag_title()

介绍 显示tag页面的标题。 使用 <?php single_tag_title( $prefix, $display ); ?> 默认 <?php single_tag_title(); ?> 参数 $prefix (字符串)(可选)要在标题前输出的文本。 默...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph2个月前
010299
WordPress函数single_month_title()-龙网 - 教程、网赚、安全、免费资源

WordPress函数single_month_title()

介绍 single_month_title() 用于返回“月”、“年”值,在date.php的archive页面,其他页面不支持。 使用 <?php single_month_title( $prefix, $display ) ?> 默认 <?php single_month...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph2个月前
03987
WordPress函数get_archives_link()-龙网 - 教程、网赚、安全、免费资源

WordPress函数get_archives_link()

描述 根据预定义或自定义代码检索存档链接内容。 格式可以是四种样式之一。head 元素的“link”、select 元素中使用的“option”、列表中使用的“html”(ol 或 ul HTML 元素)。还支持使用 bef...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph2个月前
055128
WordPress函数single_post_title()-龙网 - 教程、网赚、安全、免费资源

WordPress函数single_post_title()

介绍 显示single、page页面标题,这个标签不必在the_loop循环中,只要在single、page页面即可。 使用 <?php single_post_title(); ?> 参数 $prefix (string) (可选) 显示在标题前的文本。...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph2个月前
031125
WordPress函数get_calendar()日历标签-龙网 - 教程、网赚、安全、免费资源

WordPress函数get_calendar()日历标签

介绍 get_calendar()是一个WordPress日历标签,可以在 WordPress主题 的任意模板中使用,并不需要在 the_loop 中。 默认会显示当前年月的一个日历,并且会在有日志的日期中带上日期的 date 链接...
WordPress函数WordPress禁用RSS Feed-龙网 - 教程、网赚、安全、免费资源

WordPress函数WordPress禁用RSS Feed

WordPress提供了很多RSS Feed的功能,除了全站文章订阅,还有评论订阅,然后目前使用RSS订阅功能的人越来越少,加快WordPress的运行效率,可以直接禁用RSS Feed。 在 WordPress主题 的 function...
WordPress函数wp_get_archives()-龙网 - 教程、网赚、安全、免费资源

WordPress函数wp_get_archives()

WordPress的widget里提供的文章索引模板,他可以让你的WordPress博客的侧边栏按月度存档,方便读者,方便搜索引擎。但默认显示的是所有月度归档,这对有着两年,甚至两年以上历史的老博客来说,...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph2个月前
057126
WordPress函数get_the_author()-龙网 - 教程、网赚、安全、免费资源

WordPress函数get_the_author()

介绍 get_the_author() 用于显示文章作者的名称的函数,必须使用在 the_loop 循环中。 使用 <?php $author = get_the_author(); ?> 参数 $deprecated (string) (optional) Deprecated. De...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph2个月前
04939
WordPress函数calendar_week_mod()-龙网 - 教程、网赚、安全、免费资源

WordPress函数calendar_week_mod()

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

WordPress函数the_author_meta()

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

WordPress函数the_author_posts()

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

WordPress函数the_author_posts_link()

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

WordPress函数the_author()

介绍 the_author() 是显示作者公开名的函数,此函数必须在 the_loop 循环标签内使用才有效。 使用 <?php the_author(); ?> 示例 显示公开名: <p>This post was written by <?ph...
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...
WordPress函数the_author_link()-龙网 - 教程、网赚、安全、免费资源

WordPress函数the_author_link()

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

WordPress函数get_bloginfo

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