How Can We Help?
The Food Listings
Your food menu is indeed incomplete without the food listing; hence, displaying all options served in your restaurant. For this, a complete step-by-step procedure is mentioned below to create one. Users need to create a new page from the Pages menu at the Admin Panel followed by adding the shortcode [foods]. An alternative way is you can add the shortcode in the Template File that is attached to the page created.
The shortcode shows the list of your food along with search filters.
Food Listing Page Setup:
Create a new page following the below mentioned steps:
- Log into your WordPress Admin dashboard
- On the dashboard, find Pages at the left side of the screen.
- Now click on New Page to create one.
- Add a suitable title to it and add the shortcode [foods] inside the content area.
Note: It is recommended for you to paste the shortcode into the ‘text’ view of the visual editor to ensure it gets formatted correctly.
Layout of the Food Listings
Users get mainly two types of layouts to display all the food listings on the website, namely
- Box Layout
The box layout appears like this in the image:
-
List Layout
The list layout displays food listing the same way as shown in the image:
The Food Listings Shortcode Attribute
WP Food Manager has an attribute, namely per_page, which is associated with the food listings.
per_page: Defaults to the ‘per page’ option in settings. This determines how many food items can be listed in a single page.
Example:
1 | [foods per_page=”12″] |