Title: BeerXML Shortcode
Author: Derek Springer
Published: <strong>2012 年 8 月 14 日</strong>
Last modified: 2025 年 4 月 29 日

---

搜索插件

![](https://ps.w.org/beerxml-shortcode/assets/banner-772x250.png?rev=895425)

![](https://ps.w.org/beerxml-shortcode/assets/icon-256x256.png?rev=980880)

# BeerXML Shortcode

 作者：[Derek Springer](https://profiles.wordpress.org/derekspringer/)

[下载](https://downloads.wordpress.org/plugin/beerxml-shortcode.0.8.zip)

 * [详情](https://cn.wordpress.org/plugins/beerxml-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/beerxml-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/beerxml-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/beerxml-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/beerxml-shortcode/)

## 描述

A shortcode for displaying beer recipes. Now with [Shortcake (Shortcode UI)](https://wordpress.org/plugins/shortcode-ui/)
integration!

 * Link to a BeerXML document to display recipe details, style details, fermentables,
   hops, miscs, yeast, mash steps, fermentation schedule, and notes.
 * Allows you to easily switch between U.S. & Metric measurements.
 * Control if & how long recipe is cached.
 * Allow readers to download the recipe directly.

It follows the basic format of:

[beerxml
 recipe={URL} metric=true|false download=true|false style=true|false mash
=true|false fermentation=true|false mhop=true|false misc=true|false actuals=true
|false cache=-1|{seconds to cache}]

Please note all options (minus recipe) are optional and have the following defaults:

 * metric = false
 * cache = 12 hours (60 x 60 x 12 seconds), -1 kills the cache and sets value to
   0
 * download = true
 * style = true
 * mash = true
 * misc = true
 * actuals = true
 * fermentation = false
 * mhop = false

## 屏幕截图

 * [[
 * BeerXML recipe displayed in the twenty eleven theme.
 * [[
 * Inserting the shortcode into a post.
 * [[
 * Insert Post Element option.
 * [[
 * Insert Post Element details.

## 安装

 1. Upload the files to the `/wp-content/plugins/beerxml-plugin/` directory.
 2. 通过WordPress的“插件”菜单激活插件。
 3. Go to Admin Dashboard -> Settings -> BeerXML Shortcode and configure defaults.

## 评价

![](https://secure.gravatar.com/avatar/7efded6d911fd8ce7a1e79dfc528365be357083ab54471e62192bd6311967d65?
s=60&d=retro&r=g)

### 󠀁[Sweet and Simple!](https://wordpress.org/support/topic/sweet-and-simple-16/)󠁿

 [falstaff5225](https://profiles.wordpress.org/falstaff5225/) 2018 年 3 月 13 日

Straight-forward plugin that makes sharing homebrew recipes in your blog simple 
to do they look great! The plugin author responds quickly to support posts too! 
Thanks for the great plugin!

![](https://secure.gravatar.com/avatar/c6ddb8dc4278f595d2e7a633bb9dcf4693482049a33127ebbabcb587b5ffd58f?
s=60&d=retro&r=g)

### 󠀁[Great for brewers!](https://wordpress.org/support/topic/great-for-brewers/)󠁿

 [brulosopher](https://profiles.wordpress.org/brulosopher/) 2016 年 10 月 5 日

Such a great plugin for displaying recipes in a clean, easy to read way!

![](https://secure.gravatar.com/avatar/86d33c16efb02482f5a867e3ac1df58a5a452b117ed739a1e40cdfacbea106e2?
s=60&d=retro&r=g)

### 󠀁[Better than ever!](https://wordpress.org/support/topic/better-than-ever/)󠁿

 [Derek Springer](https://profiles.wordpress.org/derekspringer/) 2016 年 9 月 3 
日

I wrote this plugin and I think it’s pretty great–it’s the best it’s ever been!

 [ 阅读所有9条评价 ](https://wordpress.org/support/plugin/beerxml-shortcode/reviews/)

## 贡献者及开发者

「BeerXML Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Derek Springer ](https://profiles.wordpress.org/derekspringer/)
 *   [ Keith S. ](https://profiles.wordpress.org/zarathos/)

「BeerXML Shortcode」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/beerxml-shortcode/contributors)
为本插件所做的贡献。

[帮助将「BeerXML Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/beerxml-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/beerxml-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/beerxml-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/beerxml-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/beerxml-shortcode/)。

## 更新日志

#### 0.8

 * Some potential SSRF fixes.
 * Better error handling for yeasts that don’t parse cleanly.

#### 0.7.1

 * Updated XML mime type to avoid blocked XML uploads

#### 0.7

[Brülosopher’s](http://brulosophy.com/) Baby

 * Added ‘mhop’ flag to display hops in metric after a request by Brülosopher 🙂
 * Made Miscs section optional using misc=true|false option (defaults to on).
 * Added Actuals row to Details table using actuals=true|false (defaults to on).
 * Extended length of Document URL field in Shortcake UI.

#### 0.6.1

 * Fix for weights improperly swapping at exactly 1 lb/kg.

#### 0.6

 * Weight will display oz if < 1 lb or g if < 1 kg.
 * Set mash schedule to default on.
 * Updated ‘Tested up to’ to 4.4.

#### 0.5

 * [Shortcake (Shortcode UI)](https://wordpress.org/plugins/shortcode-ui/) integration.
   When Shortcake is installed you will now be able to insert recipes via the Add
   Media->Insert Post Element option. Additionally, the BeerXML shortcode will now
   render in the visual editor.
 * 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.

#### 0.4

Tom Sawyer edition: thanks to [ksolomon](https://github.com/ksolomon) and [jksnetwork](https://github.com/jksnetwork)
for their pull requests.

 * 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. @[ksolomon](https://github.com/dbspringer/beerxml-plugin/pull/5)
 * 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. @
   [jksnetwork](https://github.com/dbspringer/beerxml-plugin/pull/6)

#### 0.3.2

 * Added default for miscs that don’t have display_value.

#### 0.3.1

 * Updated uninstall.php to remove options (including multisite) upon uninstall.
 * Updated XML retrieval to use wp_remote_get instead of file_get_contents, which
   caused some folks issues.
 * Added settings link to plugins page.

#### 0.3

 * Added Beer Style details section.
 * Added % to fermentables.
 * Added XML parsing security update I picked up at WCSF.

#### 0.2

 * Escaped XML parsing.
 * Added admin menu to set default values for shortcode.
 * Tweaked markup and added Miscs, Notes, and Download section.
 * Added new ‘download’ parameter to shortcode to allow readers to directly download
   BeerXML file.

#### 0.1.1

 * Added text/xml as acceptable mime type for BeerXML document self-hosting.

#### 0.1

 * First cut, allows basic display of details, fermentables, hops, and yeast information
   in U.S. or metric units.

## 额外信息

 *  版本 **0.8**
 *  最后更新：**1 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.4 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/beerxml-shortcode/) 、 [English (US)](https://wordpress.org/plugins/beerxml-shortcode/)、
   [German](https://de.wordpress.org/plugins/beerxml-shortcode/) 和 [Swedish](https://sv.wordpress.org/plugins/beerxml-shortcode/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/beerxml-shortcode)
 * 标签
 * [beer](https://cn.wordpress.org/plugins/tags/beer/)[homebrew](https://cn.wordpress.org/plugins/tags/homebrew/)
   [Recipe](https://cn.wordpress.org/plugins/tags/recipe/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/beerxml-shortcode/advanced/)

## 评级

 4.9 星（最高 5 星）。

 *  [  8 条 5 星评价     ](https://wordpress.org/support/plugin/beerxml-shortcode/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/beerxml-shortcode/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/beerxml-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/beerxml-shortcode/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/beerxml-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/beerxml-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/beerxml-shortcode/reviews/)

## 贡献者

 *   [ Derek Springer ](https://profiles.wordpress.org/derekspringer/)
 *   [ Keith S. ](https://profiles.wordpress.org/zarathos/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/beerxml-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://wordpressfoundation.org/donate/)