详解WordPress开发中用于获取分类及子页面的函数用法
《详解WordPress开发中用于获取分类及子页面的函数用法》要点: PHP应用get_category 函数描述 函数使用 get_category( $cat,$out,$filter ) 参数描述 stdClass Object ( //ID 分类和标签混编 [term_id] => 5 //分类名 [name] => Cat Name //分类别名 [slug] => cat //N/A [term_group] => 0 //同 term_id [term_taxonomy_id] => 5 //分类法,也就是分类还是标签 [taxonomy] => category //分类描述 [description] => //父级ID [parent] => 70 //N/A [count] => 0 //分类ID [cat_ID] => 5 //N/A [category_count] => 0 //同 description [category_description] => //同 name [cat_name] => Category Name //同 slug [category_nicename] => category-name //同 parent [category_parent] => 70 ) get_children() 希望这篇文章的一些内容解释对您有所赞助. get_children函数意义 函数用法 $args = array( 'post_parent' => $postid,'post_type' => 'attachment','numberposts' => 1,'post_mime_type' => 'image',); if ($images = get_children($args)) 参数解释 $args[‘post_parent'] $args[‘post_type'] $args[‘post_status'] $args[‘post_mime_type'] $output 《详解WordPress开发中用于获取分类及子页面的函数用法》是否对您有启发,欢迎查看更多与《详解WordPress开发中用于获取分类及子页面的函数用法》相关教程,学精学透。编程之家 52php.cn为您提供精彩教程。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |