{"id":6330,"date":"2022-03-13T14:31:12","date_gmt":"2022-03-13T18:31:12","guid":{"rendered":"https:\/\/themespress.ca\/?p=6330"},"modified":"2022-09-10T11:31:42","modified_gmt":"2022-09-10T15:31:42","slug":"post-meta-key-post-type-percent","status":"publish","type":"post","link":"https:\/\/themespress.ca\/en\/post-meta-key-post-type-percent\/","title":{"rendered":"Calculate Post Meta Key &#8211; Post Type Percentage"},"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>Calcul Pourcentage Post Meta Key \u2013 Post Type :<br \/>\nThis tutorial will allow you to calculate the total percentage (Num) of a Meta post of Post type&#8217;s 100%.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n\n\t<div  class=\"wpb_single_image wpb_content_element vc_align_left wpb_content_element\">\n\t\t\n\t\t<figure class=\"wpb_wrapper vc_figure\">\n\t\t\t<div class=\"vc_single_image-wrapper   vc_box_border_grey\"><img decoding=\"async\" width=\"335\" height=\"640\" src=\"https:\/\/themespress.ca\/wp-content\/uploads\/2016\/03\/exemple-pourcentage-1.jpg\" class=\"vc_single_image-img attachment-full\" alt=\"\" title=\"exemple-pourcentage\" srcset=\"https:\/\/themespress.ca\/wp-content\/uploads\/2016\/03\/exemple-pourcentage-1.jpg 335w, https:\/\/themespress.ca\/wp-content\/uploads\/2016\/03\/exemple-pourcentage-1-157x300.jpg 157w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/div>\n\t\t<\/figure>\n\t<\/div>\n\n<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>In our example, we using a viavideos post type. We have various meta posts that will allow us to fetch the video&#8217;s language.<\/p>\n<p>We want to display the video&#8217;s percentage in a language according to the total number of videos.<\/p>\n<p>We also have a calc function in our files and display example for a language meta post. This tutorial is well documented and explains what it displays.<\/p>\n<p><strong>Note<\/strong>: The progress bar is displayed via a CSS bootstrap. Simply add the CSS line in your header or user your own progress bar.<\/p>\n<p><a href=\"https:\/\/themespress.ca\/produits\/ressources\/calcul-pourcentage-post-meta-post-type\/\">Calculate Post Meta Key &#8211; Post Type percentage<\/a><\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"Calcul Pourcentage Post Meta Key \u2013 Post Type : This tutorial will allow you to calculate the total percentage (Num) of a Meta post of Post type's 100%. In our<div class=\"read-more\"><a class=\"btn button-secondary\" href=\"https:\/\/themespress.ca\/en\/post-meta-key-post-type-percent\/\">Read More<\/a><\/div>","protected":false},"author":81,"featured_media":4521,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[283],"tags":[318],"class_list":["post-6330","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-functions"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6330","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=6330"}],"version-history":[{"count":0,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6330\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media\/4521"}],"wp:attachment":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media?parent=6330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/categories?post=6330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/tags?post=6330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}