Nutrition Facts Label

Nutrition Facts Label

Wordpress plugin

Install on Wordpress

App Details

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.

 <?php echo do_shortcode( '[embed_nutrition_label]' ) ?> 

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

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.

Notes to developers

Contributing

If you would like to contribute to our suite of plugins, head on over to Global Food Book Labs. Feel free to fork and contribute back.

  1. Fork it (https://github.com/globalfoodbook/nutrition-facts-label)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Adding Screenshots to the WordPress repo

  1. Rename each screenshot for each step like this. For step 1 the screenshot is screenshot-1.png.
  2. The banner image is named as banner-772×250.png.
  3. Use an SVN client like smart svn or rapid svn etc to upload these images to the /assets folder.
  4. After this, commit and all will be picked up.

Pushing plugin to WordPress svn repo

  1. Clone this repo

     git clone [email protected]:globalfoodbook/nutrition-facts-label.git 
  2. cd path/to/nutrition-facts-label

  3. vim .git/config
  4. Add the code below:

     [svn-remote "svn"] url = https://plugins.svn.wordpress.org/[plugin_name]/trunk fetch = :refs/remotes/git-svn 
  5. Then merge the master into the new branch:

     git svn fetch svn git checkout -b svn git-svn git merge master git svn dcommit --username [Wordpress.org username] 
  6. Then rebase that branch to the master, and you can dcommit from the master to svn

     git checkout master git rebase svn git branch -d svn git svn dcommit --username [Wordpress.org username] 

Pricing

Starting from $0 per month.

Check Out the Charts & Graphs Widget

By Common Ninja

Charts & GraphsTry For Free!

App Info

Rating

Reviewers

2 reviews

Tags

food
food-cook
nutrition
nutrition facts
nutrition label

Developed By

kengimel

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Maps

Maps plugins for Wordpress

Translation

Translation plugins for Wordpress

Chat

Chat plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Contact

Contact plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Forms

Forms plugins for Wordpress

Comments

Comments plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Comments

Comments plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Video Player

Video Player plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Security

Security plugins for Wordpress

Ads

Ads plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Membership

Membership plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

More plugins

plugins You Might Like

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms