{"id":1132,"date":"2017-01-06T15:41:09","date_gmt":"2017-01-06T15:41:09","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=1132"},"modified":"2023-12-29T04:26:37","modified_gmt":"2023-12-29T04:26:37","password":"","slug":"show-results-facetwp-content-views-pro-layout","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/show-results-facetwp-content-views-pro-layout\/","title":{"rendered":"Show results of FacetWP"},"content":{"rendered":"<p>FacetWP plugin helps you to show facets and results for your WordPress content. The facets are shown using its shortcode <code>&#91;facetwp facet=\"my_facet\"&#93;<\/code>, the results are shown using this shortcode <code>&#91;facetwp template=\"my_template\"&#93;<\/code>.<br \/>\nYou can use Content Views Pro to <strong>display the results<\/strong> of FacetWP plugin in grid and another layout easily. Here are steps:<\/p>\n<p>1\/ Browse to Settings > FacetWP, click the \u201cTemplates\u201d tab, select the template which you are using, then copy and backup the code in &#8220;Display Code&#8221; to somewhere.<\/p>\n<p>2\/ Replace &#8220;Display Code&#8221; content with this:<\/p>\n<pre style=\"font-size:13px\">\n&lt;?php\nif ( shortcode_exists( 'pt_view' ) ) :\n\t$pids = array();\n\twhile ( have_posts() ) :\n\t\tthe_post();\n\t\t$pids[] = get_the_ID();\n\tendwhile;\n\techo $pids ? do_shortcode( '&#91;pt_view id=\"<strong>VIEW_ID<\/strong>\" post_id=\"' . implode( ',', $pids ) . '\"&#93;' ) : '';\nelse : ?&gt;\n\t<strong>Paste the backed up content (in step 1) here<\/strong>\n&lt;?php endif; ?&gt;<\/pre>\n<p>3\/ replace <strong>VIEW_ID<\/strong> with ID of the View (<em>which will be used to show FacetWP results<\/em>).<\/p>\n<blockquote><p>Notice: The results and pagination depend on the FacetWP plugin, therefore <code>Filter Settings, Pagination settings in View will not be applied<\/code>.<\/p><\/blockquote>\n<p>Thank you,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FacetWP plugin helps you to show facets and results for your WordPress content. The facets are shown using its shortcode &#91;facetwp facet=&#8221;my_facet&#8221;&#93;, the results are shown using this shortcode &#91;facetwp template=&#8221;my_template&#8221;&#93;. You can use Content Views Pro to display the results of FacetWP plugin in grid and another layout easily. Here are steps: 1\/ Browse &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/show-results-facetwp-content-views-pro-layout\/\"> <span class=\"screen-reader-text\">Show results of FacetWP<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[62],"doc_tag":[],"class_list":["post-1132","docs","type-docs","status-publish","hentry","doc_category-other-plugins"],"year_month":"2026-09","word_count":181,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"Other Plugins","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/other-plugins\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=1132"}],"version-history":[{"count":5,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1132\/revisions"}],"predecessor-version":[{"id":5482,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1132\/revisions\/5482"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=1132"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=1132"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}