WordPress分类页面获取当前分类的ID
WordPress分类页面获取当前分类的ID方法一:$category = get_the_category();//默认获取当前所属分类 echo $category[0]->cat_name;//使用$categories->cat_name不能获得正确值,应该使用 $categories[0]->cat_name 输出第一项 //函数返回值:cat_ID - 分类ID
WordPress主题开发:创建自定义文章类型post-type(4)——怎样添加分类功能
本文讨论主题:WordPress主题开发:创建自定义文章类型post-type(4)——怎样添加分类...
wordpress主题开发:创建自定义文章类型post-type(3)——如何设置固定链接
本文的主题是wordpress主题开发:创建自定义文章类型post-type(3)——如何设置固定链...
wordpress主题开发:创建自定义文章类型post-type(2)——register_post_type()函数参数
在上一章中,我们register_post_type()函数,创建了一个wordpress主题自定义文章类...
使用add_rewrite_rule()为WordPress添加自定义URL重写规则
本文主要讲解如何使用add_rewrite_rule()为WordPress添加自定义URL重写规则。
...
Advanced Custom Fields 高级自定义字段插件详细使用教程
Advanced Custom Fields 高级自定义字段插件详细使用教程。Advanced Custom Fields...
