{"id":681,"date":"2022-10-31T17:37:23","date_gmt":"2022-10-31T17:37:23","guid":{"rendered":"https:\/\/vicky.dev\/?p=681"},"modified":"2022-11-22T11:31:02","modified_gmt":"2022-11-22T11:31:02","slug":"get_post_meta","status":"publish","type":"post","link":"https:\/\/vicky.dev\/get_post_meta\/","title":{"rendered":"get_post_meta ?Example And How To Use It?"},"content":{"rendered":"<p>Do you know what WordPress get_post_meta function is ? If your answer is no, don\u2019t worry. You will get to know everything you need to know after reading this article. Almost everybody who uses WordPress also uses get_post_meta. Whether they know it or not. Why I am saying this ? I will explain everything to you.<\/p>\n<p>Post meta is <strong>alternate name<\/strong> for custom fields. Many people don\u2019t know this. That\u2019s why they get confused about post meta, even after using it. These are kind of a data that describes about post. In simple words these are functions provided by WordPress <strong>to get meta field value<\/strong>.<\/p>\n<p>Often people confuse the <strong>meta box<\/strong> with <strong>custom fields, <\/strong>but these are not the same. If we keep some specific data aside. The metabox value is stored in <span class=\"clr_SpellingMistake\" data-name=\"WP|we|up|HP\" data-msg=\"tese\">wp<\/span>_postmeta.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/vicky.dev\/get_post_meta\/#Why_get_post_meta_is_important\" >Why get_post_meta is important?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/vicky.dev\/get_post_meta\/#How_to_Get_Custom_Fields_Value_with_get_post_meta\" >How to Get Custom Fields Value with get_post_meta ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/vicky.dev\/get_post_meta\/#What_is_addingsaving_post_meta_value_and_its_process\" >What is adding\/saving post meta value and it\u2019s process ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/vicky.dev\/get_post_meta\/#What_is_update_post_meta_meta\" >What is update post_meta_meta();<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/vicky.dev\/get_post_meta\/#Delete_meta_field_values\" >Delete meta field values.<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/vicky.dev\/get_post_meta\/#Final_Thoughts\" >Final Thoughts<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Why_get_post_meta_is_important\"><\/span>Why get_post_meta is important?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As we already discussed WordPress provides <strong>custom fields<\/strong> to describe posts. But sometime these fields are not enough so we need to create extra fields to fulfill our needs. WordPress provides this function to <strong>create extra fields<\/strong>.<\/p>\n<p>Not just this, these functions can be managed completely. For example when we are working on woo-commerce. We need to create extra fields like price, products etc. These are created with the help of get_post_meta function.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Get_Custom_Fields_Value_with_get_post_meta\"><\/span>How to Get Custom Fields Value with get_post_meta ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This function isn\u2019t just related to post. As per your needs you can use it with posts, products<strong>(woo-commerce)<\/strong> or any other thing. Below are parameters that are accepted by WordPress get_post_meta function.<\/p>\n<ul>\n<li><strong><span class=\"clr_SpellingMistake\" data-name=\"post|Post|POST\" data-msg=\"tese\">$post<\/span>_id :<\/strong> It is the<strong> ID<\/strong> of the post, which we are using to fetch the meta value.<\/li>\n<li><strong><span class=\"clr_SpellingMistake\" data-name=\"key|aka|ska|Key\" data-msg=\"tese\">$key<\/span>&#8211; :<\/strong> The name of the custom field is called the key. It\u2019s not mandatory to use this. But whenever you want to fetch a particular field. You need to use this.<\/li>\n<li><strong><span class=\"clr_SpellingMistake\" data-name=\"single\" data-msg=\"tese\">$single<\/span>:<\/strong> It is only used if a key is already provided.<\/li>\n<\/ul>\n<p>Examples<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">function get_post_meta( $post_id, $key = '', $single = false ) {\r\n    return get_metadata( 'post', $post_id, $key, $single );\r\n}<\/pre>\n<p><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_post_meta\/\" target=\"_blank\" rel=\"noopener\">Source: wordpress.org<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_is_addingsaving_post_meta_value_and_its_process\"><\/span>What is adding\/saving post meta value and it\u2019s process ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The function used to save or add meta value is\u00a0<span class=\"clr_GrammarMistake\" data-name=\"added|adding\" data-msg=\"tese\">add<\/span>_post_meta(); In simple words the function which is used to add meta value in the <strong>database<\/strong> is called add_post_meta();<\/p>\n<p>Below are the parameters used while adding or saving meta-box.<br \/>\n<strong>1.\u00a0<span class=\"clr_SpellingMistake\" data-name=\"post|Post|POST\" data-msg=\"tese\">$post<\/span>_id<\/strong>&#8211; It is the ID of the post.<br \/>\n<strong>2.\u00a0<span class=\"clr_SpellingMistake\" data-name=\"key|aka|ska|Key\" data-msg=\"tese\">$key<\/span><\/strong>&#8211; It\u2019s the name of the custom field.<br \/>\n<strong>3.\u00a0<span class=\"clr_SpellingMistake\" data-name=\"value\" data-msg=\"tese\">$value<\/span><\/strong>&#8211; It is to check if the same key is added of not. The default is set to false.<br \/>\n<strong>4.\u00a0<span class=\"clr_SpellingMistake\" data-name=\"single\" data-msg=\"tese\">$single<\/span><\/strong> -(isn\u2019t necessary)-<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_is_update_post_meta_meta\"><\/span>What is update post_meta_meta();<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As the name suggests update post meta is used to update post meta value. It is very similar to add_post_meta. It accepts the same parameters as add post meta. If you are thinking that if it is same as add post meta then what\u2019s the use of it. Although it is similar yet it has its own use cases. Unlike add post meta it checks if the meta value already exists or not. If not then it does the same work as add post meta.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Delete_meta_field_values\"><\/span>Delete meta field values.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>At this point you may already have an idea about delete_post_meta();. If not you can try to guess as it\u2019s not that difficult. It is simply used to <strong>delete<\/strong> custom field value. Here are the parameters that are accepted by delete post meta function.<\/p>\n<p><strong>1.\u00a0<span class=\"clr_SpellingMistake\" data-name=\"post|Post|POST\" data-msg=\"tese\">$post<\/span>_id-<\/strong> It is the ID of the post.<br \/>\n<strong>2.\u00a0<span class=\"clr_SpellingMistake\" data-name=\"key|aka|ska|Key\" data-msg=\"tese\">$key<\/span>&#8211;<\/strong> It\u2019s the name of the custom field.<br \/>\n<strong>3.\u00a0<span class=\"clr_SpellingMistake\" data-name=\"value\" data-msg=\"tese\">$value<\/span>&#8211;<\/strong> The value of the custom field. The default is set to false.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>That&#8217;s all about get_post_meta(); function. We have tried to teach you everything. From meaning to uses everything we have covered. I hope you got what you were looking in this article. If yes then have a look at our other articles like <a href=\"https:\/\/vicky.dev\/what-is-wp_nav_menu\/\" target=\"_blank\" rel=\"noopener\">wp_nav_menu\u00a0<\/a>and <a href=\"https:\/\/vicky.dev\/what-is-the_post_thumbnail-everything-you-need-to-know-vicky-dev\/\" target=\"_blank\" rel=\"noopener\">the_post_thumbnail\u00a0<\/a>etc. If you want to know any other thing., you can ask by leaving a simple comment. I will try to solve your issue as soon as possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you know what WordPress get_post_meta function is ? If your answer is no, don\u2019t worry. You will get to know everything you need to know after reading this article. Almost everybody who uses WordPress also uses get_post_meta. Whether they know it or not. Why I am saying this ? I will explain everything to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":686,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>get_post_meta ?Example And How To Use It? - Vicky.Dev<\/title>\n<meta name=\"description\" content=\"In this article, you&#039;ll learn everything you need to know about the get_post_meta(), including how to use it to access post meta data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vicky.dev\/get_post_meta\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"get_post_meta ?Example And How To Use It? - Vicky.Dev\" \/>\n<meta property=\"og:description\" content=\"In this article, you&#039;ll learn everything you need to know about the get_post_meta(), including how to use it to access post meta data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vicky.dev\/get_post_meta\/\" \/>\n<meta property=\"og:site_name\" content=\"Vicky.Dev\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-31T17:37:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-22T11:31:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/wordpress-g199cca6f9_1280.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"1269\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Vicky Bhandari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vicky Bhandari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/\"},\"author\":{\"name\":\"Vicky Bhandari\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/person\\\/2fac9e330b8fb3e490c8fcaf93c7c66c\"},\"headline\":\"get_post_meta ?Example And How To Use It?\",\"datePublished\":\"2022-10-31T17:37:23+00:00\",\"dateModified\":\"2022-11-22T11:31:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/\"},\"wordCount\":697,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/wordpress-g199cca6f9_1280.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/\",\"url\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/\",\"name\":\"get_post_meta ?Example And How To Use It? - Vicky.Dev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/wordpress-g199cca6f9_1280.jpg\",\"datePublished\":\"2022-10-31T17:37:23+00:00\",\"dateModified\":\"2022-11-22T11:31:02+00:00\",\"description\":\"In this article, you'll learn everything you need to know about the get_post_meta(), including how to use it to access post meta data.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/wordpress-g199cca6f9_1280.jpg\",\"contentUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/wordpress-g199cca6f9_1280.jpg\",\"width\":1280,\"height\":1269,\"caption\":\"Photo by Pixabay\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/get_post_meta\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vicky.dev\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"get_post_meta ?Example And How To Use It?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#website\",\"url\":\"https:\\\/\\\/vicky.dev\\\/\",\"name\":\"Vicky.Dev\",\"description\":\"WordPress Developer for Hire\",\"publisher\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vicky.dev\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\",\"name\":\"Vicky.Dev\",\"url\":\"https:\\\/\\\/vicky.dev\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/logo-png-file-01.png\",\"contentUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/logo-png-file-01.png\",\"width\":1074,\"height\":581,\"caption\":\"Vicky.Dev\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/person\\\/2fac9e330b8fb3e490c8fcaf93c7c66c\",\"name\":\"Vicky Bhandari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"caption\":\"Vicky Bhandari\"},\"description\":\"Vicky Bhandari is a code is poetry type guy who loves coding. When he is not writing code he likes to learn and write about tech to share his knowledge with others.\",\"url\":\"https:\\\/\\\/vicky.dev\\\/author\\\/vicky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"get_post_meta ?Example And How To Use It? - Vicky.Dev","description":"In this article, you'll learn everything you need to know about the get_post_meta(), including how to use it to access post meta data.","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:\/\/vicky.dev\/get_post_meta\/","og_locale":"en_US","og_type":"article","og_title":"get_post_meta ?Example And How To Use It? - Vicky.Dev","og_description":"In this article, you'll learn everything you need to know about the get_post_meta(), including how to use it to access post meta data.","og_url":"https:\/\/vicky.dev\/get_post_meta\/","og_site_name":"Vicky.Dev","article_published_time":"2022-10-31T17:37:23+00:00","article_modified_time":"2022-11-22T11:31:02+00:00","og_image":[{"width":1280,"height":1269,"url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/wordpress-g199cca6f9_1280.jpg","type":"image\/jpeg"}],"author":"Vicky Bhandari","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vicky Bhandari","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vicky.dev\/get_post_meta\/#article","isPartOf":{"@id":"https:\/\/vicky.dev\/get_post_meta\/"},"author":{"name":"Vicky Bhandari","@id":"https:\/\/vicky.dev\/#\/schema\/person\/2fac9e330b8fb3e490c8fcaf93c7c66c"},"headline":"get_post_meta ?Example And How To Use It?","datePublished":"2022-10-31T17:37:23+00:00","dateModified":"2022-11-22T11:31:02+00:00","mainEntityOfPage":{"@id":"https:\/\/vicky.dev\/get_post_meta\/"},"wordCount":697,"commentCount":0,"publisher":{"@id":"https:\/\/vicky.dev\/#organization"},"image":{"@id":"https:\/\/vicky.dev\/get_post_meta\/#primaryimage"},"thumbnailUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/wordpress-g199cca6f9_1280.jpg","articleSection":["Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vicky.dev\/get_post_meta\/","url":"https:\/\/vicky.dev\/get_post_meta\/","name":"get_post_meta ?Example And How To Use It? - Vicky.Dev","isPartOf":{"@id":"https:\/\/vicky.dev\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vicky.dev\/get_post_meta\/#primaryimage"},"image":{"@id":"https:\/\/vicky.dev\/get_post_meta\/#primaryimage"},"thumbnailUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/wordpress-g199cca6f9_1280.jpg","datePublished":"2022-10-31T17:37:23+00:00","dateModified":"2022-11-22T11:31:02+00:00","description":"In this article, you'll learn everything you need to know about the get_post_meta(), including how to use it to access post meta data.","breadcrumb":{"@id":"https:\/\/vicky.dev\/get_post_meta\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vicky.dev\/get_post_meta\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vicky.dev\/get_post_meta\/#primaryimage","url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/wordpress-g199cca6f9_1280.jpg","contentUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/wordpress-g199cca6f9_1280.jpg","width":1280,"height":1269,"caption":"Photo by Pixabay"},{"@type":"BreadcrumbList","@id":"https:\/\/vicky.dev\/get_post_meta\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vicky.dev\/"},{"@type":"ListItem","position":2,"name":"get_post_meta ?Example And How To Use It?"}]},{"@type":"WebSite","@id":"https:\/\/vicky.dev\/#website","url":"https:\/\/vicky.dev\/","name":"Vicky.Dev","description":"WordPress Developer for Hire","publisher":{"@id":"https:\/\/vicky.dev\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vicky.dev\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/vicky.dev\/#organization","name":"Vicky.Dev","url":"https:\/\/vicky.dev\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vicky.dev\/#\/schema\/logo\/image\/","url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/09\/logo-png-file-01.png","contentUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/09\/logo-png-file-01.png","width":1074,"height":581,"caption":"Vicky.Dev"},"image":{"@id":"https:\/\/vicky.dev\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/vicky.dev\/#\/schema\/person\/2fac9e330b8fb3e490c8fcaf93c7c66c","name":"Vicky Bhandari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","caption":"Vicky Bhandari"},"description":"Vicky Bhandari is a code is poetry type guy who loves coding. When he is not writing code he likes to learn and write about tech to share his knowledge with others.","url":"https:\/\/vicky.dev\/author\/vicky\/"}]}},"jetpack_featured_media_url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/wordpress-g199cca6f9_1280.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts\/681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/comments?post=681"}],"version-history":[{"count":0,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts\/681\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/media\/686"}],"wp:attachment":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/media?parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/categories?post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/tags?post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}