Linux 软件免费装
Banner图

Nutrition Facts Label

开发者 (kengimel)
更新时间 2015年12月17日 09:12
PHP版本: 3.0.1 及以上
WordPress版本: 4.4
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode food nutrition nutrition facts nutrition label food-cook recipe plugin global food book

下载

详情介绍:

Our motivation for releasing this plugin is based on a forum discussion on the food-cook theme support site. We felt that we already had some code that could serve as a basis for producing this plugin, other food bloggers could benefit and possibly improve on. This plugin will work best on blogs that use food-cook theme. For food blogs that are not based on the food-cook theme, It is possible to create a custom post type called "recipe" and an ingredients post_meta entry with key "RECIPE_META_ingredients". We strongly recommended taking this route or using this plugin under the guidance of a Wordpress developer. From a more technical side, In order to generate a nutrition facts label, you can either generate an image or generate a post_meta key (gfb_recipe_meta_nutrition_facts) that holds JSON data (for each recipe) which is used to generate a nutrition label. This plugin also includes a meta box within the recipe post edit page in the admin area, which automatically reads the post_meta entry with key "RECIPE_META_ingredients" which mainly contains your ingredients list and uses that to generate the nutrition label. In order to automatically display a nutrition label on the every recipe, your Wordpress developer should add this line of code to the best possible place. It is also possible to embed this as a short-code from the text editor. But based on the food-cook recipe page layout your options may appear limited, hence why it is best that a Wordpress developer helps out here. [embed_nutrition_label] How to Video https://www.youtube.com/watch?v=oM1LoVSacss This plugin provides food bloggers with the ability to add a nutrition facts label to their recipe post(s). This plugin provides image download option or short-codes as possible ways of sharing nutritive insights. It also provides an update facility that adds a nutrition facts label to already existing recipe posts. Big thanks to the guys at nutritionix for sharing their javascript nutrition label which we have tweaked and used here. We at www.globalfoodbook.com are open source and agile proponents. We have open sourced this plugin on github and will continue to improve this. We appreciate the help we have received from using other plugins and would like to contribute back to this awesome Wordpress community at every chance possible. At the moment we are working on improving our algorithms on the backend and would like it if you could join us. We would love to hear from you on ways this can be improved, give us a shout via the our website or via email (we [at] globalfoodbook.com). Thanks How to Use this Nutrition Label? Login into your Wordpress account. Scroll down to the "Ingredients Section" and list the Ingredients. Press "Generate Label" on the Nutrition Facts Label Generator. The nutrition facts are automatically generated for you. N:B List the ingredients individually including the quantities. How to Include Nutrition Label on Existing Recipes? To include nutrition label on existing food recipes, simply press the "Go" button for automatic generation of the nutrition label. For any unsuccessful updates, make sure that the ingredients are placed line by line and in each line they are without commas or fullstops. Then press the "Go" button to generate label.

安装:

  1. Upload /nutrition-facts-label to the /wp-content/plugins directory
  2. Activate the plugin through the Plugins menu in WordPress

屏幕截图:

  • Generate Nutrition Facts Label
  • Update existing recipes.
  • Sample on the recipe page.

升级注意事项:

1.0
  • Initial Release
1.1
  • Fixes and Modifications
  • Documentation
1.2
  • Bump wordpress compatibile versions
1.5
  • Add configrable NUT_API environment variable

常见问题:

How do I use this Nutrition Label ?

Login into your Wordpress account. Scroll down to the "Ingredients Section" and list the Ingredients. Press "Generate Label" on the Nutrition Facts Label Generator. The nutrition facts are automatically generated for you. N:B List the ingredients individually including the quantities.

How to Include Nutrition Label on Existing Recipes?

To include nutrition label on existing food recipes, simply press the "Go" button for automatic generation of the nutrition label. For the unsuccessful updates, make sure that the ingredients are placed line by line and in each line they are without commas or fullstops. Then press the "Go" button.

更新日志:

1.0 1.1 1.2 1.5