{"id":4217,"date":"2018-11-12T06:55:03","date_gmt":"2018-11-12T11:55:03","guid":{"rendered":"https:\/\/themespress.ca\/?p=4217"},"modified":"2021-11-18T06:48:27","modified_gmt":"2021-11-18T11:48:27","slug":"sort-by-post-type-in-wordpress-admin-columns","status":"publish","type":"post","link":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/","title":{"rendered":"Sort by Post Type in WordPress Admin Columns"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. <\/p>\n<p>So let&#8217;s say for example that you want to sort by ID the job post type from highest to lowest. First, we will need to build the necessary columns for our Job post type.<\/p>\n<p>So here&#8217;s to adding our id-job column; make sure to change the post type name. <\/p>\n\n\t\t<\/div>\n\t<\/div>\n<div id=\"ts-enlighterjs-container-2313930\" class=\"ts-enlighterjs-container-single-enabled  \" style=\"width: 100%;  margin-top: 0px; margin-bottom: 0px;\" data-enlighter-doubleclick=\"true\" data-enlighter-windowbutton=\"true\" data-enlighter-windowtext=\"New Window\" data-enlighter-rawbutton=\"true\" data-enlighter-rawtext=\"RAW Code\" data-enlighter-infobutton=\"false\" data-enlighter-infotext=\"EnlighterJS\" data-enlighter-indent=\"2\"><pre id=\"ts-enlighterjs-pre-2313930\" class=\"\" style=\"white-space: pre-wrap; height: 100%; margin: 0; padding: 0;\" data-enlighter-language=\"php\" data-enlighter-theme=\"enlighter\" data-enlighter-group=\"\" data-enlighter-title=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"1\" data-enlighter-highlight=\"\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Admin columns Informations Post Type \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\nadd_filter( &#039;manage_emplois_posts_columns&#039;, &#039;themespress_custom_mycpt_columns&#039; );\nfunction themespress_custom_mycpt_columns( $columns ) {\n  $columns[&#039;id-emploi&#039;] = __( &#039;Id de l&#039;emploi&#039;, &#039;themespress&#039; );\n  return $columns;\n}<\/pre><\/div>\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>We will display our results in the column by following the instruction; if we want to add more columns.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<div id=\"ts-enlighterjs-container-8495392\" class=\"ts-enlighterjs-container-single-enabled  \" style=\"width: 100%;  margin-top: 0px; margin-bottom: 0px;\" data-enlighter-doubleclick=\"true\" data-enlighter-windowbutton=\"true\" data-enlighter-windowtext=\"New Window\" data-enlighter-rawbutton=\"true\" data-enlighter-rawtext=\"RAW Code\" data-enlighter-infobutton=\"false\" data-enlighter-infotext=\"EnlighterJS\" data-enlighter-indent=\"2\"><pre id=\"ts-enlighterjs-pre-8495392\" class=\"\" style=\"white-space: pre-wrap; height: 100%; margin: 0; padding: 0;\" data-enlighter-language=\"php\" data-enlighter-theme=\"enlighter\" data-enlighter-group=\"\" data-enlighter-title=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"1\" data-enlighter-highlight=\"\">add_filter( &#039;manage_emplois_posts_columns&#039;, &#039;themespress_custom_edit_mycpt_columns&#039; );\nfunction themespress_custom_edit_mycpt_columns( $columns ) {\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Admin columns Informations Post Type \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n  switch ( $column ) {\n    case &#039;id-emploi&#039; :\n\t\/\/ On appelle notre meta key\n        echo get_post_meta( $post_id, &#039;id-emploi&#039;, true );\n\tbreak;\n    }\n}<\/pre><\/div>\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>We will now do our parse_query that will enable us to sort our Job ID from highest to lowest. We add a condition &#8220;return&#8221; if we are not in the WP admin.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<div id=\"ts-enlighterjs-container-6354183\" class=\"ts-enlighterjs-container-single-enabled  \" style=\"width: 100%;  margin-top: 0px; margin-bottom: 0px;\" data-enlighter-doubleclick=\"true\" data-enlighter-windowbutton=\"true\" data-enlighter-windowtext=\"New Window\" data-enlighter-rawbutton=\"true\" data-enlighter-rawtext=\"RAW Code\" data-enlighter-infobutton=\"false\" data-enlighter-infotext=\"EnlighterJS\" data-enlighter-indent=\"2\"><pre id=\"ts-enlighterjs-pre-6354183\" class=\"\" style=\"white-space: pre-wrap; height: 100%; margin: 0; padding: 0;\" data-enlighter-language=\"php\" data-enlighter-theme=\"enlighter\" data-enlighter-group=\"\" data-enlighter-title=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"1\" data-enlighter-highlight=\"\">add_filter( &#039;parse_query&#039;, &#039;themespress_custom_post_sort&#039; );\nfunction themespress_custom_post_sort($query) {\n \n    if ( ! is_admin() )\n        return $query;\n \n    global $current_screen;\n    if ( isset( $current_screen ) &amp;&amp; &#039;emplois&#039; === $current_screen-&gt;post_type ) {\n        $query-&gt;query_vars[&#039;orderby&#039;]  = &#039;meta_value&#039;;\n        $query-&gt;query_vars[&#039;meta_key&#039;] = &#039;id-emploi&#039;;\n        $query-&gt;query_vars[&#039;order&#039;]    = &#039;DESC&#039;;\n    }\n}<\/pre><\/div><\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"With this tutorial, we will show you how to sort post type results in Wordpress admin by sorting with a post type meta key in numerical order. So let's say<div class=\"read-more\"><a class=\"btn button-secondary\" href=\"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/\">Read More<\/a><\/div>","protected":false},"author":81,"featured_media":4954,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[283],"tags":[332,326],"class_list":["post-4217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-body","tag-users"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Share the post &quot;Sort by Post Type in WordPress Admin Columns&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. So let\u2019s say for example that you want\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Daniel\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Themespress - Des tutoriels et ressources WordPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Sort by Post Type in WordPress Admin Columns - Themespress\" \/>\n\t\t<meta property=\"og:description\" content=\"Share the post &quot;Sort by Post Type in WordPress Admin Columns&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. So let\u2019s say for example that you want\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2018-11-12T11:55:03-05:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-11-18T11:48:27-05:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Sort by Post Type in WordPress Admin Columns - Themespress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Share the post &quot;Sort by Post Type in WordPress Admin Columns&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. So let\u2019s say for example that you want\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#blogposting\",\"name\":\"Sort by Post Type in WordPress Admin Columns - Themespress\",\"headline\":\"Sort by Post Type in WordPress Admin Columns\",\"author\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/themespress.ca\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/Sort-by-Post-Type-in-Wordpress-Admin-Columns.png\",\"width\":1920,\"height\":1080,\"caption\":\"Sort by Post Type in Wordpress Admin Columns\"},\"datePublished\":\"2018-11-12T06:55:03-05:00\",\"dateModified\":\"2021-11-18T06:48:27-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#webpage\"},\"articleSection\":\"Tutorials, Body, Users, Optional\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"name\":\"Tutorials\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#listItem\",\"name\":\"Sort by Post Type in WordPress Admin Columns\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#listItem\",\"name\":\"Accueil\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#listItem\",\"position\":3,\"name\":\"Sort by Post Type in WordPress Admin Columns\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"name\":\"Tutorials\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\",\"name\":\"Themespress\",\"description\":\"Des tutoriels et ressources WordPress\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/\",\"name\":\"Daniel\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93cd2188e40b3289d305e88acb676eb8b84078e50e06f4eb38a0152903b34c9d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Daniel\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#webpage\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/\",\"name\":\"Sort by Post Type in WordPress Admin Columns - Themespress\",\"description\":\"Share the post \\\"Sort by Post Type in WordPress Admin Columns\\\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. So let\\u2019s say for example that you want\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/themespress.ca\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/Sort-by-Post-Type-in-Wordpress-Admin-Columns.png\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#mainImage\",\"width\":1920,\"height\":1080,\"caption\":\"Sort by Post Type in Wordpress Admin Columns\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/sort-by-post-type-in-wordpress-admin-columns\\\/#mainImage\"},\"datePublished\":\"2018-11-12T06:55:03-05:00\",\"dateModified\":\"2021-11-18T06:48:27-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\",\"name\":\"Themespress\",\"description\":\"Des tutoriels et ressources WordPress\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Sort by Post Type in WordPress Admin Columns - Themespress","description":"Share the post \"Sort by Post Type in WordPress Admin Columns\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. So let\u2019s say for example that you want","canonical_url":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#blogposting","name":"Sort by Post Type in WordPress Admin Columns - Themespress","headline":"Sort by Post Type in WordPress Admin Columns","author":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"publisher":{"@id":"https:\/\/themespress.ca\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/themespress.ca\/wp-content\/uploads\/2018\/11\/Sort-by-Post-Type-in-Wordpress-Admin-Columns.png","width":1920,"height":1080,"caption":"Sort by Post Type in Wordpress Admin Columns"},"datePublished":"2018-11-12T06:55:03-05:00","dateModified":"2021-11-18T06:48:27-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#webpage"},"isPartOf":{"@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#webpage"},"articleSection":"Tutorials, Body, Users, Optional"},{"@type":"BreadcrumbList","@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/#listItem","position":1,"name":"Accueil","item":"https:\/\/themespress.ca\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","name":"Tutorials"}},{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","position":2,"name":"Tutorials","item":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/","nextItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#listItem","name":"Sort by Post Type in WordPress Admin Columns"},"previousItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/#listItem","name":"Accueil"}},{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#listItem","position":3,"name":"Sort by Post Type in WordPress Admin Columns","previousItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","name":"Tutorials"}}]},{"@type":"Organization","@id":"https:\/\/themespress.ca\/en\/#organization","name":"Themespress","description":"Des tutoriels et ressources WordPress","url":"https:\/\/themespress.ca\/en\/"},{"@type":"Person","@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author","url":"https:\/\/themespress.ca\/en\/author\/daniel\/","name":"Daniel","image":{"@type":"ImageObject","@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93cd2188e40b3289d305e88acb676eb8b84078e50e06f4eb38a0152903b34c9d?s=96&d=mm&r=g","width":96,"height":96,"caption":"Daniel"}},{"@type":"WebPage","@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#webpage","url":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/","name":"Sort by Post Type in WordPress Admin Columns - Themespress","description":"Share the post \"Sort by Post Type in WordPress Admin Columns\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. So let\u2019s say for example that you want","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/themespress.ca\/en\/#website"},"breadcrumb":{"@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#breadcrumblist"},"author":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"creator":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/themespress.ca\/wp-content\/uploads\/2018\/11\/Sort-by-Post-Type-in-Wordpress-Admin-Columns.png","@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#mainImage","width":1920,"height":1080,"caption":"Sort by Post Type in Wordpress Admin Columns"},"primaryImageOfPage":{"@id":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/#mainImage"},"datePublished":"2018-11-12T06:55:03-05:00","dateModified":"2021-11-18T06:48:27-05:00"},{"@type":"WebSite","@id":"https:\/\/themespress.ca\/en\/#website","url":"https:\/\/themespress.ca\/en\/","name":"Themespress","description":"Des tutoriels et ressources WordPress","inLanguage":"en-US","publisher":{"@id":"https:\/\/themespress.ca\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"Themespress - Des tutoriels et ressources WordPress","og:type":"article","og:title":"Sort by Post Type in WordPress Admin Columns - Themespress","og:description":"Share the post &quot;Sort by Post Type in WordPress Admin Columns&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. So let\u2019s say for example that you want","og:url":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/","article:published_time":"2018-11-12T11:55:03-05:00","article:modified_time":"2021-11-18T11:48:27-05:00","twitter:card":"summary","twitter:title":"Sort by Post Type in WordPress Admin Columns - Themespress","twitter:description":"Share the post &quot;Sort by Post Type in WordPress Admin Columns&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will show you how to sort post type results in WordPress admin by sorting with a post type meta key in numerical order. So let\u2019s say for example that you want"},"aioseo_meta_data":{"post_id":"4217","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-12 12:04:03","updated":"2025-06-07 20:44:05","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/themespress.ca\/en\/\" title=\"Accueil\">Accueil<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/themespress.ca\/en\/categorie\/tutorials\/\" title=\"Tutorials\">Tutorials<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSort by Post Type in WordPress Admin Columns\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Accueil","link":"https:\/\/themespress.ca\/en\/"},{"label":"Tutorials","link":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/"},{"label":"Sort by Post Type in WordPress Admin Columns","link":"https:\/\/themespress.ca\/en\/sort-by-post-type-in-wordpress-admin-columns\/"}],"_links":{"self":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/4217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/comments?post=4217"}],"version-history":[{"count":0,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/4217\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media\/4954"}],"wp:attachment":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media?parent=4217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/categories?post=4217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/tags?post=4217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}