• bolo1729

    (@bolo1729)


    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

    https://www.ads-software.com/plugins/recipe-snippets/

  • The topic ‘Add calories to the rich snippet (tested code included)’ is closed to new replies.