Add calories to the rich snippet (tested code included)
-
Hi!
Thanks for the plugin! It’d be great to add some nutrition information as well, at least calorie count. It requires only a minor change, here’s a code fragment which needs to be added somewhere in the
processShortcode
function:if($type==='calories') $props['nutrition']=array( '@type'=> 'NutritionInformation', 'calories'=> $content );
Best regards,
Lukasz
- The topic ‘Add calories to the rich snippet (tested code included)’ is closed to new replies.