RestroFood includes a set of built-in shortcodes that let you drop key ordering features like your product listing or a delivery-area checker onto any WordPress page or post without touching code.
This guide covers where to find them, how each one works, and how to customize them with attributes.
What Is a Shortcode?
A shortcode is a short bracketed tag (like [restrofood_products]) that you paste into the WordPress editor to trigger a specific feature. RestroFood uses shortcodes so you can place ordering-related components, product grids, delivery checkers, and more on any page, in any order, without editing template files.
Where to Find Your Shortcodes
RestroFood keeps every shortcode, its attributes, and a built-in generator in one place:
- Log in to your WordPress Dashboard.
- Click RestroFood in the left-hand admin menu, then open Settings (this may appear as RestroFood Theme Options depending on your setup).
- In the settings sidebar, select the Shortcode List tab.
- You’ll see the ready-to-copy shortcodes and their attribute list at the top of the page, plus a Shortcode Generator further down.
The Shortcode Generator has a dropdown (“Shortcode For ?”) where you can pick the shortcode type you need: Products, Products without page component, Delivery ability checker form, or Delivery Schedule. Then click Save Setting to generate it with your chosen attribute values, so you don’t have to type attributes by hand.
Product Page Shortcode
Use this to display your product listing anywhere on your site.
Basic version:
[restrofood_products]
This shows your products with all default settings a fast way to get a listing live.
Customized version:
[restrofood_products col=”4″ cat=”accessories” layout=”grid” search=”yes” padding_top=”120px” padding_bottom=”120px”]
Available attributes:
| Attribute | Example | What it controls |
| cat | cat=”accessories” | Filters products by category name |
| col | col=”4″ | Number of columns per row – accepts 2, 3, or 4 |
| layout | layout=”grid” | Layout style – grid or list |
| style | style=”1″ | Visual style variant – 1, 2, or 3 |
| mini_cart_type | mini_cart_type=”canvas” | Mini cart display type – canvas, footer-fixed, or beside-products |
| search | search=”yes” | Shows a product search bar – yes or no |
| padding_top | padding_top=”120px” | Top padding for the section wrapper |
| padding_bottom | padding_bottom=”120px” | Bottom padding for the section wrapper |
Delivery Ability Checker Shortcode
Use this to let visitors check whether delivery is available in their area before ordering.
Basic version:
[restrofood_delivery_ability_checker]
This adds the default delivery-checker form to the page.
Customized version:
[restrofood_delivery_ability_checker button_text=”search”]
Available attributes:
| Attribute | Example | What it controls |
| button_text | button_text=”search” | Changes the label on the checker button |
Other Shortcodes Available via the Generator
The Shortcode Generator’s dropdown also offers two additional options beyond the two above:
- Products without page component – a variant of the product listing shortcode, generated the same way through the dropdown.
- Delivery Schedule – displays branch delivery hours (e.g., business hours). Its settings panel exposes attributes for a heading label (shown in the admin panel as heading_title, with an example value of “Business Hours”), a branch_type (accepting single or multi-branch), and a branch_id for targeting a specific branch.
Since the exact shortcode tags for these two aren’t printed on the Shortcode List page the way the Products and Delivery Ability Checker ones are, the safest way to get them is to select the option from the Shortcode For ? dropdown, set the attribute fields as needed, and click Save Setting to generate the correct code.
Adding a Shortcode to Your Site
Once you have the shortcode text:
- Copy it from the Shortcode List page (or the generator output).
- Open the page or post where you want it to appear in the WordPress editor.
- Paste the shortcode into a paragraph or shortcode block, then update/publish the page.
RestroFood is built to work with common WordPress themes and page builders that support shortcodes, including Elementor, Gutenberg, WPBakery, Visual Composer, Brave Builder, and Divi Builder, so you can drop a shortcode into a Text/Shortcode widget inside any of these builders as well.
Quick Reference
| Shortcode | Purpose |
| [restrofood_products] | Displays your product listing |
| [restrofood_delivery_ability_checker] | Displays the delivery-area checker form |
| Products without page component | Generated via Shortcode Generator |
| Delivery Schedule | Generated via Shortcode Generator; shows branch delivery hours |
Frequently Asked Questions (FAQs)
Can I use RestroFood shortcodes on multiple pages?
Yes, the same shortcode can be placed on your homepage, product pages, or any custom landing page.
How do I know which attributes to use?
Check the Attribute List on the Shortcode List page under RestroFood → Settings, which lists every accepted attribute and its possible values for each shortcode.
What if I don’t want to type attributes manually?
Use the Shortcode Generator on the same page, pick your shortcode type from the dropdown, set the fields, and click Save Setting.