{"id":87399,"date":"2011-05-15T08:00:00","date_gmt":"2011-05-15T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/html-helpers\/"},"modified":"2011-06-16T18:28:00","modified_gmt":"2011-06-16T18:28:00","slug":"html-helpers","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/html-helpers\/","title":{"rendered":"HTML Helpers"},"content":{"rendered":"<p>This plugin adds simple HTML tag generation API to WordPress, like these examples:<br \/>\n     generates and prints <code><img decoding=\"async\" src=\"\/wp-content\/<your-theme>\/images\/wordpress.png\" alt=\"Wordpress\" \/><\/code>.<br \/>\n     \u2018my-image\u2019)) ?> generates and returns almost the same tag, just with absolute url, id and alt attributes set manually.<br \/>\n    term_id) ?> generates select tag with options taken from WP \u2018category\u2019 taxonomy and sets $term as selected item<br \/>\n     rails-like \u201ccycle\u201d that returns \u201codd\u201d on first call, \u201ceven\u201d on second, \u201codd\u201d on<br \/>\n    third call, so on. reset_cycle resets the cycle.<br \/>\n     shortcut for echo(get_post_meta($id, \u2018meta_name\u2019, true))<\/p>\n<p>Form field generators for <code>text<\/code>, <code>checkbox<\/code>, <code>hidden<\/code> input types, <code>textarea<\/code>, and more tags. More docs coming soon, you can read the code to figure out other features for now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This plugin adds simple HTML tag generation API to WordPress.<\/p>\n","protected":false},"author":65,"featured_media":290635,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"HTML Helpers - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"This plugin adds simple HTML tag generation API to WordPress."},"footnotes":""},"categories":[1],"tags":[461,1282,63,257],"class_list":["post-87399","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-api","tag-code","tag-html","tag-php"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/87399","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=87399"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/87399\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/290635"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=87399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=87399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=87399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}