Linux 软件免费装
Banner图

Canadian Nutrition Facts Label

开发者 emaude
dandelionweb
更新时间 2020年11月26日 23:20
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 4.2.2
版权: GPLv2 or later
版权网址: 版权信息

标签

bilingual food nutrition nutrition facts nutrition label nutrition labelling Canadian nutrition facts table

下载

2.0

详情介绍:

This plugin creates a 'Label' custom post type which can be assigned to any page or post. Donations: I appreciate all donations, no matter the size. Further development of this plugin is not contingent on donations, but they are a nice incentive. To donate click on the "donate to this plugin" link in the sidebar below Author.

安装:

  1. Install via the WordPress.org plugin directory or by uploading the canadian-nutrition-facts-label folder to the /wp-content/plugins directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Create a label in the new 'Labels' custom post type section of the admin. See units instructions in FAQs for assistance.
  4. Include the shortcode [nutrition-label id=XXX] where you want a specific label to be displayed. Change id=XXX to the specific id number for your label.
  5. Developers: When creating the label you can also specify the Page or Post you want the label to appear and include echo do_shortcode("[nutrition-label]"); in the template where you want the label.

屏幕截图:

  • Install and activate the plugin.  Then navigate to the new "Labels" custom post type in the admin.
  • Add/Edit Label Form - select a page/post to attach the label.  Then simply fill in all the fields
  • Include 'do_shortcode' in your template.  It will search for the first label attached to that page.
  • Add a label with the shortcode and label id [nutrition-label id=XXX].
  • Example generated label
  • Generated label with Vit C left blank showing as "Not a significant source of vitamin C" and with Thiamine added
  • Example how to add additional vitamins

常见问题:

What's the shortcode for this plugin?

[nutrition-label] or [nutrition-label id=XXX] Change id=XXX to the specific id number for your label.

What units does the label use?

  • Grams (g): totalfat, satfat, transfat, carbohydrates, fiber, sugars, protein
  • Milligrams (mg): cholesterol and sodium
  • Percentages: for Vitamins A, C, Calcium and Iron

How do I add additional vitamins?

See screenshot #7 - you click Add New Vitamin then edit the field label to give the vitamin a name

How do I get the line "Not a significant source of ____" to work?

Leave a vitamin blank and it will be added to the line. If you put a 0 in the field, it will not be added. You can also add new vitamins, label them in the order you want them to appear, and leave the field blank. Such as "Not a significant source of vitamin C, or thiamine."

更新日志:

2 1.0.3 1.0.2 1.0.1 1