{"id":19476,"date":"2012-08-14T20:08:37","date_gmt":"2012-08-14T20:08:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/beerxml-shortcode\/"},"modified":"2025-04-29T20:04:10","modified_gmt":"2025-04-29T20:04:10","slug":"beerxml-shortcode","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/beerxml-shortcode\/","author":9485720,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.8","stable_tag":"0.8","tested":"6.8.5","requires":"3.4","requires_php":"","requires_plugins":null,"header_name":"BeerXML Shortcode","header_author":"Derek Springer","header_description":"","assets_banners_color":"ffffff","last_updated":"2025-04-29 20:04:10","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/wordpressfoundation.org\/donate\/","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/beerxml-shortcode\/","header_author_uri":"http:\/\/www.fivebladesbrewing.com\/beerxml-plugin-wordpress\/","rating":4.9,"author_block_rating":0,"active_installs":100,"downloads":7164,"num_ratings":9,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"0.1":{"tag":"0.1","author":"derekspringer","date":"2012-08-14 20:11:41"},"0.1.1":{"tag":"0.1.1","author":"derekspringer","date":"2012-08-18 21:01:15"},"0.1.2b1":{"tag":"0.1.2b1","author":"martinremy","date":"2012-10-10 19:04:47"},"0.1.2b2":{"tag":"0.1.2b2","author":"martinremy","date":"2012-10-10 19:22:02"},"0.2":{"tag":"0.2","author":"derekspringer","date":"2013-07-11 18:11:46"},"0.3":{"tag":"0.3","author":"derekspringer","date":"2014-04-16 20:37:11"},"0.3.1":{"tag":"0.3.1","author":"derekspringer","date":"2014-12-17 19:24:02"},"0.3.2":{"tag":"0.3.2","author":"derekspringer","date":"2014-12-17 19:29:32"},"0.4":{"tag":"0.4","author":"derekspringer","date":"2015-01-26 03:54:12"},"0.5":{"tag":"0.5","author":"derekspringer","date":"2015-04-22 17:39:02"},"0.6":{"tag":"0.6","author":"derekspringer","date":"2015-11-26 19:26:47"},"0.6.1":{"tag":"0.6.1","author":"derekspringer","date":"2015-11-26 23:01:57"},"0.7":{"tag":"0.7","author":"derekspringer","date":"2017-01-04 19:16:23"},"0.7.1":{"tag":"0.7.1","author":"derekspringer","date":"2017-11-10 19:36:47"},"0.8":{"tag":"0.8","author":"derekspringer","date":"2025-04-29 20:04:10"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"8"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":980880,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":980880,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":895425,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.1.2b1","0.1.2b2","0.2","0.3","0.3.1","0.3.2","0.4","0.5","0.6","0.6.1","0.7","0.7.1","0.8"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1317512,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1317512,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1317512,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":1317512,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"BeerXML recipe displayed in the twenty eleven theme.","2":"Inserting the shortcode into a post.","3":"Insert Post Element option.","4":"Insert Post Element details."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5632,11607,11598,6342,80],"plugin_category":[43],"plugin_contributors":[85263,79017],"plugin_business_model":[],"class_list":["post-19476","plugin","type-plugin","status-publish","hentry","plugin_tags-beer","plugin_tags-beerxml","plugin_tags-homebrew","plugin_tags-recipe","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-derekspringer","plugin_contributors-zarathos","plugin_committers-derekspringer","plugin_committers-martinremy"],"banners":{"banner":"https:\/\/ps.w.org\/beerxml-shortcode\/assets\/banner-772x250.png?rev=895425","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/beerxml-shortcode\/assets\/icon-128x128.png?rev=980880","icon_2x":"https:\/\/ps.w.org\/beerxml-shortcode\/assets\/icon-256x256.png?rev=980880","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/beerxml-shortcode\/assets\/screenshot-1.png?rev=1317512","caption":"BeerXML recipe displayed in the twenty eleven theme."},{"src":"https:\/\/ps.w.org\/beerxml-shortcode\/assets\/screenshot-2.png?rev=1317512","caption":"Inserting the shortcode into a post."},{"src":"https:\/\/ps.w.org\/beerxml-shortcode\/assets\/screenshot-3.png?rev=1317512","caption":"Insert Post Element option."},{"src":"https:\/\/ps.w.org\/beerxml-shortcode\/assets\/screenshot-4.png?rev=1317512","caption":"Insert Post Element details."}],"raw_content":"<!--section=description-->\n<p>A shortcode for displaying beer recipes. Now with <a href=\"https:\/\/wordpress.org\/plugins\/shortcode-ui\/\">Shortcake (Shortcode UI)<\/a> integration!<\/p>\n\n<ul>\n<li>Link to a BeerXML document to display recipe details, style details, fermentables, hops, miscs, yeast, mash steps, fermentation schedule, and notes.<\/li>\n<li>Allows you to easily switch between U.S. &amp; Metric measurements.<\/li>\n<li>Control if &amp; how long recipe is cached.<\/li>\n<li>Allow readers to download the recipe directly.<\/li>\n<\/ul>\n\n<p>It follows the basic format of:<\/p>\n\n<p>[beerxml\n    recipe={URL}\n    metric=true|false\n    download=true|false\n    style=true|false\n    mash=true|false\n    fermentation=true|false\n    mhop=true|false\n    misc=true|false\n    actuals=true|false\n    cache=-1|{seconds to cache}]<\/p>\n\n<p>Please note all options (minus recipe) are optional and have the following defaults:<\/p>\n\n<ul>\n<li>metric = false<\/li>\n<li>cache = 12 hours (60 x 60 x 12 seconds), -1 kills the cache and sets value to 0<\/li>\n<li>download = true<\/li>\n<li>style = true<\/li>\n<li>mash = true<\/li>\n<li>misc = true<\/li>\n<li>actuals = true<\/li>\n<li>fermentation = false<\/li>\n<li>mhop = false<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the files to the <code>\/wp-content\/plugins\/beerxml-plugin\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to Admin Dashboard -&gt; Settings -&gt; BeerXML Shortcode and configure defaults.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.8<\/h4>\n\n<ul>\n<li>Some potential SSRF fixes.<\/li>\n<li>Better error handling for yeasts that don't parse cleanly.<\/li>\n<\/ul>\n\n<h4>0.7.1<\/h4>\n\n<ul>\n<li>Updated XML mime type to avoid blocked XML uploads<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<p><a href=\"http:\/\/brulosophy.com\/\">Br\u00fclosopher's<\/a> Baby<\/p>\n\n<ul>\n<li>Added 'mhop' flag to display hops in metric after a request by Br\u00fclosopher :)<\/li>\n<li>Made Miscs section optional using misc=true|false option (defaults to on).<\/li>\n<li>Added Actuals row to Details table using actuals=true|false (defaults to on).<\/li>\n<li>Extended length of Document URL field in Shortcake UI.<\/li>\n<\/ul>\n\n<h4>0.6.1<\/h4>\n\n<ul>\n<li>Fix for weights improperly swapping at exactly 1 lb\/kg.<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Weight will display oz if &lt; 1 lb or g if &lt; 1 kg.<\/li>\n<li>Set mash schedule to default on.<\/li>\n<li>Updated 'Tested up to' to 4.4.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/shortcode-ui\/\">Shortcake (Shortcode UI)<\/a> integration. When Shortcake is installed you will now be able to insert recipes via the Add Media-&gt;Insert Post Element option. Additionally, the BeerXML shortcode will now render in the visual editor.<\/li>\n<li>Moved wp_set_object_terms for post to outside build_style function. Beer Style should now be set for the post even if you choose not to display beer style details.<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<p>Tom Sawyer edition: thanks to <a href=\"https:\/\/github.com\/ksolomon\">ksolomon<\/a> and <a href=\"https:\/\/github.com\/jksnetwork\">jksnetwork<\/a> for their pull requests.<\/p>\n\n<ul>\n<li>Custom taxonomy for the beer style. Creates an archive of all beers added for each style with link to the list of beers for each style. @<a href=\"https:\/\/github.com\/dbspringer\/beerxml-plugin\/pull\/5\">ksolomon<\/a><\/li>\n<li>Added mash and fermentation details, defaulted to off. To include add mash=true or fermentation=true to shortcode or update the settings in the admin menu. @<a href=\"https:\/\/github.com\/dbspringer\/beerxml-plugin\/pull\/6\">jksnetwork<\/a><\/li>\n<\/ul>\n\n<h4>0.3.2<\/h4>\n\n<ul>\n<li>Added default for miscs that don't have display_value.<\/li>\n<\/ul>\n\n<h4>0.3.1<\/h4>\n\n<ul>\n<li>Updated uninstall.php to remove options (including multisite) upon uninstall.<\/li>\n<li>Updated XML retrieval to use wp_remote_get instead of file_get_contents, which caused some folks issues.<\/li>\n<li>Added settings link to plugins page.<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Added Beer Style details section.<\/li>\n<li>Added % to fermentables.<\/li>\n<li>Added XML parsing security update I picked up at WCSF.<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Escaped XML parsing.<\/li>\n<li>Added admin menu to set default values for shortcode.<\/li>\n<li>Tweaked markup and added Miscs, Notes, and Download section.<\/li>\n<li>Added new 'download' parameter to shortcode to allow readers to directly download BeerXML file.<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Added text\/xml as acceptable mime type for BeerXML document self-hosting.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First cut, allows basic display of details, fermentables, hops, and yeast information in U.S. or metric units.<\/li>\n<\/ul>","raw_excerpt":"Automatically insert and display beer recipes by linking to a BeerXML document.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=19476"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/derekspringer"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19476"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19476"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19476"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19476"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19476"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}