Bp_Search_Posts:: generate_html (template_type美元='')
描述
源
文件:bp-search /类/ class-bp-search-posts.php
$post_ids = array();Foreach ($this->search_results['items'] as $item_id=>$item_html){$post_ids[] = $item_id;$qry = new wp_query (array('post_type' =>$ this->pt_name, 'post__in'=>$post_id));if ($ qry - > have_posts()){虽然(qry美元- > have_posts ()) {qry - > the_post ();$result = array('id' => get_the_ID(), 'type' => $this->search_type, 'title' => get_the_title(), 'html' => bp_search_buffer_template_part('loop/post', $template_type, false);$ this - > search_results(“项目”)[get_the_ID()) = $结果;}} wp_reset_postdata ();}