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:
Follow the below steps to set-up a new page:
- Log into your WordPress Admin dashboard
- On the dashboard, find Pages at the left side of the screen.
- Now click on Add 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
You can refer to the below image as a reference to see how box layout looks on the screen:
- 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: Set ‘per page’ option as a default setting. This determines how many food items can be listed in a single page.