How Can We Help?

The Food Listings

Print
< All Topics

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:

  1. Log into your WordPress Admin dashboard
  2. On the dashboard, find Pages at the left side of the screen.
  3. Now click on New Page to create one.
  4. Add a suitable title to it and add the shortcode [foods] inside the content area.

Food Listing Shortcode
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

  1. Box Layout
    The box layout appears like this in the image:
    Filtrable Food Listings Box View
  2. List Layout
    The list layout displays food listing the same way as shown in the image:
    Filtrable Food Listings List View

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″]

Food Listings Shortcode Attributes

Table of Contents