{"id":47542,"date":"2025-03-28T13:30:19","date_gmt":"2025-03-28T13:30:19","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=47542"},"modified":"2025-12-26T15:57:09","modified_gmt":"2025-12-26T15:57:09","slug":"how-to-combine-custom-field-and-post-properties-in-search-filter","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/","title":{"rendered":"How to Combine Custom Field and Post Properties in Search Filter"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"build-an-sqlai-query-type\"><strong>Build <\/strong><strong>an <\/strong><strong>SQL\/AI <\/strong><strong>Query 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>Initially, navigate to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\">Query Builder<\/a><\/em><\/strong> tab and press the &#8220;<strong>Add New<\/strong>&#8221; button to create a query.<\/p>\n\n\n\n<p>Next, on the newly appeared <strong>Add New Query<\/strong> page, fill out the <strong>Name<\/strong> field (we type the &#8220;Search Filter&#8221; text); after that, select the &#8220;<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-query-builder-sql-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQL\/AI Query<\/a>&#8221; <strong>Query 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\/2025\/03\/building-a-sql-and-ai-type-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1140\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query.webp\" alt=\"building a sql and ai type query\" class=\"wp-image-47549\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query-600x375.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the next step, scroll the page down, enable the <strong>Advanced\/AI mode<\/strong> toggle, and paste the following text into the newly appeared <strong>SQL Query<\/strong> text area:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT p.*\n\nFROM {prefix}posts p\n\nLEFT JOIN {prefix}postmeta pm ON pm.post_id = p.ID AND pm.meta_key = 'property_description'\n\nWHERE (\n\n&nbsp;&nbsp;&nbsp;&nbsp;p.post_type=\"properties\" AND\n\n&nbsp;&nbsp;&nbsp;&nbsp;( \"%jsf_filter_query|query_var|search_for_sql||plain%\" = '' OR\n\n&nbsp;&nbsp;&nbsp;&nbsp;p.post_title LIKE \"%%jsf_filter_query|query_var|search_for_sql||plain%%\" OR\n\n&nbsp;&nbsp;&nbsp;&nbsp;pm.meta_value LIKE \"%%jsf_filter_query|query_var|search_for_sql||plain%%\"\n\n&nbsp;&nbsp;&nbsp;&nbsp;)\n\n);<\/code><\/pre>\n\n\n\n<p>Since we intend to search in the &#8220;Properties&#8221; <strong>CPT<\/strong> posts, in this code, we type the slug (here, &#8220;properties&#8221;) of this <strong>CPT<\/strong> in the following row:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>p.post_type= \"properties\" AND\"&nbsp;<\/code><\/pre>\n\n\n\n<p>Also, we search for the needed parameter in the post title or the &#8220;Property description&#8221; <strong>meta field<\/strong> and insert the <strong>Name\/ID<\/strong> of this<strong> meta field<\/strong> (in this case, the &#8220;property_description&#8221; text) into the row:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>LEFT JOIN {prefix}postmeta pm ON pm.post_id = p.ID AND pm.meta_key = 'property_description'<\/code><\/pre>\n\n\n\n<p>Therefore, to use the query correctly, adjust this code according to your needs.<\/p>\n\n\n\n<p>In the last step, select the &#8220;Post&#8221; option in the <strong>Cast result to instance of object <\/strong>drop-down list.<\/p>\n\n\n\n<p>In our code, we use the &#8220;wp_&#8221; text as a prefix instead of the {prefix} text (for example, the &#8220;wp_posts&#8221; instead of the &#8220;{prefix}posts&#8221;), because <strong>Query Builder<\/strong> dynamically pulls up the prefix of the current site&#8217;s database and substitutes.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-sql-code-inserted-into-the-sql-and-ai-type-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1140\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-sql-code-inserted-into-the-sql-and-ai-type-query.webp\" alt=\" sql code inserted into the sql and ai type query\" class=\"wp-image-47546\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-sql-code-inserted-into-the-sql-and-ai-type-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-sql-code-inserted-into-the-sql-and-ai-type-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-sql-code-inserted-into-the-sql-and-ai-type-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-sql-code-inserted-into-the-sql-and-ai-type-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-sql-code-inserted-into-the-sql-and-ai-type-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-sql-code-inserted-into-the-sql-and-ai-type-query-600x375.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Once completed, scroll the page up and press the &#8220;<strong>Add Query \/ Update Query<\/strong>&#8221; button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"build-a-post-type-query\"><strong>Build a Post Type Query<\/strong><\/h2>\n<\/div><\/div>\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, create a new query. Next, fill in the query&#8217;s <strong>Name<\/strong> (here, we type &#8220;Search Filter 2&#8221; ); then, expand the Query Type drop-down list and select the &#8220;Posts Query&#8221; option. Next, enter any ID in the <strong>Custom Query ID<\/strong> field (we insert &#8220;some_id&#8221;).<\/p>\n\n\n\n<p>Second, move to the <strong>Posts Query<\/strong> section and the <strong>General<\/strong> tab. In the<strong> Post Type<\/strong> drop-down list, choose the needed <strong>CPT<\/strong> (in this case, it was the &#8220;Properties&#8221; <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\/2025\/03\/building-a-post-type-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-post-type-query-1024x640.webp\" alt=\"building a post type query\" class=\"wp-image-47550\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-post-type-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-post-type-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-post-type-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-post-type-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-post-type-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-post-type-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Third, unfold the <strong>Post &amp; Page<\/strong> tab, press the &#8220;<strong>dynamic tag<\/strong>&#8221; icon near the <strong>Post In <\/strong>field, and select the &#8220;Query Results&#8221; macro. Next, choose the previously built query of the \u201cSQL\/AI Query\u201d type (the &#8220;Search Filter&#8221; query, in this tutorial) in the <strong>Query<\/strong> drop-down list in the pop-up. Afterwards, pick the &#8220;List of items IDs&#8221; option in the <strong>Return<\/strong> drop-down list. Finally, click the &#8220;<strong>Apply<\/strong>&#8221; button and save the query.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-a-macro-to-the-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-a-macro-to-the-query-1024x640.webp\" alt=\"adding a macro to the query\" class=\"wp-image-47545\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-a-macro-to-the-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-a-macro-to-the-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-a-macro-to-the-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-a-macro-to-the-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-a-macro-to-the-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-a-macro-to-the-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-search-filter\"><strong>Create a Search Filter<\/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<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 stage, proceed to the <strong><em>WordPress Dashboard &gt; Smart Filters &gt; Add New<\/em><\/strong> tab to create a new filter. Next, on the newly appeared <strong>Edit Filter<\/strong> page, insert the filter&#8217;s <strong>Name<\/strong> (we type the &#8220;Search filter&#8221; text) and select the &#8220;Search&#8221; option in the <strong>Filter Type <\/strong>section.<\/p>\n\n\n\n<p>Second, select the &#8220;By Custom Field (from Query Variable)&#8221; option in the<strong> Search by <\/strong>drop-down list and click the &#8220;<strong>dynamic tag<\/strong>&#8221; icon in the <strong>Query Variable *<\/strong> field.&nbsp;<\/p>\n\n\n\n<p>Here, choose the &#8220;Plane Query Variable&#8221; option in the drop-down list and add the &#8220;search_for_sql&#8221; text in the <strong>Variable Name<\/strong> text field. Once added, the text &#8220;_plain_query::search_for_sql&#8221; will be displayed in the <strong>Query Variable * <\/strong>field.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/creating-a-search-filter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/creating-a-search-filter-1024x640.webp\" alt=\"creating a search filter\" class=\"wp-image-47548\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/creating-a-search-filter-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/creating-a-search-filter-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/creating-a-search-filter-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/creating-a-search-filter-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/creating-a-search-filter-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/creating-a-search-filter.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Finally, move to the top of the page and press the &#8220;<strong>Update<\/strong>&#8221; button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-the-filter-to-a-page\"><strong>Add the Filter to a Page<\/strong><\/h2>\n\n\n\n<p>Create a page or open a created one in an editor you prefer. Here, we use Elementor.<\/p>\n\n\n\n<p>Divide the page&#8217;s layout into two columns and add the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Listing Grid<\/a> widget to the right one. After that, set the needed <strong>Listing<\/strong> in the corresponding drop-down list and customize the listing as needed. For more details on configuring the <strong>Listing Grid<\/strong> settings, watch the <a href=\"https:\/\/www.youtube.com\/watch?v=SRvduSHwto8\" target=\"_blank\" rel=\"noreferrer noopener\">How to \u0421reate a Listing Grid<\/a> video.<\/p>\n<\/div><\/div>\n\n\n\n<p>After that, proceed to the <strong>Advanced<\/strong> tab, move to the <strong>CSS ID<\/strong> text field and add the query\u2019s ID you previously inserted in the <strong>Custom Query ID<\/strong> field while you have built the <strong>Post Type Query <\/strong>(in our case, we copy the &#8220;some_id&#8221; text from the &#8220;Search Filter 2&#8221; query).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-css-id-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-css-id-field-1024x640.webp\" alt=\"adding the query ID to the CSS ID field\" class=\"wp-image-47544\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-css-id-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-css-id-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-css-id-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-css-id-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-css-id-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-css-id-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once completed, find the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-create-a-search-filter\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Search Filter<\/strong><\/a> widget and drag-n-drop it to the left column. In this step, select the previously created filter in the <strong>Select filter<\/strong> drop-down list (the &#8220;Search Filter&#8221; in this tutorial); next, choose the &#8220;JetEngine&#8221; option in the <strong>This filter for <\/strong>drop-down list. After that, select the &#8220;Mixed&#8221; <strong>Apply type<\/strong>.<\/p>\n\n\n\n<p>In the last step, proceed to the <strong>Query ID<\/strong> field and add the query\u2019s ID you previously inserted in the <strong>Custom Query ID<\/strong> field while you have built the <strong>Post Type Query <\/strong>(in our case, we copy the &#8220;some_id&#8221; text from the &#8220;Search Filter 2&#8221; query).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-search-filter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-search-filter-1024x640.webp\" alt=\"adding the query ID to the search filter\" class=\"wp-image-47543\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-search-filter-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-search-filter-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-search-filter-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-search-filter-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-search-filter-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/adding-the-query-id-to-the-search-filter.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Adjust the <strong>Search Filter<\/strong> settings as needed, for example, as explained in the <a href=\"https:\/\/www.youtube.com\/watch?v=jMYIE2V-pps\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create a Search Filter in WordPress using Elementor Page Builder<\/a> video.&nbsp;<\/p>\n\n\n\n<p>Finally, publish the page and move to the front end to check if the filter works correctly.<\/p>\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<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>On the front end, we insert the &#8220;garage&#8221; text in the filter and press the &#8220;<strong>APPLY FILTER<\/strong>&#8221; button. Then, the <strong>CPT<\/strong> posts with text in the corresponding field and titles were displayed.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-search-filter-in-action.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-search-filter-in-action-1024x640.webp\" alt=\"the search filter in action\" class=\"wp-image-47547\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-search-filter-in-action-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-search-filter-in-action-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-search-filter-in-action-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-search-filter-in-action-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-search-filter-in-action-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/the-search-filter-in-action.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>That\u2019s it. Now you know how to apply the queries to the <strong>Search Filter<\/strong> of the <em>JetSmartFilters<\/em> plugin for WordPress to provide filtering by some parameters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to apply the queries to the Search Filter to provide filtering by some parameters, e.g., search CPT posts that include the specific text in their titles or the text meta fields.<\/p>\n","protected":false},"author":12,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[535],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Combine Custom Field and Post Properties in Search Filter \u4e00 JetSmartFilters I Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to apply the queries to the Search Filter to provide filtering by some parameters, e.g., search CPT posts that include the specific text in their titles or the text meta fields.\" \/>\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\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Combine Custom Field and Post Properties in Search Filter \u4e00 JetSmartFilters I Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to apply the queries to the Search Filter to provide filtering by some parameters, e.g., search CPT posts that include the specific text in their titles or the text meta fields.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-26T15:57:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query.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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/\",\"name\":\"How to Combine Custom Field and Post Properties in Search Filter \u4e00 JetSmartFilters I Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2025-03-28T13:30:19+00:00\",\"dateModified\":\"2025-12-26T15:57:09+00:00\",\"description\":\"Learn how to apply the queries to the Search Filter to provide filtering by some parameters, e.g., search CPT posts that include the specific text in their titles or the text meta fields.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/#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 Combine Custom Field and Post Properties in Search Filter\"}]},{\"@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 Combine Custom Field and Post Properties in Search Filter \u4e00 JetSmartFilters I Crocoblock","description":"Learn how to apply the queries to the Search Filter to provide filtering by some parameters, e.g., search CPT posts that include the specific text in their titles or the text meta fields.","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\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/","og_locale":"en_US","og_type":"article","og_title":"How to Combine Custom Field and Post Properties in Search Filter \u4e00 JetSmartFilters I Crocoblock","og_description":"Learn how to apply the queries to the Search Filter to provide filtering by some parameters, e.g., search CPT posts that include the specific text in their titles or the text meta fields.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/","og_site_name":"Help Center","article_modified_time":"2025-12-26T15:57:09+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/03\/building-a-sql-and-ai-type-query.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/","name":"How to Combine Custom Field and Post Properties in Search Filter \u4e00 JetSmartFilters I Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2025-03-28T13:30:19+00:00","dateModified":"2025-12-26T15:57:09+00:00","description":"Learn how to apply the queries to the Search Filter to provide filtering by some parameters, e.g., search CPT posts that include the specific text in their titles or the text meta fields.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/how-to-combine-custom-field-and-post-properties-in-search-filter\/#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 Combine Custom Field and Post Properties in Search Filter"}]},{"@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\/47542"}],"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=47542"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=47542"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=47542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}