Hey,
That list is hard-coded, I took it from Schema.org list of restricted diet options seen here: https://schema.org/RestrictedDiet
It never occurred to me users would want to add to that list.
If it is really important to your use of the plugin I could rewrite that feature to accept new entries.
Thread Starter
vsbfhh
(@vsbfhh)
Hi,
Yes there are other restrictions that I would like to add such as egg-free, dairy-free, peanut free. Therefore to allow new entries would be great. Also may adding Fiber/Fibre, saturated fat, sugars, sodium, as an option in the Nutritional information box.
Thanks
It think you may be interested in a new taxonomy instead of adding new data to the JSON-LD schema markup. If you try adding new data it is possible Google may flag your recipes as invalid since egg-free, dairy-free or peanut free are not valid schema values.
Try this instead:
- Go the the plugin’s settings, then the “Taxonomies” tab.
- Add “Diet” to the list at the “Taxonomy Selection” section.
- Save changes
- You should now see a “Diet” section on that settings page. Make sure the “Show on frontend” option is checked.
- Save changes
When you create or edit a recipe you should see a section on the editor to add you diet-type information.
Thread Starter
vsbfhh
(@vsbfhh)
Hi,
Thanks for this. I have already added this as an alternative option. I have to say that this is a great plugin. I had a paid version that I just removed that had more restrictions. Your plugin is simple and easy to use and I just left a review.
Thanks again
Thanks for the review.
I’ll push an update next week to add more nutrition values, the options are already in the plugin but I haven’t figured out a way to add them without looking cluttered.
Thread Starter
vsbfhh
(@vsbfhh)
That is great, thank you, the 2 main would be fiber and sugar.
Another question I have, is there a way that users can submit recipes front end?
I have added a new feature which allows user to add any number of new nutrition fields. I am just running some tests and cleaning it up before I add it to a new update that I will release next week.
For the frontend recipe submission feature, that is already a planned feature but I don’t know when it will be added as I am busy re-writing the plugin to be fully Gutenberg compatible.
Thread Starter
vsbfhh
(@vsbfhh)
Is there a way to add sidebars to the single recipe page?
Sidebars are a function of the theme you’re using, this plugin shouldn’t affect that.