在 \WWW\wordpress\wp-content\plugins\bbpress\includes\topics\template.php 146 行时有定义
$default = array(
‘post_type’ => bbp_get_topic_post_type(),
‘is_essence’ => 1,
‘post_parent’ => $default_post_parent, // Forum ID
‘meta_key’ => ‘_bbp_last_active_time’, // Make sure topic has some last activity time
‘meta_type’ => ‘DATETIME’,
‘orderby’ => ‘meta_value’, // ‘meta_value’, ‘author’, ‘date’, ‘title’, ‘modified’, ‘parent’, rand’,
‘order’ => ‘DESC’, // ‘ASC’, ‘DESC’
‘posts_per_page’ => bbp_get_topics_per_page(), // Topics per page
‘paged’ => bbp_get_paged(), // Page Number
‘show_stickies’ => $default_show_stickies, // Ignore sticky topics?
‘max_num_pages’ => false, // Maximum number of pages to show
// Conditionally prime the cache for related posts
‘update_post_family_cache’ => true
);
我加了一个 条件 ‘is_essence’ => 1, 怎么一直获取不到只有 ‘is_essence’ =为 1 的数据。