{"id":32198,"date":"2022-12-12T09:34:04","date_gmt":"2022-12-12T09:34:04","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=32198"},"modified":"2024-01-12T08:36:52","modified_gmt":"2024-01-12T08:36:52","slug":"how-to-create-admin-filters-for-the-custom-post-type","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/","title":{"rendered":"How to Create Admin FIlters for the Custom Post Type"},"content":{"rendered":"\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/start-screen-adm-filter.jpg\" alt=\"admin filter in the post type\">\n\n\n\n<p>Head to <strong><em>WordPress Dashboard <\/em><\/strong><strong><em>&gt;<\/em><\/strong><strong><em> JetEngine <\/em><\/strong><strong><em>&gt;<\/em><\/strong><strong><em> Post Types<\/em><\/strong><strong>. <\/strong>Find the needed <strong>Post Type<\/strong> and edit it.&nbsp;<\/p>\n\n\n\n<p>After that, scroll down to the Admin Filter tool and click \u201c<strong>Add new<\/strong>\u201d in the Admin Filters section.<\/p>\n\n\n\n<p>The basic setup is over; now, let&#8217;s create a specific filter type.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-admin-filters-for-posts-by-taxonomies\"><strong>Create Admin Filters for Posts by Taxonomies<\/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>This filter type helps the admin to sort posts by taxonomy assigned to the needed <strong>Custom Post Type<\/strong>. Follow this tutorial to learn more about <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/creating-custom-taxonomy-with-jetengine\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create a Custom Taxonomy<\/a>.<\/p>\n\n\n\n<p>For example, there is a \u201cRoom\u201d post type, and we need to filter rooms by the \u201cRoom Types\u201d<strong> <\/strong>taxonomy<strong>.<\/strong>&nbsp;<\/p>\n\n\n\n<p>Once the Admin tab in the Custom Post Type is opened, set the <strong>Name\/Placeholder<\/strong> for a filter and select the \u201cFilter by Taxonomy\u201d option<strong> <\/strong>in the <strong>Type <\/strong>dropdown.<strong><em>&nbsp;<\/em><\/strong>Then, don\u2019t forget to pick the needed <strong>Taxonomy<\/strong> by which posts will be filtered.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/tax-filter-1.jpg\" alt=\"filter by taxonomy\">\n\n\n\n<p>To change the categories display order in the filters, enable the <strong>Show Counts <\/strong>feature and set the \u201cFrom highest to lowest values\u201d <strong>Order<\/strong>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/order-count.jpg\" alt=\"setting order\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"build-admin-filters-by-meta-data\"><strong>Build Admin Filters by Meta Data<\/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<h3 class=\"wp-block-heading\" id=\"glossary-option-source\">Glossary option source<\/h3>\n\n\n\n<p>Firstly, create a filter with the \u201cFilter by meta data\u201d <strong>Type<\/strong>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/meta-data-filter.jpg\" alt=\"filter by meta data settings\">\n\n\n\n<p>Now to filter by specific meta field, select it from the list.<br>To pull the labels from the glossary, choose the samely named item in the <strong>Options Source<\/strong> drop-down and pick the needed glossary from the <strong>Glossary<\/strong> list.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/meta-data-filter-field.gloss_.jpg\" alt=\"glossary options source\">\n\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\">Mind that if you use the date timestamp field, there can be issues with its data display. Read more about it if you are <a href=\"https:\/\/crocoblock.com\/troubleshooting\/articles\/unable-to-display-date-field-in-admin-filters\/\">Unable to Display Date Field in the Admin Filters Properly<\/a>.\n<\/p><\/div><\/div>\n\n\n\n<p>In the following picture, you may see configured admin filter:<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/ready-gloss.jpg\" alt=\"admin filter configured\">\n\n\n\n<p>Save the changes and check the results.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/ready-gloss2.jpg\" alt=\"glossary admin filter\">\n\n\n\n<h3 class=\"wp-block-heading\" id=\"field-options-source\">Field options source<\/h3>\n\n\n\n<p>Now we will create another admin filter, but the \u201cSelect from database\u201d or \u201cField options\u201d configuration will be used in the current case. It depends on the meta field type.<\/p>\n\n\n\n<p>This option pulls the value out of the meta field from each post that has a value inside the selected field.<\/p>\n\n\n\n<p>In this example, a filter is by the text field, which shows a cost for a specific room according to the <strong>Custom Meta Field<em> <\/em><\/strong>key.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/meta-price-key.jpg\" alt=\"filter by meta data settings\">\n\n\n\n<p>The same result can be achieved by selecting the exact meta field from the list. You may see the configuration in the picture below.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/meta-price-a-list.jpg\" alt=\"filter by meta field\">\n\n\n\n<p>In this case, we should choose the \u201cSelect from database\u201d <strong>Options Source<\/strong>. This option can be different depending on the meta field type you will use.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/meta-price-options-source.jpg\" alt=\"select from database options source\">\n\n\n\n<p>Now let&#8217;s check the result.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/meta-price-result.jpg\" alt=\"admin filter by meta field\">\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"set-up-admin-filters-by-related-items\"><strong>Set up Admin Filters by Related Items<\/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>To create this filter type, you should create a relation first. Please follow the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/jetengine-how-to-create-relationships-between-posts\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create Relationships Between Posts<\/a> tutorial.&nbsp;<\/p>\n\n\n\n<p>Now we will create a filter for \u201cOrders\u201d <strong>Custom Post Type<\/strong> by related \u201cRoom\u201d posts.&nbsp;<\/p>\n\n\n\n<p>Select the needed filter <strong>Type <\/strong>and choose the <strong>Relation <\/strong>by which posts will be filtered.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/related-admin-filter.jpg\" alt=\"filter by related items settings\">\n\n\n\n<p>Save the changes and check the results.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/related-admin-filter-result.jpg\" alt=\"filter by related items\">\n<\/div><\/div>\n\n\n\n<p>That is it. The admin filters are set. Now you know how to create the admin filters for your Post Types.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With JetEngine Admin Filters, you can create back-end filters for the Custom Post Type. To do it, please, follow the next instruction.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[386,257],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating Admin FIlters for the Custom Post Type with JetEngine Meta | Crocoblock<\/title>\n<meta name=\"description\" content=\"Build the Admin filters for Custom Post Type for WordPress posts filtering by taxonomy, glossary, meta fields, and related post items.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating Admin FIlters for the Custom Post Type with JetEngine Meta | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Build the Admin filters for Custom Post Type for WordPress posts filtering by taxonomy, glossary, meta fields, and related post items.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-12T08:36:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/start-screen-adm-filter.jpg\" \/>\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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/\",\"name\":\"Creating Admin FIlters for the Custom Post Type with JetEngine Meta | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2022-12-12T09:34:04+00:00\",\"dateModified\":\"2024-01-12T08:36:52+00:00\",\"description\":\"Build the Admin filters for Custom Post Type for WordPress posts filtering by taxonomy, glossary, meta fields, and related post items.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/#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 Create Admin FIlters for the Custom Post Type\"}]},{\"@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":"Creating Admin FIlters for the Custom Post Type with JetEngine Meta | Crocoblock","description":"Build the Admin filters for Custom Post Type for WordPress posts filtering by taxonomy, glossary, meta fields, and related post items.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/","og_locale":"en_US","og_type":"article","og_title":"Creating Admin FIlters for the Custom Post Type with JetEngine Meta | Crocoblock","og_description":"Build the Admin filters for Custom Post Type for WordPress posts filtering by taxonomy, glossary, meta fields, and related post items.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/","og_site_name":"Help Center","article_modified_time":"2024-01-12T08:36:52+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2022\/12\/start-screen-adm-filter.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/","name":"Creating Admin FIlters for the Custom Post Type with JetEngine Meta | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2022-12-12T09:34:04+00:00","dateModified":"2024-01-12T08:36:52+00:00","description":"Build the Admin filters for Custom Post Type for WordPress posts filtering by taxonomy, glossary, meta fields, and related post items.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-create-admin-filters-for-the-custom-post-type\/#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 Create Admin FIlters for the Custom Post Type"}]},{"@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\/32198"}],"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\/9"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=32198"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=32198"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=32198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}