{"id":6304,"date":"2016-04-29T13:53:56","date_gmt":"2016-04-29T17:53:56","guid":{"rendered":"https:\/\/themespress.ca\/?p=6304"},"modified":"2022-09-09T19:53:58","modified_gmt":"2022-09-09T23:53:58","slug":"query-rank-number-post-type","status":"publish","type":"post","link":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/","title":{"rendered":"Query Rank number Post type"},"content":{"rendered":"<p>This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the <strong>single.php<\/strong> file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. <\/p>\n<h2>Query Rank number Post type<\/h2>\n<p>Our function allows you to sort products by number of views.<\/p>\n<p>The function is ready to use out of the box. Just two parameters to adjust inside the query: Post Type name and Post Meta Key name; views or likes for example.<\/p>\n<h2>Download<\/h2>\n<p><a class=\"more\" href=\"https:\/\/themespress.ca\/produits\/ressources\/query-rank-number-post-type\/\">Query Rank number Post type<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have<\/p>\n<div class=\"read-more\"><a class=\"btn button-secondary\" href=\"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/\">Read More<\/a><\/div>\n","protected":false},"author":81,"featured_media":4529,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[283],"tags":[322],"class_list":["post-6304","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-query"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. Query Rank number Post type Our function\" \/>\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\/query-rank-number-post-type\/\" \/>\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=\"Query Rank number Post type - Themespress\" \/>\n\t\t<meta property=\"og:description\" content=\"This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. Query Rank number Post type Our function\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-04-29T17:53:56-04:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-09-09T23:53:58-04:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Query Rank number Post type - Themespress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. Query Rank number Post type Our function\" \/>\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\\\/query-rank-number-post-type\\\/#blogposting\",\"name\":\"Query Rank number Post type - Themespress\",\"headline\":\"Query Rank number Post type\",\"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\\\/2017\\\/02\\\/wsi-imageoptim-Query-Rank-number-Post-type-e1461937489794.jpg\",\"width\":900,\"height\":391},\"datePublished\":\"2016-04-29T13:53:56-04:00\",\"dateModified\":\"2022-09-09T19:53:58-04:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/query-rank-number-post-type\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/query-rank-number-post-type\\\/#webpage\"},\"articleSection\":\"Tutorials, Query\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/query-rank-number-post-type\\\/#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\\\/query-rank-number-post-type\\\/#listItem\",\"name\":\"Query Rank number Post type\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#listItem\",\"name\":\"Accueil\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/query-rank-number-post-type\\\/#listItem\",\"position\":3,\"name\":\"Query Rank number Post type\",\"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\\\/query-rank-number-post-type\\\/#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\\\/query-rank-number-post-type\\\/#webpage\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/query-rank-number-post-type\\\/\",\"name\":\"Query Rank number Post type - Themespress\",\"description\":\"This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. Query Rank number Post type Our function\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/query-rank-number-post-type\\\/#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\\\/2017\\\/02\\\/wsi-imageoptim-Query-Rank-number-Post-type-e1461937489794.jpg\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/query-rank-number-post-type\\\/#mainImage\",\"width\":900,\"height\":391},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/query-rank-number-post-type\\\/#mainImage\"},\"datePublished\":\"2016-04-29T13:53:56-04:00\",\"dateModified\":\"2022-09-09T19:53:58-04: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":"Query Rank number Post type - Themespress","description":"This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. Query Rank number Post type Our function","canonical_url":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/#blogposting","name":"Query Rank number Post type - Themespress","headline":"Query Rank number Post type","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\/2017\/02\/wsi-imageoptim-Query-Rank-number-Post-type-e1461937489794.jpg","width":900,"height":391},"datePublished":"2016-04-29T13:53:56-04:00","dateModified":"2022-09-09T19:53:58-04:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/#webpage"},"isPartOf":{"@id":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/#webpage"},"articleSection":"Tutorials, Query"},{"@type":"BreadcrumbList","@id":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/#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\/query-rank-number-post-type\/#listItem","name":"Query Rank number Post type"},"previousItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/#listItem","name":"Accueil"}},{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/#listItem","position":3,"name":"Query Rank number Post type","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\/query-rank-number-post-type\/#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\/query-rank-number-post-type\/#webpage","url":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/","name":"Query Rank number Post type - Themespress","description":"This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. Query Rank number Post type Our function","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/themespress.ca\/en\/#website"},"breadcrumb":{"@id":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/#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\/2017\/02\/wsi-imageoptim-Query-Rank-number-Post-type-e1461937489794.jpg","@id":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/#mainImage","width":900,"height":391},"primaryImageOfPage":{"@id":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/#mainImage"},"datePublished":"2016-04-29T13:53:56-04:00","dateModified":"2022-09-09T19:53:58-04: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":"Query Rank number Post type - Themespress","og:description":"This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. Query Rank number Post type Our function","og:url":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/","article:published_time":"2016-04-29T17:53:56-04:00","article:modified_time":"2022-09-09T23:53:58-04:00","twitter:card":"summary","twitter:title":"Query Rank number Post type - Themespress","twitter:description":"This post offers a new download of files which includes a function that will allow you to display Post Type sorted inside the single.php file. So for example, you have a post type and Post Meta Key views which let you display the number of views by product. Query Rank number Post type Our function"},"aioseo_meta_data":{"post_id":"6304","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"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\"},\"blockGraphs\":[]}","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":"2022-09-09 23:46:56","updated":"2025-06-08 02:00:06","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\tQuery Rank number Post type\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":"Query Rank number Post type","link":"https:\/\/themespress.ca\/en\/query-rank-number-post-type\/"}],"_links":{"self":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6304","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=6304"}],"version-history":[{"count":0,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6304\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media\/4529"}],"wp:attachment":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media?parent=6304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/categories?post=6304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/tags?post=6304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}