Skip to content
  • Home
  • PluginsExpand
    • WP Recipe Maker
    • WP Ultimate Post Grid
    • Easy Affiliate Links
    • Easy Image Collage
    • All-Access Pass
  • FAQ & Support
  • About Us
  • Blog
  • Your Account
Bootstrapped Ventures Knowledge Base
  • Get the Plugin
  • DocumentationExpand
    • WP Recipe Maker
    • WP Ultimate Post Grid
    • Easy Affiliate Links
    • Visual Link Preview
    • Custom Related Posts
  • Open a Support Ticket
Bootstrapped Ventures Knowledge Base

Getting Started

10
  • WP Recipe Maker 101
  • Installing WP Recipe Maker
  • Activating your license key
  • Updating WP Recipe Maker
  • An overview of WP Recipe Maker
  • Creating a recipe
  • Editing a recipe
  • Filling in the Recipe Fields
  • Managing Recipes
  • Recipes and their Parent Post, Page or Custom Post Type

Video Tutorials

10
  • An overview of WP Recipe Maker
  • Displaying recipes in a grid or index
  • Template Editor
  • Taxonomy Term Images
  • Share Buttons
  • Adding a Grow.me Button
  • Nutrition Label
  • Translation API
  • Recipe Collections
  • Add Recipe to collections through Link

SEO & Metadata

8
  • Recipe Metadata for SEO
  • Metadata for Guided Recipes
  • Metadata for How-to Instructions
  • Recipe Metadata Checker
  • ItemList metadata for Recipe Roundup posts
  • ItemList Metadata for Archive Pages
  • Health Check
  • Pinterest Rich Pins

Template Editor

1
  • Template Editor
  • Features
    • Mobile Friendly Templates
    • Recipe Snippets Template
    • Using a different template for a recipe
    • List Checkboxes
    • Recipe placeholders you can use
    • Using conditions in the recipe template
    • Adding text, HTML or 3rd party shortcodes
  • How-To
    • Changing template colors
    • Changing template fonts
    • Changing template labels
    • Changing recipe image size
    • Changing instruction image size and alignment
    • Changing ingredient and instruction list styles
    • Changing the star rating color
    • Changing the adjustable servings display mode
    • Changing the Unit Conversion style
    • Changing the nutrition label​ style
    • Adding a Call to Action
    • Adding the Recipe Pin button
    • Removing the Recipe Video
    • Using smooth scroll for the Jump to Recipe button
    • Removing the Print Recipe button from the snippet at the top of a post

Nutrition Facts

5
  • Nutrition Label
  • Nutrition Facts Calculation
  • Custom Nutrition Ingredients
  • Custom and Calculated Nutrients
  • Translation API

Recipe Collections

5
  • Recipe Collections
  • Using the Recipe Collections
  • Saved Recipe Collection
  • Quick Access Shopping List
  • Displaying the Recipe Collections feature
  • Features
    • Ingredient Groups for the Shopping List
    • Add to Recipe Collection button
    • Changing the Recipe Collections layout
    • Use custom recipes, ingredients and notes in your collections
    • Display nutrition facts per column for your collections
    • Add Collections through Link
    • Setting default collections for new users
    • Quick add pre-made collections
    • Starter Templates for Collections
    • Add Recipe to collections through Link
    • Show the Shopping List for a Saved Collection
    • Restricting access to the Recipe Collections feature
    • Viewing and editing Recipe Collections of your users
    • Altering the Recipe Collections search with WP Extended Search

Import & Export

7
  • Importing recipes from other plugins
  • Custom Recipe Importer
  • Import recipe from text
  • Import Recipes from JSON
  • Export Recipes to JSON
  • JSON import and export for Taxonomy Terms
  • Import recipes from the Paprika Recipe Manager app
  • Importing from Plugins
    • Import from Tasty Recipes
    • Import from WP Delicious
    • Import from Create by Mediavine
    • Import from Recipe Card Blocks by WPZOOM
    • Import from WP Ultimate Recipe
    • Import from EasyRecipe
    • Import from Meal Planner Pro
    • Import from BigOven
    • Import from Ziplist
    • Import from Yummly
    • Import from Recipe Card
    • Import from FoodiePress
    • Import from Cooked
    • Import from Cookbook
    • Import from Simple Recipe Pro
    • Import from Purr Recipe Plugin
    • Import from Recipes by Simmer
    • Import from WordPress.com Shortcode
    • Import from Recipes Generator

Integrations

14
  • Displaying recipes in a grid or index
  • Easy Affiliate Links Integration
  • How to use this for a multilingual blog
  • Clickable images for Lightbox integration
  • Google AMP Compatible
  • Google Analytics 4 Event Tracking
  • Link Amazon Products to Equipment
  • SmartWithFood Shoppable Recipes
  • Shop with Instacart Button
  • Shop with Walmart Button
  • Chicory In-Recipe Ads and Shoppable Button
  • Adding a Grow.me Button
  • Adding a Slickstream Favorites button
  • What theme do you recommend for WPRM?

WP Recipe Maker FAQ

6
  • Translating text in the plugin
  • Automatic archive pages for taxonomy terms
  • Using fractions for ingredient amounts
  • Can I add more diet terms?
  • Setting your own YouTube Data API key
  • How to disable pinning for recipe images

Common Issues

10
  • Recipes Don’t Have the Correct Parent Post
  • API Status
  • Google is sending me Recipe Metadata Warnings
  • Missing field “aggregateRating” in metadata
  • Prevent CLS issues
  • 403 Forbidden Error
  • Cloudflare Firewall Issues
  • Error message when saving a recipe
  • The recipe video is not displaying inside of the recipe card
  • Empty recipe after saving

