Use this free WordPress plugin to create Nutrition Facts Labels with vitamins.
This plugin creates a ‘Label’ custom post type which can be assigned to any page or post.
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 the Authors.
Install via the WordPress.org plugin directory or by uploading the nutrition-facts-vitamins folder to the /wp-content/plugins directory
Activate the plugin through the Plugins menu in WordPress
Create a label in the new ‘Labels’ custom post type section of the admin. See units instructions for assistance.
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.
DEVELOPERS: include echo do_shortcode(“[nutrition-label]”); in your page template. Then specify the Page or Post when creating 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
Install via the WordPress.org plugin directory or by uploading the nutrition-facts-vitamins folder to the /wp-content/plugins directory
Activate the plugin through the Plugins menu in WordPress
Create a label in the new ‘Labels’ custom post type section of the admin. See units instructions for assistance.
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.
DEVELOPERS: include echo do_shortcode(“[nutrition-label]”); in your page template. Then specify the Page or Post when creating the label.
[nutrition-label] or [nutrition-label id=XXX] Change id=XXX to the specific id number for your label.
Include echo do_shortcode(“[nutrition-label]”); in your page template. Then specify the Page or Post when creating the label.
See screenshot #7 – you click Add New Vitamin then edit the field label to give the vitamin a name
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.”
CAUTION version 3.0 of this plugin changes the Nutrition Label to the NEW FDA format. Only update the plugin if you want this new format. Includes nutrients D, Calcium, Iron and Potassium. See http://www.fda.gov/downloads/Food/NewsEvents/WorkshopsMeetingsConferences/UCM508389.pdf for a detailed description of what’s changed.