函数共65篇 第2页
WordPress分类列表函数:wp_list_categories用法及参数详解举例-龙网 - 教程、网赚、安全、免费资源

WordPress分类列表函数:wp_list_categories用法及参数详解举例

wp_list_categories 函数 是 WordPress 中用来罗列系统中分类链接的函数,将分类以列表的形式显示为链接。点击分类的链接,就可以访问该分类下的所有文章的存档页面。 注意: 1. wp_list_catego...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
051120
WordPress友情链接函数wp_list_bookmarks使用方法举例详解-龙网 - 教程、网赚、安全、免费资源

WordPress友情链接函数wp_list_bookmarks使用方法举例详解

友情链接对搜索引擎优化的作用是非常重要的,首页和内容页的权重不一样,通常将友情链接放在首页底部,或者将友情链接放在侧边栏,全站显示或只在首页显示,对友情链接需要做个性化的输出,要使...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
010193
WordPress判断文章分类函数in_category和is_category区别-龙网 - 教程、网赚、安全、免费资源

WordPress判断文章分类函数in_category和is_category区别

WordPress中通常使用判断文章所属分类函数 in_category,来实现文章页自定义,但很多时候我们会和is_category函数混淆,特意做个总结和举例,希望对你制作wordpress主题有所帮助。 概述 in_cate...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
04286
WordPress函数:add_theme_support()让你的主题支持特定的功能-龙网 - 教程、网赚、安全、免费资源

WordPress函数:add_theme_support()让你的主题支持特定的功能

add_theme_support() 用于在我们的当前使用的主题添加一些特殊的功能,函数一般写在主题的functions.php文件中,当然也可以再插件中使用钩子来调用该函数,如果是挂在钩子上,那他必须挂在after...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
0104111
WordPress侧边dynamic_sidebar()函数举例-龙网 - 教程、网赚、安全、免费资源

WordPress侧边dynamic_sidebar()函数举例

在开发wordpress主题的过程中,要涉及到侧边栏工具的开发,比如添加最近文章,文章归档,最新评论,标签云,搜索框,类别,链接表等,最新访客,统计,广告,订阅等等,这就用到了ynamic_sideba...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
07184
WordPress使用函数wp_register_sidebar_widget添加随机文章小工具-龙网 - 教程、网赚、安全、免费资源

WordPress使用函数wp_register_sidebar_widget添加随机文章小工具

wp_register_sidebar_widget函数让我们很轻松的在边栏添加小工具,做一个随机文章的小工具,当然这个函数添加的小工具只能使用一次,你如果反复多次多边栏调用,采用下面的方法。 WordPress 开...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
09753
WordPress函数wp register sidebar widget添加自定义小工具-龙网 - 教程、网赚、安全、免费资源

WordPress函数wp register sidebar widget添加自定义小工具

wp register sidebar widget 取代了register_sidebar_widget函数,它提供了函数接口,方便的制作小工具。 用法 <?php wp_register_sidebar_widget( $id, $name, $output_callback, $options,...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
03667
WordPress函数title()应用替换优化-龙网 - 教程、网赚、安全、免费资源

WordPress函数title()应用替换优化

为了文章更好的被搜索引擎收录,有时需要WordPress主题根据不同的页面动态生成文章标题,这时要使用函数wp_title()函数,优化我们的页面,更利于seo。 函数原型 <?php wp_title( $sep, $echo...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
09754
WordPress函数:wp_get_archives根据日期显示日志归档详解举例-龙网 - 教程、网赚、安全、免费资源

WordPress函数:wp_get_archives根据日期显示日志归档详解举例

wp_get_archives函数可以让是实现年度归档、月度归档、周归档、日归档等等,配合 Limit 使用限定显示数量,甚至可以制作网站地图!wp_get_archives()可用在模板中的任何位置。 WordPress的widge...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
035150
WordPress函数single_cat_title()-龙网 - 教程、网赚、安全、免费资源

WordPress函数single_cat_title()

single_cat_title( string $prefix = '', bool $display = true ) 介绍 显示分类页面的标题,默认无前后空格。 参数 $prefix (string) (Optional) 显示在标题前面,默认为空。 Default value: '...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
08651
WordPress函数post_type_archive_title()-龙网 - 教程、网赚、安全、免费资源

WordPress函数post_type_archive_title()

介绍 post_type_archive_title() 是自定义文章类型 post type 的archive页面标题。显示 archive.php 和 archive-{posttype}.php 页面标题。 使用 <?php post_type_archive_title( $prefix,...
Seraph的头像-龙网 - 教程、网赚、安全、免费资源钻石会员Seraph7个月前
062122
WordPress函数single_term_title()-龙网 - 教程、网赚、安全、免费资源

WordPress函数single_term_title()

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

WordPress函数single_tag_title()

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

WordPress函数single_month_title()

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

WordPress函数get_archives_link()

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

WordPress函数single_post_title()

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

WordPress函数get_calendar()日历标签

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

WordPress函数WordPress禁用RSS Feed

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

WordPress函数wp_get_archives()

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

WordPress函数get_the_author()

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