In the Feast Plugin 7.8.0 and later, you can now display posts based on ingredients! (currently only WPRM, support for Tasty and Create will come)
This is beneficial because it does not require creating categories to organize recipes by ingredient. Instead, it leverages work that you've already done.
It uses the "Ingredient" fields in the FSRI block:
The ingredients you use must be an exact match for the "ingredient" field in your recipe card.
The best use case for this recipes where a primary ingredient is really what drives the dish. Examples of this would be recipes with:
- pumpkin (Halloween)
- turkey (Thanksgiving)
- peppermint (Christmas)
Using the FSRI block to display related recipes with these ingredients, in a "Related" h2 directly above the recipe card, can help users find other recipes they might like and improves internal linking.
Inconsistent ingredient names
Something we expect most people to run into is that they've entered the ingredient names different, in different recipes. For example, on one of our test sites we have "quinoa" and "cooked quinoa" as separate ingredients.
This is wrong:
These should all be the same ingredient "cabbage" with the modifier in the "notes" field that belongs with that ingredient.
The correct way to enter ingredients is to use the proper ingredient name in the ingredient field, and a descriptor/modifier in the "notes" field next to it. This means that:
- "cooked quinoa" should really be "quinoa" with a note of "cooked"
- "diced bell peppers" should be "bell peppers" with a note of "diced"
- "pickled purple cabbage" should be "cabbage" with the note "purple, pickled"
You can find the variations you've used in WP Recipe Maker > Manage > Recipe Field > Name
Here's a quick overview on how to check for variations and fix them:
More examples of incorrect vs. correct ingredient fields. Keep the ingredients broad and use the note field to add context or specifics, or variations
|of grilled pork||pork||grilled|
|of butter to coat pan||butter||for the pan|
|sprinkle of sea salt||sea salt|
|onion of any variety||onion||white, red or yellow are fine|
|juice of 1 lime||lime juice|
|package of frozen green beans||green beans||frozen|
|finely minced fresh rosemary||rosemary||fresh, finely minced|
|of diced avocado||avocado||diced|
Pro tip: recipes with either ingredient
You can use the modifier " OR " (space-OR-space) to display posts with ingredients that match any of the terms.
This is especially useful on sites with fewer recipes, where you may only pull up 1 or 2 recipes per ingredient.
For example, if you have a site dedicated to cocktails and you want to display related recipes that use "lemon juice OR lime juice" this will pull them all.
Pro tip: recipes with multiple ingredients
You can use the modifier " AND " (space-AND-space) to display posts with two (or more!) ingredients.
This is more useful on larger sites that may pull up too many recipes, or recipes that aren't closely enough related.
For example, if you have a site dedicated to cocktails and you want to display related recipes that use "lemon juice AND egg whites" this will display recipes that only contain both ingredients.
Choosing specific posts
Unfortunately, you can't sort this by published or modified date because of how ingredient data is stored.
If you really want to require a specific post to be displayed, we recommend either:
- displaying posts using the FSRI block and the "post IDs" field
- BEST PRACTICE: manually linking to that post in your actual content