常用函数-is_taxonomy_hierarchical()

2条评论

常用函数-is_taxonomy_hierarchical()

说明

该函数是一个条件标签,检查分类法对象是否分级。函数是布尔值,使用全局变量,返回TRUE或FALSE(返回FALSE表明分类法不存在)。

首先要确定分类法是一个对象。获取对象后返回对象的层级值。

用法

<?php is_taxonomy_hierarchical( $taxonomy ) ?>

参数

$taxonomy

(字符串)(必需)分类法对象的名称

默认值:None

返回的值

(boolean)

分类法是否分层

示例

注释

修改记录

自2.3.0版本后

源文件

is_taxonomy_hierarchical()位于 wp-includes/taxonomy.php中。

相关资源

is_home(), is_front_page(), is_search(), is_404(), is_singular(), is_page(), is_attachment(), is_local_attachment(), is_single(), is_sticky(), is_archive(), is_category(), is_tag(), is_author(), is_date(), is_year(), is_month(), is_day(), is_time(), is_admin(), is_preview(), is_paged(), is_page_template(), is_plugin_page(), is_new_day(), is_feed(), is_trackback(), is_comments_popup(), comments_open(), pings_open(), is_taxonomy(), is_taxonomy_hierarchical()

#1
AHT8mx , [url=http://jbtxzcroimib.com/]jbtxzcroimib[/url], [link=http://tzkhakeyepod.com/]tzkhakeyepod[/link], http://pkuhhlsorxsk.com/
#2
JWWVnA rchbycvfukne

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.