{"id":44886,"date":"2024-07-10T10:05:03","date_gmt":"2024-07-10T10:05:03","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=44886"},"modified":"2025-05-26T10:29:35","modified_gmt":"2025-05-26T10:29:35","slug":"using-merged-query-jetengine","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/","title":{"rendered":"How to Use Merged Query"},"content":{"rendered":"\n<p>The <em>JetEngine <\/em>plugin&#8217;s \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/query-builder-merged-query-overview\/\">Merged Query<\/a>\u201d <strong>Query Type<\/strong> allows for combining the results of multiple queries into one. For example, it can be used to combine posts based on different criteria into a single <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a>.<\/p>\n\n\n\n<p>In this tutorial, we will describe a use case for displaying the promoted posts first, then the posts published today, and then the remaining posts in a certain order. To achieve this result, we will merge three \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/query-builder-posts-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Posts<\/strong><\/a>\u201d queries.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters 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=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">Be aware that this use case is just an example; you can merge any required queries of the following types: \"Posts,\" \"<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-query-builder-terms-query-type\/\" target=\"_blank\" rel=\"noopener\"><strong>Terms<\/strong><\/a>,\" \"<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-query-builder-users-query-type\/\" target=\"_blank\" rel=\"noopener\"><strong>Users<\/strong><\/a>,\" and \"<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-query-builder-comments-query-type\/\" target=\"_blank\" rel=\"noopener\"><strong>Comments<\/strong><\/a>.\"<\/p><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-a-custom-post-type\">Creating a Custom Post Type<\/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 our example, we will create a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-post-type-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Post Type (CPT)<\/strong><\/a> for the vacancy posts to rearrange them in a certain order with the Merged Query.<\/p>\n\n\n\n<p>Note that the WordPress default posts also fit. Proceed to this tutorial to learn <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-add-the-custom-meta-fields-to-the-posts\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Add Custom Meta Fields to WordPress Post via Meta Boxes<\/strong><\/a>.<\/p>\n\n\n\n<p>We move to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Post Types <\/em><\/strong>and press the \u201c<strong>Add New<\/strong>\u201d button to create a new <strong>Custom Post Type<\/strong>. If you already have one, hit the \u201c<strong>Edit<\/strong>\u201d button next to the needed CPT.<\/p>\n\n\n\n<p>In the <strong>General Settings<\/strong> tab, we enter the <strong>Post Type Name <\/strong>(\u201cJobs (Vacancies)\u201d) and set the <strong>Post Type Slug<\/strong>.<\/p>\n\n\n\n<p>In the <strong>Meta fields<\/strong> tab, you can add as many <a href=\"http:\/\/link\" target=\"_blank\" rel=\"noreferrer noopener\">custom meta fields<\/a> as you need (e.g., \u201cSalary,\u201d \u201cJob description,\u201d \u201cRequirements,\u201d \u201cWork conditions,\u201d and \u201cResponsibilities\u201d).<\/p>\n\n\n\n<div class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type.webp\" alt=\"vacancies custom post type\" class=\"wp-image-44907\" style=\"width:840px;height:auto\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In our case, we also add a \u201cPromoted\u201d meta field of the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#switcher\" target=\"_blank\" rel=\"noreferrer noopener\">Switcher<\/a>\u201d <strong>Field type<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/promoted-switcher-field-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/promoted-switcher-field-type.webp\" alt=\"promoted switcher field type\" class=\"wp-image-44902\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/promoted-switcher-field-type.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/promoted-switcher-field-type-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/promoted-switcher-field-type-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/promoted-switcher-field-type-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/promoted-switcher-field-type-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/promoted-switcher-field-type-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>After finishing customizing the <strong>CPT<\/strong>, we push the \u201c<strong>Add\/Update Post Type<\/strong>\u201d button.<\/p>\n\n\n\n<p>For more information, navigate to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-a-custom-post-type-based-on-jetengine-plugin\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create a Custom Post Type<\/strong><\/a><strong> <\/strong>tutorial.<\/p>\n\n\n\n<p>Proceed to the <strong>CPT<\/strong> tab on the <strong>WordPress Dashboard<\/strong>, create new posts or edit the existing ones, and fill in the custom fields.&nbsp;<\/p>\n\n\n\n<p>For example, we turn on the switcher for one post, making it promoted.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/turn-on-a-switcher-for-the-promoted-post.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/turn-on-a-switcher-for-the-promoted-post.webp\" alt=\"turn on a switcher for the promoted post\" class=\"wp-image-44906\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/turn-on-a-switcher-for-the-promoted-post.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/turn-on-a-switcher-for-the-promoted-post-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/turn-on-a-switcher-for-the-promoted-post-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/turn-on-a-switcher-for-the-promoted-post-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/turn-on-a-switcher-for-the-promoted-post-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/turn-on-a-switcher-for-the-promoted-post-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-a-listing-template\">Creating a Listing Template<\/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>We head to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Listings\/Components<\/em><\/strong> and hit the \u201c<strong>Add New Listing Item<\/strong>\u201d button. If you already have a listing for the required <strong>CPT<\/strong>, you can edit it.<\/p>\n\n\n\n<p>In the <strong>Setup Listing Item <\/strong>pop-up, we pick the \u201cPosts\u201d option as the <strong>Listing source<\/strong>, set the required post type in the <strong>From post type <\/strong>field (\u201cJobs (Vacancies)\u201d), enter the <strong>Listing item name <\/strong>(\u201cVacancies list\u201d), and choose the <strong>Listing view <\/strong>(for this case we choose \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-a-listing-template-for-post-types\/\" target=\"_blank\" rel=\"noreferrer noopener\">Elementor<\/a>,\u201d but it can also be \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-listing-items-with-bricks\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bricks<\/a>,\u201d \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/timber-twig-listing-view-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Timber\/Twig<\/a>,\u201d or \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-create-a-listing-template-in-gutenberg\/\" target=\"_blank\" rel=\"noreferrer noopener\">Blocks (Gutenberg<\/a>)\u201d).<\/p>\n\n\n\n<p>Afterward, we click the \u201c<strong>Create Listing Item<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-a-listing-item-for-vacancies.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-a-listing-item-for-vacancies.webp\" alt=\"creating a listing item for vacancies\" class=\"wp-image-44888\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-a-listing-item-for-vacancies.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-a-listing-item-for-vacancies-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-a-listing-item-for-vacancies-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-a-listing-item-for-vacancies-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-a-listing-item-for-vacancies-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-a-listing-item-for-vacancies-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>First, we place the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-dynamic-link-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Link<\/strong><\/a><strong> <\/strong>widget with the \u201cPermalink\u201d <strong>Source<\/strong>, so if users click it, they will be redirected to the <strong>CPT <\/strong>item single page.&nbsp;<\/p>\n\n\n\n<p>Proceed to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/creating-custom-post-type-archive-template-with-jetengine-listing-grid\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create Archive and Single Templates for Custom Post Type<\/strong><\/a> tutorial to learn how to craft a single page for <strong>CPT<\/strong>.<\/p>\n\n\n\n<p>In the <strong>Label <\/strong>field, we enter the %title% macro, which causes the widget to show post titles in the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a>.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-link-widget-with-permalink-source.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-link-widget-with-permalink-source.webp\" alt=\"dynamic link widget with permalink source\" class=\"wp-image-44896\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-link-widget-with-permalink-source.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-link-widget-with-permalink-source-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-link-widget-with-permalink-source-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-link-widget-with-permalink-source-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-link-widget-with-permalink-source-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-link-widget-with-permalink-source-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, we place the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a> widget with the \u201cMeta Data\u201d <strong>Source <\/strong>and \u201cJob description\u201d <strong>Meta Field<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-job-description.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-job-description.webp\" alt=\"dynamic field with job description\" class=\"wp-image-44892\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-job-description.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-job-description-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-job-description-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-job-description-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-job-description-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-job-description-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, we drag-n-drop the <strong>Inner Section <\/strong>widget. In the first <strong>Column<\/strong>, we place the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-dynamic-terms-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Terms<\/strong><\/a><strong> <\/strong>widget and set the \u201cVacancy Location\u201d custom taxonomy in the <strong>From taxonomy<\/strong> field.&nbsp;<\/p>\n\n\n\n<p>Learn <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/creating-custom-taxonomy-with-jetengine\/\"><strong>How to Create a Custom Taxonomy<\/strong><\/a> from this tutorial.&nbsp;<\/p>\n\n\n\n<p>Also, we adjust the <strong>Terms Icon<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-terms-with-vacancy-location-taxonomy.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-terms-with-vacancy-location-taxonomy.webp\" alt=\"dynamic terms with vacancy location taxonomy\" class=\"wp-image-44897\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-terms-with-vacancy-location-taxonomy.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-terms-with-vacancy-location-taxonomy-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-terms-with-vacancy-location-taxonomy-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-terms-with-vacancy-location-taxonomy-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-terms-with-vacancy-location-taxonomy-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-terms-with-vacancy-location-taxonomy-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the same <strong>Column<\/strong>, we place the <strong>Dynamic Field <\/strong>widget with the \u201cPost\/Term\/User\/Object Data\u201d <strong>Source <\/strong>and post \u201cDate\u201d <strong>Object Field<\/strong>.<\/p>\n\n\n\n<p>We set the <strong>Field Icon <\/strong>as well.<\/p>\n\n\n\n<p>Also, we enable the <strong>Filter field output <\/strong>toggle, choose the \u201cFormat date\u201d <strong>Callback<\/strong>, and set the \u201cF j, Y\u201d <strong>Format<\/strong>.<\/p>\n\n\n\n<p>Learn about all available callbacks from the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/#filter-field-output-overview\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Filter Field Output Overview<\/strong><\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-post-date.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-post-date.webp\" alt=\"dynamic field with post date\" class=\"wp-image-44893\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-post-date.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-post-date-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-post-date-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-post-date-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-post-date-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-post-date-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the second <strong>Column<\/strong>, we add another <strong>Dynamic Field <\/strong>with \u201cMeta Data\u201d <strong>Source <\/strong>and \u201cPromoted\u201d <strong>Meta Field<\/strong>.<\/p>\n\n\n\n<p>Also, we set the <strong>Field Icon <\/strong>and enable the <strong>Hide if value is empty<\/strong> toggle.<\/p>\n\n\n\n<p>Then, we enable the <strong>Filter field output <\/strong>toggle, choose the \u201cSwitcher field values\u201d <strong>Callback<\/strong>, and enter the \u201cPromoted\u201d text in the <strong>Text if enabled <\/strong>field. The <strong>Text if disabled <\/strong>field we leave empty.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-switcher-field-values.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-switcher-field-values.webp\" alt=\"dynamic field with switcher field values\" class=\"wp-image-44895\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-switcher-field-values.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-switcher-field-values-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-switcher-field-values-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-switcher-field-values-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-switcher-field-values-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-switcher-field-values-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Near the <strong>Dynamic Link<\/strong>, we place another <strong>Dynamic Field <\/strong>widget with \u201cMeta Data\u201d <strong>Source <\/strong>and \u201cSalary\u201d <strong>Meta Field<\/strong>.<\/p>\n\n\n\n<p>We enable the <strong>Customize field output <\/strong>toggle and set the \u201c\u20ac%s\u201d in the <strong>Field format <\/strong>textarea to put the \u201c\u20ac\u201d symbol before the salary.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-salary.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-salary.webp\" alt=\"dynamic field with vacancy salary\" class=\"wp-image-44894\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-salary.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-salary-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-salary-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-salary-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-salary-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/dynamic-field-with-salary-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>After customizing the Listing item, we hit the \u201c<strong>Update<\/strong>\u201d button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setting-the-custom-queries\">Setting the Custom Queries<\/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>Now, we will create three custom queries and merge them into a single query later.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"query-for-promoted-posts\">Query for promoted posts<\/h3>\n\n\n\n<p>First, we craft a custom query that shows only posts for which the \u201cPromoted\u201d switcher is turned on.<\/p>\n\n\n\n<p>To create a custom query, we navigate to <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder<\/em><\/strong> and push the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>We enter the query <strong>Name <\/strong>(\u201cPromoted posts\u201d) and select the \u201cPosts Query\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-to-display-promoted-posts.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-to-display-promoted-posts.webp\" alt=\"query to display promoted posts\" class=\"wp-image-44905\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-to-display-promoted-posts.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-to-display-promoted-posts-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-to-display-promoted-posts-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-to-display-promoted-posts-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-to-display-promoted-posts-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-to-display-promoted-posts-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>General <\/strong>tab of the <strong>Posts Query<\/strong> section, we set the <strong>Post Type <\/strong>(\u201cJobs (Vacancies)\u201d) and \u201cPublished (publish)\u201d <strong>Post Status<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/displaying-published-posts-with-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/displaying-published-posts-with-query.webp\" alt=\"displaying published posts with query\" class=\"wp-image-44891\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/displaying-published-posts-with-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/displaying-published-posts-with-query-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/displaying-published-posts-with-query-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/displaying-published-posts-with-query-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/displaying-published-posts-with-query-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/displaying-published-posts-with-query-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Meta Query <\/strong>tab, we hit the \u201c<strong>Add new<\/strong>\u201d button to add a meta query clause.<\/p>\n\n\n\n<p>In the repeater field, we enter the \u201cSwitcher\u201d meta field name into the <strong>Field key\/name <\/strong>field (\u201c_promoted\u201d), pick the \u201cEqual (=)\u201d operator for the <strong>Compare <\/strong>field, and set the \u201ctrue\u201d <strong>Value<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/meta-query-clause-for-the-promoted-posts.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/meta-query-clause-for-the-promoted-posts.webp\" alt=\"meta query clause for the promoted posts\" class=\"wp-image-44900\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/meta-query-clause-for-the-promoted-posts.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/meta-query-clause-for-the-promoted-posts-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/meta-query-clause-for-the-promoted-posts-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/meta-query-clause-for-the-promoted-posts-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/meta-query-clause-for-the-promoted-posts-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/meta-query-clause-for-the-promoted-posts-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, we hit the \u201c<strong>Add\/Update Query<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"query-for-posts-published-today\">Query for posts published today<\/h3>\n\n\n\n<p>Now, we craft a query that shows only posts published on the current date.<\/p>\n\n\n\n<p>We create a new query, enter the query <strong>Name<\/strong> (\u201cPosts published today\u201d), and select the \u201cPosts Query\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<p>In the <strong>General <\/strong>tab of the <strong>Posts Query<\/strong> section, we set the <strong>Post Type <\/strong>(\u201cJobs (Vacancies)\u201d) and \u201cPublished (publish)\u201d <strong>Post Status<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-for-posts-published-today.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-for-posts-published-today.webp\" alt=\"query for posts published today\" class=\"wp-image-44904\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-for-posts-published-today.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-for-posts-published-today-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-for-posts-published-today-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-for-posts-published-today-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-for-posts-published-today-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/query-for-posts-published-today-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Date Query <\/strong>tab, we hit the \u201c<strong>Add new<\/strong>\u201d button to add a date query clause.<\/p>\n\n\n\n<p>In the repeater field, we enter \u201cToday\u201d in the <strong>After <\/strong>field, pick the \u201cEqual (=)\u201d operator for the <strong>Compare <\/strong>field, and select the \u201cPost date\u201d <strong>Column<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/date-query-clause-for-the-posts-published-today.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/date-query-clause-for-the-posts-published-today.webp\" alt=\"date query clause for the posts published today\" class=\"wp-image-44890\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/date-query-clause-for-the-posts-published-today.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/date-query-clause-for-the-posts-published-today-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/date-query-clause-for-the-posts-published-today-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/date-query-clause-for-the-posts-published-today-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/date-query-clause-for-the-posts-published-today-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/date-query-clause-for-the-posts-published-today-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>To save the query settings, we hit the \u201c<strong>Add\/Update Query<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"query-for-post-order\">Query for post order<\/h3>\n\n\n\n<p>With the \u201cMerged Query,\u201d we will display the promoted posts first, then posts published on the current day, and other posts can be ordered by another requirement. For that, we create the third query.<\/p>\n\n\n\n<p>We enter the query <strong>Name <\/strong>(\u201cQuery to order posts\u201d) and select the \u201cPosts Query\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<p>In the <strong>General <\/strong>tab of the <strong>Posts Query<\/strong> section, we set the <strong>Post Type <\/strong>(\u201cJobs (Vacancies)\u201d) and \u201cPublished (publish)\u201d <strong>Post Status<\/strong>.<\/p>\n\n\n\n<p>Then, we hit the \u201c<strong>Add new sorting parameter<\/strong>\u201d button in the <strong>Order &amp; Order By<\/strong> section.<\/p>\n\n\n\n<p>In the <strong>Order By <\/strong>field, the parameter by which the posts will be ordered can be picked. For example, posts can be ordered randomly, by date, title, number of comments, meta clause, distance (learn more in the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-geo-search-based-on-user-geolocation\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Set Geo Search Based on User Geolocation<\/strong><\/a> tutorial), etc.<\/p>\n\n\n\n<p>We decide to order vacancies by salary, so we choose the \u201cOrder by numeric meta value\u201d option for the <strong>Order <\/strong><strong>B<\/strong><strong>y <\/strong>field.<\/p>\n\n\n\n<p>In the <strong>Meta key<\/strong> field, we enter the \u201cSalary\u201d meta field name (\u201c_salary\u201d).<\/p>\n\n\n\n<p>For the <strong>Order <\/strong>field, we pick the \u201cFrom highest to lowest values\u201d option.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/Add-new-sorting-parameter.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/Add-new-sorting-parameter.webp\" alt=\"Add new sorting parameter\" class=\"wp-image-44887\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/Add-new-sorting-parameter.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/Add-new-sorting-parameter-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/Add-new-sorting-parameter-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/Add-new-sorting-parameter-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/Add-new-sorting-parameter-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/Add-new-sorting-parameter-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>To save the query settings, we hit the \u201c<strong>Add\/Update Query<\/strong>\u201d button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"merged-query\">Merged Query<\/h3>\n\n\n\n<p>We create a new query, enter the query <strong>Name<\/strong> (\u201cMerged query for vacancies\u201d), and select the \u201cMerged Query\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-the-merged-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-the-merged-query.webp\" alt=\"creating the merged query\" class=\"wp-image-44889\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-the-merged-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-the-merged-query-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-the-merged-query-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-the-merged-query-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-the-merged-query-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/creating-the-merged-query-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Merged Query <\/strong>section, we keep the \u201cPosts\u201d option for the <strong>Query Type <\/strong>field.<\/p>\n\n\n\n<p>We enabled the <strong>Exclude Duplicated Items <\/strong>toggle to prevent duplication. It ensures that if promoted posts are published today, they won&#8217;t appear twice in the second query. Additionally, promoted posts and posts published today displayed by the first two queries won&#8217;t be repeated in the third query.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/merged-query-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/merged-query-settings.webp\" alt=\"merged query settings\" class=\"wp-image-44899\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/merged-query-settings.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/merged-query-settings-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/merged-query-settings-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/merged-query-settings-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/merged-query-settings-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/merged-query-settings-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, we add three pre-made queries by clicking the \u201c<strong>Add new query<\/strong>\u201d button in the <strong>Queries to Merge <\/strong>section.<\/p>\n\n\n\n<p>The first is the query for the promoted posts, the second \u2014 is for the posts published today, and the third \u2014 is for ordering the remaining posts by a certain parameter (salary).<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/queries-to-merge-into-a-single-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/queries-to-merge-into-a-single-query.webp\" alt=\"queries to merge into a single query\" class=\"wp-image-44903\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/queries-to-merge-into-a-single-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/queries-to-merge-into-a-single-query-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/queries-to-merge-into-a-single-query-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/queries-to-merge-into-a-single-query-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/queries-to-merge-into-a-single-query-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/queries-to-merge-into-a-single-query-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, we hit the \u201c<strong>Add\/Update Query<\/strong>\u201d button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"placing-a-listing-grid-and-applying-the-merged-query\">Placing a Listing Grid and Applying the Merged Query<\/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>We go to <strong><em>WordPress Dashboard &gt; Pages<\/em><\/strong> and hit the \u201c<strong>Add New Page<\/strong>\u201d and \u201c<strong>Edit with Elementor<\/strong>\u201d buttons. You can create a new page or edit an existing one, and you can use Elementor, WordPress block editor (Gutenberg), or Bricks builders.<\/p>\n\n\n\n<p>Drag-n-drop the <strong>Listing Grid <\/strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/showcasing-custom-posts-via-listing-grid-with-bricks\/\" target=\"_blank\" rel=\"noreferrer noopener\">element<\/a>, <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">widget<\/a>, or <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/listing-grid-block-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">block<\/a> (depending on the builder you use) to the editing page and set the recently created <strong>Listing<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/listing-grid-with-vacancies.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/listing-grid-with-vacancies.webp\" alt=\"listing grid with vacancies\" class=\"wp-image-44898\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/listing-grid-with-vacancies.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/listing-grid-with-vacancies-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/listing-grid-with-vacancies-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/listing-grid-with-vacancies-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/listing-grid-with-vacancies-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/listing-grid-with-vacancies-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, unfold the <strong>Custom Query <\/strong>tab, activate the <strong>Use Custom Query<\/strong> toggle, and select the just created \u201cMerged Query\u201d from the <strong>Custom Query<\/strong> drop-down.<\/p>\n\n\n\n<p>In our case, the \u201cMerged Query\u201d works with the <strong>Listing Grid<\/strong> as intended: first, it shows the promoted post, then the posts published today (June 27, 2024), and the other posts are ordered from the highest salary to the lowest.<\/p>\n\n\n\n<p>The page can be saved by clicking the \u201c<strong>Publish\/Update<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/posts-displayed-with-the-merged-query.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/posts-displayed-with-the-merged-query.webp\" alt=\"posts displayed with the merged query\" class=\"wp-image-44901\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/posts-displayed-with-the-merged-query.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/posts-displayed-with-the-merged-query-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/posts-displayed-with-the-merged-query-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/posts-displayed-with-the-merged-query-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/posts-displayed-with-the-merged-query-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/posts-displayed-with-the-merged-query-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>That\u2019s all. Now you know how to use <em>JetEngine<\/em>&#8216;s Merged Query to combine multiple queries into one <strong>Listing Grid<\/strong> on your WordPress website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to use JetEngine&#8217;s Merged Query to combine multiple queries into one Listing Grid.<\/p>\n","protected":false},"author":8,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[405],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use Merged Query \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to use JetEngine&#039;s Merged Query to combine multiple queries into one Listing Grid. Discover how to display promoted posts first, then today&#039;s posts, and other posts in a specific order.\" \/>\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\/using-merged-query-jetengine\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Merged Query \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to use JetEngine&#039;s Merged Query to combine multiple queries into one Listing Grid. Discover how to display promoted posts first, then today&#039;s posts, and other posts in a specific order.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-26T10:29:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type.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=\"11 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\/using-merged-query-jetengine\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/\",\"name\":\"How to Use Merged Query \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2024-07-10T10:05:03+00:00\",\"dateModified\":\"2025-05-26T10:29:35+00:00\",\"description\":\"Learn how to use JetEngine's Merged Query to combine multiple queries into one Listing Grid. Discover how to display promoted posts first, then today's posts, and other posts in a specific order.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/#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 Merged Query\"}]},{\"@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 Merged Query \u2014 JetEngine | Crocoblock","description":"Learn how to use JetEngine's Merged Query to combine multiple queries into one Listing Grid. Discover how to display promoted posts first, then today's posts, and other posts in a specific order.","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\/using-merged-query-jetengine\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Merged Query \u2014 JetEngine | Crocoblock","og_description":"Learn how to use JetEngine's Merged Query to combine multiple queries into one Listing Grid. Discover how to display promoted posts first, then today's posts, and other posts in a specific order.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/","og_site_name":"Help Center","article_modified_time":"2025-05-26T10:29:35+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/vacancies-custom-post-type.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/","name":"How to Use Merged Query \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2024-07-10T10:05:03+00:00","dateModified":"2025-05-26T10:29:35+00:00","description":"Learn how to use JetEngine's Merged Query to combine multiple queries into one Listing Grid. Discover how to display promoted posts first, then today's posts, and other posts in a specific order.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/using-merged-query-jetengine\/#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 Merged Query"}]},{"@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\/44886"}],"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\/8"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=44886"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=44886"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=44886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}