Archived topic
Recipe Post with Quantity Adjuster
5 replies · Started by Fergal on May 31, 2021
Hey there,
I'm looking to replicate a food recipe post like the following: https://www.allrecipes.com/recipe/143809/best-steak-marinade-in-existence/
Where you can adjust the number of servings desired and the recipe will show more or less ingredients accordingly. Do you have a starter template for something like that or could you please point me in the right direction to achieving that? Is it a custom post type with custom fields?
Thanks,
Fergal
Hi Fergal,
Are you referring to the actual checkbox functionality or just creating a list?
Let me know :)
Hey Leo,
Thanks for your quick reply. I'm interested in the dynamic ingredient list and the serving size adjuster (located in the source code as: div class="recipe-adjust-servings recipe-manually-adjust-servings").
For example, for one serving the list shows "2 teaspoons soy sauce", but if you adjust the serving size up to 4 the ingredient list shows "2 tablespoons and 2 teaspoons soy sauce".
I'm not sure how to post a screenshot here, so I hope that description helps.
Ahh I see what you are saying.
That would require a custom solution for sure.
Maybe check out a few recipe plugins and see if they have this option built-in?
Thanks Leo, I'll have a look around for recipe plugins and see if one of those can handle this feature.
No problem :)