{"id":13137,"date":"2022-06-14T16:20:53","date_gmt":"2022-06-14T16:20:53","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=13137"},"modified":"2023-07-19T09:53:41","modified_gmt":"2023-07-19T09:53:41","slug":"how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/","title":{"rendered":"How to Set the Source in AJAX Search"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>With the <em>JetSearch <\/em>plugin, it\u2019s possible to use the <strong>AJAX Search<\/strong> widget to set the right source that will be displayed in the search results.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"working-on-the-results-area-in-elementor\">Working on the Results Area in Elementor<\/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 case you are working with the Elementor Page Builder, open the needed page and move to the <strong>Source <\/strong>field in the <strong>Search Query <\/strong>section. Click on the field bar to see the list of available options.<\/p>\n\n\n\n<p>You can conduct a search among posts, pages, WooCommerce products, and CPTs created with <em>JetEngine<\/em>.<\/p>\n\n\n\n<p>Firstly, let\u2019s check what result we will get when the field is left empty. It should retrieve the results from all the available sources.<\/p>\n\n\n\n<p>We press the \u201c<strong>Publish\/Update<\/strong>\u201d button and head to the front end.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/presented-sources-in-elementor.png\" alt=\"presented sources in elementor\">\n\n\n\n<p>Here we can see that once the search request has been made, there are different results shown. In our case, you can observe a product, a post, and a page.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/search-with-no-source-selected-on-the-front-end.png\" alt=\"search with no source selected on the front end\">\n\n\n\n<p>Return to the editor to set the different source; this time, it will be the only one. For instance, \u201cProducts\u201d.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/products-source-in-elementor.png\" alt=\"products source in elementor\">\n\n\n\n<p>Take a look at the edited page and the search results for now.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/search-with-products-source.png\" alt=\"search with products source\">\n\n\n\n<p>The last setup we will look at is selecting several sources. As an example, we choose WordPress \u201cPosts\u201d and a CPT we have built with <em>JetEngine<\/em>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/two-sources-selected-in-elementor.png\" alt=\"two sources selected in elementor\">\n\n\n\n<p>Looking at the front end, we can observe two CPT posts and one usual WordPress post in the results area.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/search-with-two-sources-selected.png\" alt=\"search with two sources selected\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adjusting-the-search-area-with-block-editor\">Adjusting the Search Area with Block Editor<\/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>Go to the page where you use the <strong>AJAX Search<\/strong> block and open the settings. Here you can see many different options for customizing the block as you wish, just like in Elementor. In the <strong>Search Query<\/strong> tab, there is the field where you should select the appropriate post type in which you want to implement the search.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/no-source-selected-in-gutenberg.png\" alt=\"no source selected in gutenberg\">\n\n\n\n<p>The <strong>Source <\/strong>field here works the samely as in Elementor. You can leave it empty to retrieve all the available formats, select one source, or add several.<\/p>\n\n\n\n<p>The result obtained will stay identical to the presented before in part dedicated to working with Elementor in this article.<\/p>\n\n\n\n<p>For example, let\u2019s check the result once the source is set to CPT built with <em>JetEngine<\/em>.<\/p>\n\n\n\n<p>Click on the \u201c<strong>Publish\/Update<\/strong>\u201d button to save the page.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/gutenberg-ajax-search-block-source.png\" alt=\"gutenberg ajax search block source\">\n\n\n\n<p>On the front end, you can see only posts from the set CPT in the results area.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/search-results-area-with-cpt-source.png\" alt=\"search results area with cpt source\">\n<\/div><\/div>\n\n\n\n<p>That\u2019s it; you have discovered how to customize the source of the post content in the search results area in the <em>JetSearch <\/em><strong>AJAX Search<\/strong> widget.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to specify the source of post content displayed in the search results with the help of the AJAX Search widget.<\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[430],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Specify the Source in AJAX Search | Crocoblock<\/title>\n<meta name=\"description\" content=\"Improve your knowledge of the JetSeaarch plugin. Learn how to specify the source of post content displayed in the search results with the help of the AJAX Search widget\/block.\" \/>\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-set-the-source-of-post-content-in-ajax-search-widget-results-area\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Specify the Source in AJAX Search | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Improve your knowledge of the JetSeaarch plugin. Learn how to specify the source of post content displayed in the search results with the help of the AJAX Search widget\/block.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-19T09:53:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/presented-sources-in-elementor.png\" \/>\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=\"4 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-set-the-source-of-post-content-in-ajax-search-widget-results-area\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/\",\"name\":\"How to Specify the Source in AJAX Search | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2022-06-14T16:20:53+00:00\",\"dateModified\":\"2023-07-19T09:53:41+00:00\",\"description\":\"Improve your knowledge of the JetSeaarch plugin. Learn how to specify the source of post content displayed in the search results with the help of the AJAX Search widget\/block.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/#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 Set the Source in AJAX Search\"}]},{\"@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 Specify the Source in AJAX Search | Crocoblock","description":"Improve your knowledge of the JetSeaarch plugin. Learn how to specify the source of post content displayed in the search results with the help of the AJAX Search widget\/block.","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-set-the-source-of-post-content-in-ajax-search-widget-results-area\/","og_locale":"en_US","og_type":"article","og_title":"How to Specify the Source in AJAX Search | Crocoblock","og_description":"Improve your knowledge of the JetSeaarch plugin. Learn how to specify the source of post content displayed in the search results with the help of the AJAX Search widget\/block.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/","og_site_name":"Help Center","article_modified_time":"2023-07-19T09:53:41+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/06\/presented-sources-in-elementor.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/","name":"How to Specify the Source in AJAX Search | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2022-06-14T16:20:53+00:00","dateModified":"2023-07-19T09:53:41+00:00","description":"Improve your knowledge of the JetSeaarch plugin. Learn how to specify the source of post content displayed in the search results with the help of the AJAX Search widget\/block.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-set-the-source-of-post-content-in-ajax-search-widget-results-area\/#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 Set the Source in AJAX Search"}]},{"@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\/13137"}],"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\/11"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=13137"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=13137"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=13137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}