WPRM for Developers

11
  • The Recipe Post Type
  • Recipe Shortcodes
  • Access recipes in a post via code
  • Show default WordPress UI for taxonomies
  • Using the Recipe Object for front-end changes
  • Plugin hooks and filters
  • WordPress REST API
  • Custom Recipe Importer
  • How themes can style WP Recipe Maker
  • Create your own template
  • Adding your own SVG icons for the Template Editor

Announcements

9
  • WP Recipe Maker Changelog
  • Version 9.4.1 – About those recipe ratings
  • Version 5.6.0 – Some highly anticipated features!
  • Version 5.3.0 – All about the Nutrients
  • Version 5.2.0 – How-to recipes and more!
  • Version 5.0.0 – Introducing a new User Interface
  • Version 4.0.4 – Changing the look of the Cutout template
  • Migrating from Legacy to Modern mode
  • What about WP Ultimate Recipe?

Debugging Plugin Issues

4
  • Debugging plugin problems
  • The downloaded plugin is not a zip archive
  • Flushing permalinks to fix 404 errors
  • Creating a Temporary Login
View Categories
  • Home
  • Documentation
  • WP Recipe Maker
  • Template Editor
  • Features

Using conditions in the recipe template

Just getting started with the Template Editor?
Check out the Template Editor documentation first!

Conditions can be used to show or hide specific parts of the template depending on certain conditions. There are different types of conditions that can be used, detailed in the different sections below:

  • Field conditions
  • Taxonomy conditions
  • Custom Field conditions
  • Rating conditions
  • Device conditions
  • User conditions

Important note: conditions will always show their content in the Template Editor preview. They will only work as expected on your actual site.

General usage of conditions

Conditions work by surrounding specific parts of the recipe template with the [wprm-condition][/wprm-condition] shortcode. You do this by going into “Edit HTML” in the Template Editor and literally typing that shortcode, using the correct attributes.

For example, here the template will display a disclaimer if the recipe has nutrition set:

See the sections below for the available attributes.

Once general attribute that can be added is inverse=”1″ which essentially inverses the condition:

[wprm-condition field="nutrition" inverse="1"]This text will show up if the recipe does NOT have nutrition values[/wprm-condition]

The inverse attribute can be combined with any of the attributes below. It is also possible to combine multiple of the attributes below. In that case, it will require all conditions to be met.

Using field conditions

A field condition can be used to show or hide a section of the recipe template if a certain field is present:

[wprm-condition field="image"]This text will show up if the recipe has an image[/wprm-condition]

Examples of values that can be used for the field attribute:

  • image
  • video
  • nutrition
  • unit-conversion
  • cost
  • total_time
  • …

Using taxonomy conditions

A taxonomy condition can be used to show or hide a section of the recipe template depending on the specific terms a recipe has associated with it:

[wprm-condition taxonomy="course" term_ids="4;10"]This text will show up if the recipe has the terms with ID 4 or 10 associated with it for the course taxonomy[/wprm-condition]

For the taxonomy attribute you’d use one of the recipe taxonomies:

  • course
  • cuisine
  • ingredient
  • …

You then combine this with either term_ids="" or term_slugs="" as an attribute to define which terms that recipe should have. Multiple terms (with an OR relation) can be defined by splitting them with ;

Using custom field conditions

A custom field condition can be used to show or hide a section of the recipe template if a certain custom field is present:

[wprm-condition field="custom" key="your-custom-field"]This text will show up if a value is set for "your-custom-field"[/wprm-condition]

The key of the custom field can be found in the “key” column on the WP Recipe Maker > Manage > Your Custom Fields > Custom Fields page.

Using rating conditions

A rating condition can be used to show or hide a section of the recipe template depending on the average rating of a recipe:

[wprm-condition rating="0"]This text will show up if the recipe does not have any ratings yet[/wprm-condition]
[wprm-condition rating="4-5"]This text will show up if the recipe has a rating of 4 stars or more[/wprm-condition]

You can specify a range or an exact value. Take note that rating="3" will not match an average recipe rating of 3.2, for example. You should use rating="3-3.999" if you want to match a recipe that has at least 3 stars, but not 4 stars.

Using device conditions

In some cases you might want to show specific text or features based on the device that a visitor is using:

[wprm-condition device="mobile;tablet"]This text will show up on mobile and tablet[/wprm-condition]

These are the valid values for the device attribute:

  • mobile
  • tablet
  • desktop

Devices can be combined by using ; as a separator.

Using user conditions

A user condition can be used to show or hide parts of the recipe template depending on the visitor’s user status:

[wprm-condition user="logged_in"]This text will show up for logged in users only[/wprm-condition]

These are the valid values for the user attribute:

  • logged_in
  • logged_out
Updated on December 3, 2024
Recipe placeholders you can use
Table of Contents
  • General usage of conditions
  • Using field conditions
  • Using taxonomy conditions
  • Using custom field conditions
  • Using rating conditions
  • Using device conditions
  • Using user conditions

© 2025 Bootstrapped Ventures · BE0634.767.406
Privacy Policy

  • Bootstrapped Ventures
  • Plugins
    • WP Recipe Maker
      • Demo
      • Documentation
      • Get the Plugin
    • WP Ultimate Post Grid
    • Easy Affiliate Links
    • Easy Image Collage
    • All-Access Pass
  • FAQ & Support
    • Knowledge Base
    • Documentation
  • About Us
  • Blog
  • Your Account