BP_Search_CPT:: generate_html (template_type美元

描述

文件:bp-search /插件/ search-cpt / class-bp-search-cpt.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->cpt_name, 'post__in' => $post_id));$template = bp_locate_template("search/loop/{$this->cpt_name}.php") ?“循环/ {$ this - > cpt_name}”:“循环/后”;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($template, $template_type, false);$ this - > search_results(“项目”)[get_the_ID()) = $结果;}} wp_reset_postdata ();}

问题吗?

我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队