{"id":42047,"date":"2011-11-11T08:00:00","date_gmt":"2011-11-11T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/content-molecules\/"},"modified":"2012-04-14T14:00:00","modified_gmt":"2012-04-14T14:00:00","slug":"content-molecules","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/content-molecules\/","title":{"rendered":"Content Molecules"},"content":{"rendered":"<p>In the web marketing\/publishing industry a content molecule is basically a piece of reusable content that can be placed throughout a website.  Typically isolated in nature, they often appear in sidebars and margins.  Applying this concept to the WordPress framework, you can create content that can be embedded anywhere shortcodes are processed.  Taking the concept a little further, any number of custom attributes can be added to the usage of the shortcode, and those values can be embedded in the resulting output.<\/p>\n<p>[m id=\u201dslug\u201d audience=\u201dStudent\u201d product=\u201dbackpack\u201d]<\/p>\n<p>Will translate the following molecule:<\/p>\n<p>Greetings {audience}!<br \/>\nCheck out our new {product} today!<\/p>\n<p>into this:<\/p>\n<p>Greetings Student!<br \/>\nCheck out our new backpack today!<\/p>\n<p>Obviously a ridiculous example, but the flexibility remains the same regardless of the silly intent.  Stop repeating content throughout your site only to have to re-edit those pieces in every location when you need to make a correction or update.<\/p>\n<p>Molecules are a custom post type.  After the plugin is activated a new section will appear in the left admin menu titled \u201cMolecules.\u201d  There you can create and manage reusable pieces of content.  As a bonus I have added the post slug to the list view for easy reference.  If you embed a molecule in a post or page and the slug does not exist yet, it will create  a draft for you to fill in later.<\/p>\n<p>That\u2019s about it for now, any input for future features is welcome.<\/p>\n<h3>Arbitrary section<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Enables the creation of reusable and dynamic content that can be embedded throughout the Wordpress platform via shortcodes.<\/p>\n","protected":false},"author":65,"featured_media":247499,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Content Molecules - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Enables the creation of reusable and dynamic content that can be embedded throughout the Wordpress platform via shortcodes."},"footnotes":""},"categories":[1],"tags":[371,1888,1637,199,542],"class_list":["post-42047","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-content","tag-custom-content","tag-dynamic-content","tag-page","tag-posts"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/42047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=42047"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/42047\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/247499"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=42047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=42047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=42047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}