{"id":48419,"date":"2025-06-20T11:29:56","date_gmt":"2025-06-20T11:29:56","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=48419"},"modified":"2025-07-01T13:45:08","modified_gmt":"2025-07-01T13:45:08","slug":"how-to-use-jetengine-condition-shortcode-in-bricks","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/","title":{"rendered":"How to Use JetEngine Condition Shortcode in Bricks"},"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>In this tutorial, we explore how to generate and customize a shortcode that displays <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">meta fields<\/a> based on specific conditions. The shortcode is also modified to include a link and accompanying text to redirect users to a different page.<\/p>\n\n\n\n<p>In detail, we first create &#8220;City Tours&#8221; <strong>CPT <\/strong>posts with the &#8220;Days&#8221; <strong>Number<\/strong> and &#8220;Coupon&#8221; <strong>Text<\/strong> meta fields. In turn, these fields contain the tour durations in days and possible discounts, respectively. If a tour lasts for more than three days, the clients will get a discount, which is stored in the &#8220;Coupon&#8221; meta field and encrypted as a QR code.<\/p>\n\n\n\n<p>In the described case, users can select the desired tour and press the corresponding link to be redirected to another page with more details about the discount they get.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"build-a-query\"><strong>Build a Query<\/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>Proceed to <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>.<\/p>\n\n\n\n<p>Here, on the <strong>Queries List<\/strong> page, press the &#8220;<strong>Add New<\/strong>&#8221; button and build a query for the &#8220;City Tours&#8221; <strong>CPT<\/strong> posts.<\/p>\n\n\n\n<p>Read the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/query-builder-posts-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Query Builder Posts Query Type<\/strong><\/a> tutorial for more details.<\/p>\n\n\n\n<p>For this query, we type its <strong>Name<\/strong> (the &#8220;City Tours Query&#8221; text, in this case), keep the default &#8220;Post Query&#8221; option in the <strong>Query Type<\/strong> drop-down list, and choose the needed <strong>CPT<\/strong> in the <strong>Post Type<\/strong> drop-down list of the newly appeared <strong><em>Posts Query &gt; General<\/em><\/strong> tab.<\/p>\n\n\n\n<p>Next, unfold the <strong>Meta Query<\/strong> tab. In the <strong>Meta Query Clauses<\/strong> section, click the &#8220;<strong>Add new clause<\/strong>&#8221; button and the &#8220;<strong>Dynamic Tag<\/strong>&#8221; icon, and choose the &#8220;JetEngine meta field&#8221; option in the newly appeared <strong>Field key\/name<\/strong> field. After that, set the needed meta field (in this case, the &#8220;Coupon&#8221; meta field) in the <strong>Field<\/strong> and the &#8220;Field name\/key\/ID&#8221; option in the <strong>Return<\/strong> field.&nbsp;<\/p>\n\n\n\n<p>Finally, click the &#8220;<strong>Apply<\/strong>&#8221; button.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query-1024x640.webp\" alt=\"building a query\" class=\"wp-image-48421\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Then, set the \u201cGreater or equal (&gt;=)\u201d <strong>Operator<\/strong>, set \u201c1\u201d as a <strong>Value<\/strong>, and select the \u201cChar\u201d <strong>Type<\/strong>. Finally, insert the <strong>Clause name<\/strong> and press the \u201c<strong>Add\/Update Query<\/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\/2025\/06\/the-post-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-post-query-settings-1024x640.webp\" alt=\"the post query settings\" class=\"wp-image-48426\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-post-query-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-post-query-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-post-query-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-post-query-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-post-query-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-post-query-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-a-listing-to-display-the-meta-fields-with-qr-%25d1%2581odesnbsp\"><strong>Create a Listing to Display the Meta Fields with QR \u0421odes&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; JetEngine &gt;<\/em><\/strong> <strong><em>Listings\/Components<\/em><\/strong> tab and create a new <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-listing-items-with-bricks\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Item<\/strong><\/a> to show the <strong>CPT<\/strong>\u2019s data in the Bricks builder. Design it as needed.<\/p>\n\n\n\n<p>More details on configuring the <strong>Dynamic Field<\/strong> and <strong>Dynamic Image<\/strong> elements can be found in the<strong> <\/strong><a href=\"https:\/\/www.youtube.com\/watch?v=5pMvjnnJlt4\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create Listing Item in WordPress with Bricks Builder<\/strong><\/a> video.<\/p>\n\n\n\n<p>To display the &#8220;Coupon&#8221; <strong>Text<\/strong> meta field, we insert the <strong>Dynamic Field<\/strong> element and select the &#8220;Media Data&#8221; <strong>Source<\/strong>, then choose the needed meta field in the <strong>Meta field<\/strong> drop-down list (&#8220;Coupon,&#8221; in this tutorial). Then, enable the <strong>Filter field output<\/strong> toggle and choose the &#8220;QR Code&#8221; option in the <strong>Callback<\/strong> drop-down list.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-dynamic-field-element-in-bricks.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-dynamic-field-element-in-bricks-1024x640.webp\" alt=\"adding the dynamic field element in bricks\" class=\"wp-image-48424\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-dynamic-field-element-in-bricks-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-dynamic-field-element-in-bricks-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-dynamic-field-element-in-bricks-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-dynamic-field-element-in-bricks-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-dynamic-field-element-in-bricks-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-dynamic-field-element-in-bricks.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>When you finish, hit the \u201c<strong>Save<\/strong>\u201c<strong> <\/strong>button in the upper right corner.<\/p>\n\n\n\n<p>Second, create a new page or open an existing one (\u201cDiscounts\u201d, in this case) to display the query listing item and show the needed <strong>CPT<\/strong> posts (the \u201cCity Tours\u201d <strong>CPT<\/strong>, in this case) using the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/showcasing-custom-posts-via-listing-grid-with-bricks\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a> element.&nbsp;<\/p>\n\n\n\n<p>Save the 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\/2025\/06\/adding-the-listing-grid-element-in-bricks.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-listing-grid-element-in-bricks-1024x640.webp\" alt=\"adding the listing grid element in bricks\" class=\"wp-image-48423\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-listing-grid-element-in-bricks-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-listing-grid-element-in-bricks-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-listing-grid-element-in-bricks-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-listing-grid-element-in-bricks-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-listing-grid-element-in-bricks-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-listing-grid-element-in-bricks.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"generate-a-shortcode\"><strong>Generate a Shortcode<\/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>Proceed to <strong><em>WordPress Dashboard &gt; JetEngine &gt; JetEngine<\/em><\/strong> and unroll the <strong>Shortcode Generator<\/strong> tab of the <strong>JetEngine dashboard<\/strong>.<\/p>\n\n\n\n<p>Here, set the &#8220;JetEngine Condition&#8221; option in the <strong>Shortcode<\/strong> drop-down list. After that, select the &#8220;Enclosing (e.g. [shortcode attrs]content\u2026 [\/shortcode])&#8221; <strong>Tag Enclosing Type<\/strong>.<\/p>\n\n\n\n<p>After that, in the <strong>Condition<\/strong> drop-down list, choose the &#8220;Show element if condition met&#8221; option and set the corresponding <strong>Condition<\/strong> (the &#8220;Greater than&#8221; option, in this case).<\/p>\n\n\n\n<p>Since we intend to offer discounts for tours lasting more than three days, we set this condition to create a shortcode.<\/p>\n\n\n\n<p>Type the required meta field\u2019s <strong>Name\/ID<\/strong> in the <strong>Field<\/strong> (here, the &#8220;days&#8221;) in the newly appeared drop-down list and insert the <strong>Value<\/strong> to compare (we type the &#8220;3&#8221; text).<\/p>\n\n\n\n<p>We leave the <strong>Context<\/strong> field unchanged but set the \u201cNumeric\u201d <strong>Data Type<\/strong>.<\/p>\n\n\n\n<p>After that, the shortcode will appear in the text field below the <strong>Data Type<\/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\/06\/generating-a-shortcode.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/generating-a-shortcode-1024x640.webp\" alt=\"generating a shortcode\" class=\"wp-image-48430\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/generating-a-shortcode-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/generating-a-shortcode-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/generating-a-shortcode-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/generating-a-shortcode-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/generating-a-shortcode-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/generating-a-shortcode.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;jet_engine_condition jedv_condition=\"greater-than\" jedv_field=\"days\" jedv_value=\"3\" jedv_data_type=\"numeric\"]Add your content here...&#91;\/jet_engine_condition]<\/code><\/pre>\n\n\n\n<p>Copy this generated shortcode.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-listing-item-with-the-shortcode\"><strong>Create a Listing Item with the Shortcode<\/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>Create another <strong>Listing Item<\/strong> in the Bricks builder and design it according to your preferences.<\/p>\n\n\n\n<p>In the next step, insert the <strong>Shortcode <\/strong>element. Here, add the copied shortcode into the corresponding text field (below the &#8220;Shortcode&#8221; text).&nbsp;<\/p>\n\n\n\n<p>Now, move to the page that includes the listing with the QR-Codes (&#8220;Discount&#8221;, in this case) and copy the page\u2019s URL.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/url-of-the-page-that-includes-the-listing-with-the-QR-codes.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/url-of-the-page-that-includes-the-listing-with-the-QR-codes-1024x640.webp\" alt=\"url of the page that includes the listing with the QR-codes\" class=\"wp-image-48425\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/url-of-the-page-that-includes-the-listing-with-the-QR-codes-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/url-of-the-page-that-includes-the-listing-with-the-QR-codes-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/url-of-the-page-that-includes-the-listing-with-the-QR-codes-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/url-of-the-page-that-includes-the-listing-with-the-QR-codes-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/url-of-the-page-that-includes-the-listing-with-the-QR-codes-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/url-of-the-page-that-includes-the-listing-with-the-QR-codes.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Return to the <strong>Listing Item<\/strong>, move to the <strong>Shortcode <\/strong>element, and paste the copied URL as HTML code instead of the &#8220;Add your content here..&#8221; text in the <strong>Shortcode<\/strong> text field. After that, add the text (e.g., &#8220;Grab your DISCOUNT!&#8221;) that you&#8217;d like to be displayed via the element.<\/p>\n\n\n\n<p>In this case, the text we finally entered into the <strong>Shortcode<\/strong> field of the <strong>Shortcode<\/strong> element looks as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;jet_engine_condition jedv_condition=\"greater-than\" jedv_field=\"days\" jedv_value=\"3\" jedv_data_type=\"numeric\"] &lt;a href=\"https:************ocumentation-1\/discount\/\" target= the page\u2019s\"_blank\"&gt;Grab your DISCOUNT!&lt;\/a&gt; &#91;\/jet_engine_condition]<\/code><\/pre>\n\n\n\n<p>Here we insert the:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;a href=\"https:************ocumentation-1\/discount\/\" target= \"_blank\"&gt; Grab your DISCOUNT!&lt;\/a&gt;<\/code><\/pre>\n\n\n\n<p>code instead of the \u201cAdd your content here\u2026\u201d default one.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/customization-of-the-shortcode.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/customization-of-the-shortcode-1024x640.webp\" alt=\"customization of the shortcode\" class=\"wp-image-48420\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/customization-of-the-shortcode-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/customization-of-the-shortcode-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/customization-of-the-shortcode-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/customization-of-the-shortcode-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/customization-of-the-shortcode-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/customization-of-the-shortcode.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once completed, save the <strong>Listing Item<\/strong>.<\/p>\n\n\n\n<p>Next, create or open another page (we name it the \u201cShortcode page\u201d) and insert the <strong>Listing Grid<\/strong> element to show the <strong>Listing Items<\/strong> with shortcodes.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-shortcode-element-in-bricks.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-shortcode-element-in-bricks-1024x640.webp\" alt=\"adding the shortcode element in bricks\" class=\"wp-image-48422\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-shortcode-element-in-bricks-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-shortcode-element-in-bricks-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-shortcode-element-in-bricks-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-shortcode-element-in-bricks-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-shortcode-element-in-bricks-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/adding-the-shortcode-element-in-bricks.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Since we left empty the &#8220;Discount&#8221; meta field for tours whose duration is three days or less, the <strong>Shortcode<\/strong> element does not display the text. To hide the empty elements, unfold the <strong>ELEMENT VISIBILITY<\/strong> settings and select the &#8220;Query is empty&#8221; option in the <strong>Hide element if <\/strong>field.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/setting-visibility-conditions-for-the-shortcode-element.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/setting-visibility-conditions-for-the-shortcode-element-1024x640.webp\" alt=\"setting visibility conditions for the shortcode element\" class=\"wp-image-48429\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/setting-visibility-conditions-for-the-shortcode-element-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/setting-visibility-conditions-for-the-shortcode-element-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/setting-visibility-conditions-for-the-shortcode-element-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/setting-visibility-conditions-for-the-shortcode-element-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/setting-visibility-conditions-for-the-shortcode-element-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/setting-visibility-conditions-for-the-shortcode-element.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Finally, save the page and navigate to the front end.<\/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, the page displays the <strong>Shortcode<\/strong> elements as links (the \u201cGrab your DISCOUNT!\u201d text, in this case).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-generated-short-codes-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-generated-short-codes-on-the-front-end-1024x640.webp\" alt=\"the generated short codes on the front end\" class=\"wp-image-48427\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-generated-short-codes-on-the-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-generated-short-codes-on-the-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-generated-short-codes-on-the-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-generated-short-codes-on-the-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-generated-short-codes-on-the-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-generated-short-codes-on-the-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>After pressing any link, you will be redirected to a page that displays <strong>CPT<\/strong> posts that meet the needed conditions.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-cpt-posts-that-meet-the-set-condition.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-cpt-posts-that-meet-the-set-condition-1024x640.webp\" alt=\"the cpt posts that meet the set condition\" class=\"wp-image-48428\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-cpt-posts-that-meet-the-set-condition-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-cpt-posts-that-meet-the-set-condition-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-cpt-posts-that-meet-the-set-condition-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-cpt-posts-that-meet-the-set-condition-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-cpt-posts-that-meet-the-set-condition-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/the-cpt-posts-that-meet-the-set-condition.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 generate and use the pre-generated and customized shortcodes that allow displaying <strong>CPT <\/strong>posts that meet the specific conditions and redirection to another page using the J<em>etEngine<\/em> plugin for WordPress and the Bricks theme.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we explore how to generate and customize a shortcode that displays meta fields based on specific conditions. The shortcode is also modified to include a link and accompanying text to redirect users to a different page. In detail, we first create &#8220;City Tours&#8221; CPT posts with the &#8220;Days&#8221; Number and &#8220;Coupon&#8221; Text [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[440],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use JetEngine Condition Shortcode in Bricks \u4e00 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to generate, use, and customize shortcodes that allow displaying CPT posts that meet the specific conditions and redirection to another page using the JetEngine plugin for WordPress and the Bricks theme.\" \/>\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\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use JetEngine Condition Shortcode in Bricks \u4e00 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to generate, use, and customize shortcodes that allow displaying CPT posts that meet the specific conditions and redirection to another page using the JetEngine plugin for WordPress and the Bricks theme.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-01T13:45:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query-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\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/\",\"name\":\"How to Use JetEngine Condition Shortcode in Bricks \u4e00 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2025-06-20T11:29:56+00:00\",\"dateModified\":\"2025-07-01T13:45:08+00:00\",\"description\":\"Learn how to generate, use, and customize shortcodes that allow displaying CPT posts that meet the specific conditions and redirection to another page using the JetEngine plugin for WordPress and the Bricks theme.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/#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 Use JetEngine Condition Shortcode in Bricks\"}]},{\"@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 Use JetEngine Condition Shortcode in Bricks \u4e00 JetEngine | Crocoblock","description":"Learn how to generate, use, and customize shortcodes that allow displaying CPT posts that meet the specific conditions and redirection to another page using the JetEngine plugin for WordPress and the Bricks theme.","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\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/","og_locale":"en_US","og_type":"article","og_title":"How to Use JetEngine Condition Shortcode in Bricks \u4e00 JetEngine | Crocoblock","og_description":"Learn how to generate, use, and customize shortcodes that allow displaying CPT posts that meet the specific conditions and redirection to another page using the JetEngine plugin for WordPress and the Bricks theme.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/","og_site_name":"Help Center","article_modified_time":"2025-07-01T13:45:08+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/building-a-query-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\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/","name":"How to Use JetEngine Condition Shortcode in Bricks \u4e00 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2025-06-20T11:29:56+00:00","dateModified":"2025-07-01T13:45:08+00:00","description":"Learn how to generate, use, and customize shortcodes that allow displaying CPT posts that meet the specific conditions and redirection to another page using the JetEngine plugin for WordPress and the Bricks theme.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-use-jetengine-condition-shortcode-in-bricks\/#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 Use JetEngine Condition Shortcode in Bricks"}]},{"@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\/48419"}],"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=48419"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=48419"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=48419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}