{"id":51542,"date":"2026-04-14T15:06:50","date_gmt":"2026-04-14T15:06:50","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=51542"},"modified":"2026-04-14T15:46:46","modified_gmt":"2026-04-14T15:46:46","slug":"how-to-display-search-results-by-separate-post-types","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/","title":{"rendered":"How to Display Search Results by Separate Post Types"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"install-a-plugin-to-hide-empty-items\"><strong>Install a Plugin to Hide Empty Items<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>First, move to the Crocoblock\u2019s <a href=\"https:\/\/crocoblock.com\/freemium\/tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">Free DevTools Kit <\/a>page, press the \u201c<strong>JetTabs<\/strong>\u201d button, find the <em>Hide empty items<\/em><strong> <\/strong>add-on, and download it.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin-1024x640.webp\" alt=\"downloading the Jet Hide Empty Items plugin\" class=\"wp-image-51555\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">This plugin hides empty tabs if there is no data available; the workflow presented herein will perform the needed actions without this plugin.<\/p><\/div><\/div>\n\n\n\n<p>Then, install and activate this plugin as any other WordPress plugin. For example, you can do it <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-install-plugins-manually\/\" target=\"_blank\" rel=\"noreferrer noopener\">manually<\/a> or via the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-install-jetplugins-via-wordpress-dashboard\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress Dashboard<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/?attachment_id=51556\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-jet-hide-empty-items-plugin-installed-and-activated-1024x640.webp\" alt=\"the jet hide empty items plugin installed and activated\" class=\"wp-image-51556\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-jet-hide-empty-items-plugin-installed-and-activated-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-jet-hide-empty-items-plugin-installed-and-activated-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-jet-hide-empty-items-plugin-installed-and-activated-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-jet-hide-empty-items-plugin-installed-and-activated-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-jet-hide-empty-items-plugin-installed-and-activated-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-jet-hide-empty-items-plugin-installed-and-activated.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configure-the-jetsearch-settingsnbsp\"><strong>Configure the JetSearch Settings&nbsp;<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>First, move to the <strong><em>WordPress Dashboard &gt; Crocoblock &gt; JetPlugins Settings &gt; JetSearch<\/em><\/strong> tab. Here, select the \u201cDefault (ajax admin ajax.php request)\u201d <strong>Request Type<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-AJAX-request-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-AJAX-request-type-1024x640.webp\" alt=\"setting the AJAX request type\" class=\"wp-image-51557\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-AJAX-request-type-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-AJAX-request-type-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-AJAX-request-type-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-AJAX-request-type-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-AJAX-request-type-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-AJAX-request-type.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Then scroll down the settings page and add a link to a page that displays the search results. Finally, click the \u201c<strong>Save<\/strong>\u201d button at the bottom.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-custom-results-page-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-custom-results-page-settings-1024x640.webp\" alt=\"the custom results page settings\" class=\"wp-image-51558\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-custom-results-page-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-custom-results-page-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-custom-results-page-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-custom-results-page-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-custom-results-page-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-custom-results-page-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-queries-to-each-post-type\"><strong>Create Queries to Each Post Type<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>To display all post types (each in its own tab), we create separate queries for each: in this case, for regular WordPress posts, the \u201cFeatured Homes\u201d and the\u201cHot Deals\u201d <strong>CPTs<\/strong>.<\/p>\n\n\n\n<p>Move to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; <\/em><\/strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>Query Builder<\/em><\/strong><\/a><strong><em> <\/em><\/strong>tab. First, press the \u201c<strong>Add New<\/strong>\u201d button at the top of the <strong>Queries List<\/strong> tab and create a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/query-builder-posts-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Post Type Query<\/strong><\/a>: fill in the query\u2019s <strong>Name<\/strong>, set the \u201cPosts Query\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<p>Then move to the <strong><em>Posts Query &gt; General<\/em><\/strong> tab, press the \u201c<strong>Dynamic Tag<\/strong>\u201d icon near the <strong>Search Keyword<\/strong> drop-down, and select the \u201cQuery Variable\u201d option. After that, insert the <strong>Variable Name<\/strong> (the \u201cjet_search\u201d, in this case) in the appeared window and press the \u201c<strong>Apply<\/strong>\u201d button. Save the changes by pressing the \u201c<strong>Add\/Update Query<\/strong>\u201d button at the top of the page.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-posts-type-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-posts-type-query-settings-1024x640.webp\" alt=\"the posts type query settings\" class=\"wp-image-51559\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-posts-type-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-posts-type-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-posts-type-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-posts-type-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-posts-type-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-posts-type-query-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Similarly, create <strong>Post Type Queries <\/strong>for the <strong>CPT<\/strong> to display the search results. Here, we build another two queries for the \u201cFeatured Homes\u201d <strong>CPT<\/strong> and \u201cHot Deals\u201d <strong>CPT<\/strong>.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-listing-items\"><strong>Create Listing Items<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Navigate to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; <\/em><\/strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-template-in-elementor-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>Listings<\/em><\/strong><\/a><strong><em>\/Components<\/em><\/strong> directory. Here, create new listings by clicking the \u201c<strong>Add New<\/strong>\u201d button. Then, add the needed widgets and publish the listing.<\/p>\n\n\n\n<p>Build listing items individually for the posts and <strong>CPTs<\/strong> to be displayed in search results.<\/p>\n\n\n\n<p>In this case, we build the listing for the regular WordPress posts, the \u201cFeatured Homes\u201d <strong>CPT<\/strong>, and the \u201cHot Deals\u201d <strong>CPT<\/strong>.<\/p>\n\n\n\n<p>Read the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-a-listing-template-for-post-types\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create a Listing Template for Post Types in Elementor<\/strong><\/a><strong> <\/strong>tutorial to learn how to use the <strong><em>Listing template<\/em><\/strong> functionality from the <em>JetEngine<\/em> WordPress plugin to create listing templates for dynamic content.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-templates\"><strong>Create Templates<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>In this case, we first create a template for the \u201cFeatured Homes\u201d <strong>CPT<\/strong>.<\/p>\n\n\n\n<p>Create or open a page for each listing item and insert the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a><strong> <\/strong>widget into it. Then display the required listing item using it.&nbsp;<\/p>\n\n\n\n<p>The <a href=\"https:\/\/www.youtube.com\/watch?v=4jOW4buEHys\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create A Listing Grid in JetEngine<\/strong><\/a> video provides you with more details and explanations on configuring the widget\u2019s settings.<\/p>\n\n\n\n<p>In the next step, move to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/listing-grid-posts-query-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Query<\/strong><\/a> section, unroll it, and enable the <strong>Use Custom Query<\/strong> toggle. Then, select the previously created query in the newly appeared <strong>Custom Query<\/strong> drop-down list. Once you have completed it, save this page as a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jettabs\/jettabs-tabs-widget-how-to-arrange-the-content-built-with-elementor-inside-the-tabs\/\" target=\"_blank\" rel=\"noreferrer noopener\">template<\/a>. To do so, click the arrow near the \u201c<strong>Publish\u201d<\/strong> button and select the \u201c<strong>Save as Template<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-custom-query-settings-for-a-template.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-custom-query-settings-for-a-template-1024x640.webp\" alt=\"setting the custom query settings for a template\" class=\"wp-image-51560\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-custom-query-settings-for-a-template-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-custom-query-settings-for-a-template-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-custom-query-settings-for-a-template-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-custom-query-settings-for-a-template-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-custom-query-settings-for-a-template-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/setting-the-custom-query-settings-for-a-template.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Next, in the <strong>Save this Page to your library<\/strong> window, fill in the name of the template (Tab_template_houses, in this case) in the text field and tick the \u201cSite Template\u201d checkbox. After that, press the \u201c<strong>Save<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/saving-a-template-in-the-library.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/saving-a-template-in-the-library-1024x640.webp\" alt=\"saving a template in the library\" class=\"wp-image-51561\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/saving-a-template-in-the-library-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/saving-a-template-in-the-library-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/saving-a-template-in-the-library-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/saving-a-template-in-the-library-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/saving-a-template-in-the-library-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/saving-a-template-in-the-library.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the same way, create templates for displaying other posts and\/or CPT posts. Here, we created templates for the regular WordPress posts and the \u201cHot Deals\u201d <strong>CPT<\/strong>.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"build-the-search-pages\"><strong>Build the Search Pages<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>In this case, you need to create two pages: one for entering search queries and another for displaying the results. After submitting a search request on the first page, users are redirected to the second page, where the results are shown.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-the-search-page\"><strong>Build the search page<\/strong><\/h3>\n\n\n\n<p>Open another page in the Elementor editor. Add the <a href=\"https:\/\/crocoblock.com\/widgets\/ajax-search\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>AJAX Search<\/strong><\/a> widget and configure the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/ajax-search-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Search Form<\/a> settings.&nbsp;<\/p>\n\n\n\n<p>Then, unroll the <strong>Search Query<\/strong> tab. Enter the link to the search results page in the <strong>Custom Search Results URL<\/strong> field.<\/p>\n\n\n\n<p>Since the widget displays the same search results across all tabs (e.g., WordPress posts, \u201cFeatured Homes\u201d <strong>CPT<\/strong>, and \u201cHot Deals\u201d <strong>CPT<\/strong>), insert an unexisted widget ID in the <strong>Target Widget ID<\/strong> field (for example, \u201ctest\u201d).<\/p>\n\n\n\n<p>The next step is to select the posts to be displayed in the <strong>Source<\/strong> drop-down list (in this case, regular WordPress posts, the \u201cFeatured Homes\u201d <strong>CPT<\/strong>, and the \u201cHot Deals\u201d <strong>CPT<\/strong>).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/configuring-the-search-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/configuring-the-search-query-settings-1024x640.webp\" alt=\"configuring the search query settings\" class=\"wp-image-51562\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/configuring-the-search-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/configuring-the-search-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/configuring-the-search-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/configuring-the-search-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/configuring-the-search-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/configuring-the-search-query-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once done, add the <strong>Tabs<\/strong> widget from the <em>JetTabs<\/em> plugin. In the <strong>Items<\/strong> tab, click the \u201c<strong>Add Item<\/strong>\u201d button, set the tab <strong>Label<\/strong>, choose \u201cTemplate\u201d as the <strong>Content Type<\/strong>, and select the previously created Elementor template from the <strong>Choose Template<\/strong> drop-down.<\/p>\n\n\n\n<p>In particular, we create three tabs and assign labels to them based on the post type names: &#8220;Features Homes,\u201d \u201cHot Deals,\u201d and \u201cPosts.\u201d Then, we assign the previously built corresponding templates to each tab.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-tabs-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-tabs-widget-1024x640.webp\" alt=\"the items tab settings of the tabs widget\" class=\"wp-image-51563\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-tabs-widget-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-tabs-widget-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-tabs-widget-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-tabs-widget-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-tabs-widget-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-tabs-widget.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Finally, we save the page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-the-page-for-displaying-results\"><strong>Build the page for displaying results<\/strong><\/h3>\n\n\n\n<p>This page contains the <strong>Tabs <\/strong>widget with the same settings as the corresponding widget on the previous page.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-second-tabs-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-second-tabs-widget-1024x640.webp\" alt=\"the items tab settings of the second tabs widget\" class=\"wp-image-51564\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-second-tabs-widget-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-second-tabs-widget-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-second-tabs-widget-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-second-tabs-widget-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-second-tabs-widget-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/the-items-tab-settings-of-the-second-tabs-widget.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"test-the-flow\"><strong>Test the Flow<\/strong><\/h2>\n\n\n\n<p>Move to the front end of the page with the <strong>AJAX Search<\/strong> widget added (here, to the \u201cAJAX_search_page\u201d) and enter the required value in the search field of the widget.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/entering-a-search-key-into-the-search-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/entering-a-search-key-into-the-search-field-1024x640.webp\" alt=\"entering a search key into the search field\" class=\"wp-image-51565\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/entering-a-search-key-into-the-search-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/entering-a-search-key-into-the-search-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/entering-a-search-key-into-the-search-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/entering-a-search-key-into-the-search-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/entering-a-search-key-into-the-search-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/entering-a-search-key-into-the-search-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Alt text: entering a search key into the search field<\/p>\n\n\n\n<p>After pressing the \u201c<strong>Enter<\/strong>\u201d key, you will be redirected to the results page (the \u201cPage for Search Results\u201d), which displays the WordPress posts and <strong>CPT <\/strong>posts related to the specified value. Also, since the only \u201cFeatured Houses\u201d <strong>CPT<\/strong> and WordPress posts contain posts with the needed search key, the \u201cHot Dealts\u201d <strong>CPT<\/strong> tab will be hidden.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/displaying-search-results2-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/displaying-search-results2-1-1024x640.webp\" alt=\"displaying search results\" class=\"wp-image-51567\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/displaying-search-results2-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/displaying-search-results2-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/displaying-search-results2-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/displaying-search-results2-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/displaying-search-results2-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/displaying-search-results2-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>That\u2019s it. Now you know how to use the <em>JetSearch<\/em> plugin for WordPress to perform AJAX searching in different post types presented as different tabs on the same page and display the search results simultaneously, as well as to hide empty tabs if there is no data available.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to use the JetSearch plugin for WordPress for AJAX searching in different post types presented as different tabs on the same page and display the search results simultaneously, as well as to hide empty tabs if there is no data available.<\/p>\n","protected":false},"author":12,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[431],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Display Search Results by Separate Post Types \u4e00 JetSearch | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to use the JetSearch plugin for WordPress for AJAX searching in different post types presented as different tabs on the same page and display the search results simultaneously, as well as to hide empty tabs if there is no data available.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Display Search Results by Separate Post Types \u4e00 JetSearch | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the JetSearch plugin for WordPress for AJAX searching in different post types presented as different tabs on the same page and display the search results simultaneously, as well as to hide empty tabs if there is no data available.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-14T15:46:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin-1024x640.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/\",\"name\":\"How to Display Search Results by Separate Post Types \u4e00 JetSearch | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2026-04-14T15:06:50+00:00\",\"dateModified\":\"2026-04-14T15:46:46+00:00\",\"description\":\"Learn how to use the JetSearch plugin for WordPress for AJAX searching in different post types presented as different tabs on the same page and display the search results simultaneously, as well as to hide empty tabs if there is no data available.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Display Search Results by Separate Post Types\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Display Search Results by Separate Post Types \u4e00 JetSearch | Crocoblock","description":"Learn how to use the JetSearch plugin for WordPress for AJAX searching in different post types presented as different tabs on the same page and display the search results simultaneously, as well as to hide empty tabs if there is no data available.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/","og_locale":"en_US","og_type":"article","og_title":"How to Display Search Results by Separate Post Types \u4e00 JetSearch | Crocoblock","og_description":"Learn how to use the JetSearch plugin for WordPress for AJAX searching in different post types presented as different tabs on the same page and display the search results simultaneously, as well as to hide empty tabs if there is no data available.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/","og_site_name":"Help Center","article_modified_time":"2026-04-14T15:46:46+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/04\/downloading-the-Jet-Hide-Empty-Items-plugin-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/","name":"How to Display Search Results by Separate Post Types \u4e00 JetSearch | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2026-04-14T15:06:50+00:00","dateModified":"2026-04-14T15:46:46+00:00","description":"Learn how to use the JetSearch plugin for WordPress for AJAX searching in different post types presented as different tabs on the same page and display the search results simultaneously, as well as to hide empty tabs if there is no data available.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-display-search-results-by-separate-post-types\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Display Search Results by Separate Post Types"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/51542"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/12"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=51542"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=51542"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=51542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}