{"id":52248,"date":"2026-07-01T17:55:03","date_gmt":"2026-07-01T17:55:03","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=tips-and-tricks&#038;p=52248"},"modified":"2026-07-01T19:22:51","modified_gmt":"2026-07-01T19:22:51","slug":"displaying-a-label-name-from-a-query","status":"publish","type":"tips-and-tricks","link":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/","title":{"rendered":"Displaying a Label Name from a Query"},"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>To display the <strong>CPT<\/strong> post titles and\/or metadata as the labels of the filter&#8217;s options, first you need to build a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">query<\/a>. Next, create a filter to display post titles or the meta field&#8217;s value as the labels of the filter&#8217;s options. Then build a listing and add this filter and the listing to a page.<\/p>\n\n\n\n<p>To show how to do it, we created the \u201cProperty\u201d <strong>CPT<\/strong> and \u201cAgents\u201d <strong>CPT<\/strong> and set the \u201cone-to-many\u201d relation between them, assuming that one property can be managed by several agents. In this relation, we consider the \u201cProperty\u201d <strong>CPT<\/strong> as a \u201cparent\u201d and the \u201cAgent\u201d <strong>CPT<\/strong> as a \u201cchild\u201d.<\/p>\n\n\n\n<p>Read the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-how-to-create-relationships-between-posts\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create Relations Between Posts<\/strong><\/a> tutorial to learn how to create and configure different types of relations.&nbsp;<\/p>\n\n\n\n<p>In addition, watch all stages of usage queries in relations (creating the relation, linking individual posts, building the query, displaying related child posts on the parent single page, and showing parent posts on the child single page) in the <a href=\"https:\/\/www.youtube.com\/watch?v=ZB9gE7JAMAs\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create Relations Between WordPress Posts<\/strong><\/a> video.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"display-cpt-post-titles-via-filternbsp\"><strong>Display CPT Post Titles via Filter&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>In this section, we explain how to display <strong>CPT<\/strong> post titles as the labels of the filter&#8217;s options. In this case, the post titles from the \u201cAgent\u201d <strong>CPT<\/strong> are used as the filter options. Selecting an option displays the \u201cProperty\u201d <strong>CPT<\/strong> posts associated with the selected agent.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"query\"><strong>Build the query<\/strong><\/h3>\n\n\n\n<p>First, move to the <strong><em>WordPress Dashboard &gt; JetEngine &gt; Query Builder <\/em><\/strong>tab and press the \u201c<strong>Add New<\/strong>\u201d button to build a new query. Here, we insert the query\u2019s <strong>Name<\/strong> (the \u201cDisplay CPT Post Titles via Filter\u201d, for this query); then, set the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-query-builder-sql-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQL\/AI Query<\/a>\u201d <strong>Query Type<\/strong>. In this tutorial, for usability reasons, we fill in the optional<strong> Custom Query ID<\/strong> field, but it can be left empty if not needed.<\/p>\n\n\n\n<p>Next, we move to the <strong>Custom SQL Query<\/strong> section and select the \u201cjet_rel_default\u201d option in the <strong>From table<\/strong> dropdown.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1-1024x640.webp\" alt=\"the query general settings configuration\" class=\"wp-image-52249\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>After that, we enable the <strong>Use Join<\/strong> toggle and press the \u201c<strong>Add new<\/strong>\u201d button in the newly appeared <strong>Join Tables<\/strong> block. Then, we select the following settings: \u201cInner Join\u201d <strong>Join Type<\/strong> and \u201cposts\u201d <strong>Join Table<\/strong>. After that, we insert the&nbsp; \u201cID\u201d option in the <strong>When current table column <\/strong>and the \u201cchild_object_id\u201d option in the <strong>Is equal to other table column<\/strong> dropdowns.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-join-tables-settings-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-join-tables-settings-1824x1140-1-1024x640.webp\" alt=\"the query join tables settings\" class=\"wp-image-52250\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-join-tables-settings-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-join-tables-settings-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-join-tables-settings-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-join-tables-settings-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-join-tables-settings-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-join-tables-settings-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>After that, press the \u201c<strong>Add new<\/strong>\u201d button in the newly appeared <strong>Where<\/strong> block, and then select the \u201cjet_rel_default.rel.id\u201d option in the <strong>Column <\/strong>field, the \u201cEqual (=)\u201d option in the <strong>Compare<\/strong> field, and insert the ID of the relation in the <strong>Value<\/strong> field (in this case, we type the \u201c102\u201d <strong>Value<\/strong>).<\/p>\n\n\n\n<p>Finally, scroll to the top of the page and save the query.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"filter\"><strong>Configure the filter settings<\/strong><\/h3>\n\n\n\n<p>The next step is creating the filter. Here, we proceed to the <strong><em>WordPress Dashboard &gt; Smart Filters &gt; Add <\/em><\/strong><strong><em>N<\/em><\/strong><strong><em>ew<\/em><\/strong> tab and create a new filter of the required type. After that, we insert the <strong>Filter Name<\/strong> (\u201cProperty to Agent Filter\u201d, in this tutorial), then choose the \u201cSelect\u201d <strong>Filter Type<\/strong>.<\/p>\n\n\n\n<p>Next, we set the \u201cJetEngine Query Builder\u201d <strong>Data Source<\/strong>, and select the previously created query in the <strong>Select Query <\/strong>dropdown. In the last step, we insert the \u201cchild_object_id\u201d text in the <strong>Property to get Value from<\/strong> field and the \u201cpost_title\u201d option in the <strong>Property to get Label from<\/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\/2026\/07\/the-select-filter-settings-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-select-filter-settings-1824x1140-1-1024x640.webp\" alt=\"the select filter settings\" class=\"wp-image-52251\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-select-filter-settings-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-select-filter-settings-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-select-filter-settings-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-select-filter-settings-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-select-filter-settings-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-select-filter-settings-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Then, scroll the page down to the <strong>Query Variable<\/strong> field, press the \u201c<strong>Dynamic Tag<\/strong>\u201d icon, and select the \u201cJetEngine: filters parents items list by children IDs\u201d option in the <strong>Query Variable <\/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\/2026\/07\/setting-the-query-variable-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/setting-the-query-variable-1824x1140-1-1024x640.webp\" alt=\"setting the query variable\" class=\"wp-image-52252\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/setting-the-query-variable-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/setting-the-query-variable-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/setting-the-query-variable-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/setting-the-query-variable-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/setting-the-query-variable-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/setting-the-query-variable-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>After that, choose the needed <strong>Relation<\/strong> from the corresponding dropdown in the newly appeared window. Here, we type the following text in the <strong>Query Variable<\/strong> field:<\/p>\n\n\n\n<p>\u201crelated_parents:102\u201d<\/p>\n\n\n\n<p>where \u201crelated_parent\u201d is the previously built <strong>Relation<\/strong> with the \u201crelated_parent\u201d <strong>Name<\/strong> and \u201c102\u201d is the relation\u2019s ID.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-queried-field-key-set-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-queried-field-key-set-1824x1140-1-1024x640.webp\" alt=\"the queried field key set\" class=\"wp-image-52253\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-queried-field-key-set-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-queried-field-key-set-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-queried-field-key-set-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-queried-field-key-set-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-queried-field-key-set-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-queried-field-key-set-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Finally, set the \u201cEqual (=)\u201d <strong>Comparison operator<\/strong> and save the filter.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-listing-template\"><strong>Create a listing template<\/strong><\/h3>\n\n\n\n<p>&nbsp;First, create a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-a-listing-template-for-post-types\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing template<\/strong><\/a> for the parent <strong>CPT<\/strong> in the <strong><em>WordPress Dashboard &gt; JetEngine &gt; Listings\/Components<\/em><\/strong> tab. In this tutorial, the parent <strong>CPT<\/strong> is the \u201cProperty\u201d <strong>CPT<\/strong>.<\/p>\n\n\n\n<p>Here, we\u2019ll use Elementor and add the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a> (to display the meta field values) and the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/jetengine-dynamic-image-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Image<\/strong><\/a> (to display the featured image of the corresponding post) widgets into the listing template to it, but you can customize the listing as needed.<\/p>\n\n\n\n<p>Finally, save the template.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-the-listing-to-a-page\"><strong>Add the listing to a page<\/strong><\/h3>\n\n\n\n<p>The last stage is displaying the listing via the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing Grid<\/strong><\/a> widget. Here, we divide the page into two columns and insert the filter into the left column and the listing into the right one.&nbsp;<\/p>\n\n\n\n<p>Then, move to the front end and check if the filter works correctly.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-displayed-via-the-listing-grid-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-displayed-via-the-listing-grid-1824x1140-1-1024x640.webp\" alt=\"post titles as filter options displayed via the listing grid\" class=\"wp-image-52257\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-displayed-via-the-listing-grid-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-displayed-via-the-listing-grid-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-displayed-via-the-listing-grid-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-displayed-via-the-listing-grid-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-displayed-via-the-listing-grid-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-displayed-via-the-listing-grid-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Here, we select the \u201cHannah Olson\u201d filter option, and the listing shows the corresponding <strong>CPT<\/strong> posts.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-on-the-front-end-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-on-the-front-end-1824x1140-1-1024x640.webp\" alt=\"post titles as filter options on the front end\" class=\"wp-image-52255\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-on-the-front-end-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-on-the-front-end-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-on-the-front-end-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-on-the-front-end-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-on-the-front-end-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/post-titles-as-filter-options-on-the-front-end-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"display-cpt-post-metadata-via-filternbsp\"><strong>Display CPT Post Metadata via Filter&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>Here, we explain how to display <strong>CPT<\/strong> post meta values as the labels of the filter&#8217;s options. In this case, the post meta values from the \u201cAgent\u201d <strong>CPT<\/strong> are used as the filter options. Selecting an option displays the \u201cProperty\u201d <strong>CPT<\/strong> posts associated with the chosen value.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-the-query\"><strong>Build the query<\/strong><\/h3>\n\n\n\n<p>The query used in this case has the same settings as the <a href=\"#query\">previously built<\/a> one, except for the <strong>Join Tables<\/strong> and <strong>Where<\/strong> blocks, which have the specific settings. First, configure the <strong>Join Tables<\/strong> fields: the \u201cInner Join\u201d option should be selected in the <strong>Join Type <\/strong>dropdown and the \u201cpostmeta\u201d option in the <strong>Join Table <\/strong>dropdown. In addition, the \u201cchild_object_id\u201d option should be selected in the <strong>Is equal to other table column<\/strong> field.<\/p>\n\n\n\n<p>Then, move to the <strong>Where<\/strong> block. Here, select the \u201cpostmeta.key\u201d option in the <strong>Column<\/strong> field, the \u201cEqual (=)\u201d option in the <strong>Compare<\/strong> field, and set the name of the needed meta field in the <strong>Value<\/strong> field (the \u201cnote\u201d, in this tutorial).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-settings-to-display-metafield-values-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-settings-to-display-metafield-values-1824x1140-1-1024x640.webp\" alt=\"the query settings to display metafield values\" class=\"wp-image-52259\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-settings-to-display-metafield-values-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-settings-to-display-metafield-values-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-settings-to-display-metafield-values-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-settings-to-display-metafield-values-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-settings-to-display-metafield-values-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-settings-to-display-metafield-values-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once configured, scroll up to the top of the page and save the query.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-the-filter-settings\"><strong>Configure the filter settings<\/strong><\/h3>\n\n\n\n<p>The filter developed in this stage has the same settings as the <a href=\"#filter\">previously built filter<\/a>, except for the <strong>Property to get Value from field<\/strong>, which should have the \u201cmeta_value\u201d option set.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-settings-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-settings-1824x1140-1-1024x640.webp\" alt=\"the filter settings condivg\" class=\"wp-image-52277\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-settings-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-settings-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-settings-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-settings-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-settings-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-settings-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\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><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"test-the-workflow\"><strong>Test the Workflow<\/strong><\/h3>\n\n\n\n<p>The next workflow is the same as the workflow for the previous case: create a listing for the \u201cProperty\u201d <strong>CPT<\/strong>. Here we insert the <strong>Dynamic Field<\/strong> and <strong>Dynamic Image<\/strong> widgets, but you can design the listing as needed.<\/p>\n\n\n\n<p>Then, add the filter and the listing to the page. Save the page and move to the front end.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/meta-values-as-filter-options-on-the-front-end-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/meta-values-as-filter-options-on-the-front-end-1824x1140-1-1024x640.webp\" alt=\"\" class=\"wp-image-52263\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/meta-values-as-filter-options-on-the-front-end-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/meta-values-as-filter-options-on-the-front-end-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/meta-values-as-filter-options-on-the-front-end-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/meta-values-as-filter-options-on-the-front-end-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/meta-values-as-filter-options-on-the-front-end-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/meta-values-as-filter-options-on-the-front-end-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Check if the filter works correctly.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large is-resized\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-with-meta-fields-as-options-applied-1824x1140-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-with-meta-fields-as-options-applied-1824x1140-1-1024x640.webp\" alt=\"the filter with meta fields as options applied\" class=\"wp-image-52264\" style=\"width:840px;height:auto\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-with-meta-fields-as-options-applied-1824x1140-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-with-meta-fields-as-options-applied-1824x1140-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-with-meta-fields-as-options-applied-1824x1140-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-with-meta-fields-as-options-applied-1824x1140-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-with-meta-fields-as-options-applied-1824x1140-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-filter-with-meta-fields-as-options-applied-1824x1140-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">FAQ<\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1782923692925\"><strong class=\"schema-faq-question\"><strong>Can I set another type of relation (e.g., \u201cmany-to-many\u201d) between these CPTs?<\/strong><\/strong> <p class=\"schema-faq-answer\">Yes, feel free to set the needed relation; the workflow will not change.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1782924976540\"><strong class=\"schema-faq-question\"><strong>What types of filters can be applied?<\/strong><\/strong> <p class=\"schema-faq-answer\">Here, we used the <strong>Select Filter<\/strong>. Also, the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-create-a-new-filter-and-apply-it-to-publications\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Checkboxes list<\/strong><\/a> and the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/radio-filter-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Radio<\/strong><\/a> filters can be applied.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1782925001579\"><strong class=\"schema-faq-question\"><strong>What does the filter show if the meta field is empty?<\/strong><\/strong> <p class=\"schema-faq-answer\">If the selected meta field does not contain a value, the filter will not show the meta field as an option.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1782925244052\"><strong class=\"schema-faq-question\"><strong>Can I use different meta fields for different filters?<\/strong><\/strong> <p class=\"schema-faq-answer\">Yes, in this case, you should configure each filter independently and apply it where needed.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1782925266492\"><strong class=\"schema-faq-question\"><strong>Will filter options be updated automatically?<\/strong><\/strong> <p class=\"schema-faq-answer\">Yes. If meta values are updated, the corresponding data will be updated too.<br\/><\/p> <\/div> <\/div>\n\n\n\n<p>That\u2019s it. Now you know how to filter the related data and display post titles and the meta field values as the labels of the filter&#8217;s options using the <em>JetSmartFilters<\/em> plugin for WordPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to display post titles and the meta field values as the labels of the filter&#8217;s options.<\/p>\n","protected":false},"author":12,"featured_media":0,"template":"","format":"standard","tipstricks-tags":[359,360],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Displaying a Label Name from a Query<\/title>\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\/tips-and-tricks\/displaying-a-label-name-from-a-query\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Displaying a Label Name from a Query\" \/>\n<meta property=\"og:description\" content=\"Learn how to display post titles and the meta field values as the labels of the filter&#039;s options.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-01T19:22:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1-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=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/\",\"name\":\"Displaying a Label Name from a Query\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2026-07-01T17:55:03+00:00\",\"dateModified\":\"2026-07-01T19:22:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782923692925\"},{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782924976540\"},{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925001579\"},{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925244052\"},{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925266492\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips & tricks\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Displaying a Label Name from a 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\/\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782923692925\",\"position\":1,\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782923692925\",\"name\":\"Can I set another type of relation (e.g., \u201cmany-to-many\u201d) between these CPTs?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, feel free to set the needed relation; the workflow will not change.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782924976540\",\"position\":2,\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782924976540\",\"name\":\"What types of filters can be applied?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Here, we used the <strong>Select Filter<\/strong>. Also, the <a href=\\\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-create-a-new-filter-and-apply-it-to-publications\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\"><strong>Checkboxes list<\/strong><\/a> and the <a href=\\\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/radio-filter-overview\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\"><strong>Radio<\/strong><\/a> filters can be applied.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925001579\",\"position\":3,\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925001579\",\"name\":\"What does the filter show if the meta field is empty?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"If the selected meta field does not contain a value, the filter will not show the meta field as an option.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925244052\",\"position\":4,\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925244052\",\"name\":\"Can I use different meta fields for different filters?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, in this case, you should configure each filter independently and apply it where needed.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925266492\",\"position\":5,\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925266492\",\"name\":\"Will filter options be updated automatically?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes. If meta values are updated, the corresponding data will be updated too.<br\/>\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Displaying a Label Name from a Query","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\/tips-and-tricks\/displaying-a-label-name-from-a-query\/","og_locale":"en_US","og_type":"article","og_title":"Displaying a Label Name from a Query","og_description":"Learn how to display post titles and the meta field values as the labels of the filter's options.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/","og_site_name":"Help Center","article_modified_time":"2026-07-01T19:22:51+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/07\/the-query-general-settings-configuration-1824x1140-1-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/","url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/","name":"Displaying a Label Name from a Query","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2026-07-01T17:55:03+00:00","dateModified":"2026-07-01T19:22:51+00:00","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782923692925"},{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782924976540"},{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925001579"},{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925244052"},{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925266492"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Tips & tricks","item":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/"},{"@type":"ListItem","position":3,"name":"Displaying a Label Name from a 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\/"}},{"@type":"Question","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782923692925","position":1,"url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782923692925","name":"Can I set another type of relation (e.g., \u201cmany-to-many\u201d) between these CPTs?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes, feel free to set the needed relation; the workflow will not change.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782924976540","position":2,"url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782924976540","name":"What types of filters can be applied?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Here, we used the <strong>Select Filter<\/strong>. Also, the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-create-a-new-filter-and-apply-it-to-publications\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Checkboxes list<\/strong><\/a> and the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/radio-filter-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Radio<\/strong><\/a> filters can be applied.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925001579","position":3,"url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925001579","name":"What does the filter show if the meta field is empty?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"If the selected meta field does not contain a value, the filter will not show the meta field as an option.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925244052","position":4,"url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925244052","name":"Can I use different meta fields for different filters?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes, in this case, you should configure each filter independently and apply it where needed.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925266492","position":5,"url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/displaying-a-label-name-from-a-query\/#faq-question-1782925266492","name":"Will filter options be updated automatically?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes. If meta values are updated, the corresponding data will be updated too.<br\/>","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks\/52248"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/tips-and-tricks"}],"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=52248"}],"wp:term":[{"taxonomy":"tipstricks-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tipstricks-tags?post=52248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}