0
我希望能够理解为Wordpress功能提供的标准功能描述。具体而言,可能有人从here解释下面的例子:阅读Wordpress功能描述
使用
<?php wp_list_categories($args); ?>
默认使用
<?php $args = array(
'show_option_all' => ,
'orderby' => 'name',
'order' => 'ASC',
'show_last_update' => 0,
'style' => 'list',
'show_count' => 0,
'hide_empty' => 1,
'use_desc_for_title' => 1,
'child_of' => 0,
'feed' => ,
'feed_type' => ,
'feed_image' => ,
'exclude' => ,
'exclude_tree' => ,
'include' => ,
'current_category' => 0,
'hierarchical' => true,
'title_li' => __('Categories'),
'number' => NULL,
'echo' => 1,
'depth' => 0); ?>
我能猜出大部分,但特别是我无法猜测:
- 逗号后的空格是什么意思?空串?
- 什么是__?
- 如何调用函数?关键字像Python,位置参数还是必须传递数组?
- 关于Wordpress函数描述还有什么关于这个例子没有涉及的内容?
感谢,
克里斯
函数实际上并不需要数组,而是一个字符串。例如wp_list_categories('exclude = 4,7&title_li =')设置排除列表(4,7)和title_li为空 – Casebash 2009-09-26 12:56:23
查看wordpress源代码,它可以使用给定键的数组,给定成员变量或urlencoded样式字符串。 – 2009-09-26 13:04:17