{"id":90,"date":"2004-03-24T08:40:50","date_gmt":"2004-03-24T08:40:50","guid":{"rendered":"http:\/\/wordpress.org\/development\/2004\/03\/new-feature-post-meta-data\/"},"modified":"2021-06-04T11:58:02","modified_gmt":"2021-06-04T11:58:02","slug":"new-feature-post-meta-data","status":"publish","type":"post","link":"https:\/\/wordpress.org\/news\/2004\/03\/new-feature-post-meta-data\/","title":{"rendered":"New Feature: Post Meta-Data"},"content":{"rendered":"
\nIn the CVS<\/a> development code, and the March 24 nightly build<\/a>, there is a new feature: Post Meta-Data, or “Post Custom Data”. This allows you to attach arbitrary bits of information to a post using key\/value pairs. You may have have seen blogs before where every post has something like “mood: happy” or “currently listening to: Linkin Park — Numb”. This can be done with Post Custom.\n<\/p>\n \nThough I’ve put in a rudimentary template tag, \nYou can find more details in the PostMeta<\/a> page on the WordPress Wiki<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" In the CVS development code, and the March 24 nightly build, there is a new feature: Post Meta-Data, or “Post Custom Data”. This allows you to attach arbitrary bits of information to a post using key\/value pairs. You may have have seen blogs before where every post has something like “mood: happy” or “currently listening […]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"episode_type":"","audio_file":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","date_recorded":"","explicit":"","block":"","filesize_raw":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-90","post","type-post","status-publish","format-standard","hentry","category-development"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pZhYe-1s","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/posts\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":2894,"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/posts\/90\/revisions\/2894"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}the_meta()<\/code>, to display post meta-data, we expect that the real power of this feature will come to light in the form of new plugins. Plugin authors will be able to go beyond the simple ability to store static information such as the song you are currently listening to, or books that you are reading. For example, you might be blogging about your exercise goals, with a weekly post about how many miles you’ve jogged. A plugin could allow you to display a dynamic tally of “total miles jogged this year”, calulated from all of your “miles-this-week” entries.\n<\/p>\n