Display the Business Directory on Your Site

Display all Directory listings on a page

To display the business directory on your site, create a page where you would like to display it.  Then, in the content area for that page, type in the following shortcode:

[business_directory]

By default, this shortcode will display a list of all of your businesses on one page.  It will show the name, logo, and excerpt of each business, and the name and logo will link to a page that displays details about that business.  You can change this display by adding parameters to the shortcode.  You can use as many or as few of these parameters as you need.  The available parameters* are:

format

Determine the format/layout of the business directory page. (See more formatting options)

Options:

  • list – default
  • grid2 – displays businesses in a 2-column format
  • grid3 – displays businesses in a 3-column format
  • grid4 – displays businesses in a 4-column format

Example:  [business_directory format="grid2"]

 

Chamber Beautiful WordPress theme
grid2 using Chamber Beautiful theme with the logo

-click for live demo-

Chamber Beautiful WordPress theme, 3-column
grid3, using Chamber Beautiful theme with the featured image & single page directory setup

-click for live demo-

Chamber Beautiful WordPress theme, 4-column
grid4, using Chamber Beautiful theme, with the featured image – click for live demo

-click for live demo-

Note: *The following parameters currently only work with:

[business_directory]

We are in the process of adding some of them to the [business_search_results] shortcodes.

categories displayed

Limit the page to display only a certain category or categories.  Put a comma-separated list of categories you wish to display.  You need to use the category slug, which is usually the category name, all in lower case, with dashes instead of commas.  For example, a category called “Restaurants and Eateries” will probably have a slug of “restaurants-and-eateries.”  To find out for sure what the category slug is, go to Businesses –> Business Category.  That page lists all of your categories, and also shows the slug for each category.

Example: [business_directory category="restaurants-and-eateries, coffee-shops"]

membership level

Limit the page to display only a certain membership level or levels.  Put a comma-separated list of membership levels you wish to display.  You need to use the membership level slug, which is usually the membership level name, all in lower case, with dashes instead of commas.  For example, a membership level called “World-Class Supporters” will probably have a slug of “world-class-supporters.”  To find out for sure what the membership level slug is, go to Businesses –> Membership Level.  That page lists all of your membership levels, and also shows the slug for each membership level.

Example: [business_directory level="world-class-supporters, small-potatoes-supporters"]

membership status

Limit the page to display only a certain membership status or statuses.  Put a comma-separated list of membership statusesyou wish to display.  You need to use the membership status slug, which is usually the membership level name, all in lower case, with dashes instead of commas.  For example, a membership status called “Will Join Soon” will probably have a slug of “will-join-soon.”  To find out for sure what the membership level slug is, go to Businesses –> Membership Statuses.  That page lists all of your membership statuses, and also shows the slug for each membership status.

Example: [business_directory status="current, small-potatoes-supporters"]

text

Determine whether you want to display the excerpt or the full text of the business description.

Options:

  • excerpt – default, displays a short excerpt of the description, or the custom excerpt if you have entered one
  • description – displays the entire description (the text entered in the main content area)
  • none – displays no text

Example: [business_directory text="description"]

display

Determine what additional information to display about each business.

Options:

  • location_name – display the names of all locations
  • address – display the addresses of all locations
  • url – display the web address of all locations
  • phone – display the phone number(s) of all locations
  • email – display the email address(es) of all locations
  • category – display the category or categories the business is in
  • level – display the business’s membership level
  • social_media – display the business’s social media links

Example: [business_directory display="url, email, category"]

single_link

Determine whether the business name and logo link to a page displaying more detail about the business.  The link will automatically display by default, but if you don’t want there to be a link, you can turn it off.  If you do this, it means that visitors to your site will not be able to find the single business page.

Options

  • yes – default
  • no – turns off the link

Example: [business_directory single_link="no"]

perpage

The pagination shortcode will help you set the number of businesses that display on the page.  By default, all of the businesses will display, but if you have a lot of businesses, the page might take a very long time to load.  Adding the “perpage” parameter will display that number of businesses per page, with pagination links to view more.

Example: [business_directory perpage="25"]

orderby

Determine the order in which the businesses appear.

Options:

  • name – default, businesses are ordered alphabetically
  • date – businesses are ordered by the date they were entered into the directory
  • modified – businesses are ordered by the date they were last modified
  • menu_order – businesses are ordered by the custom menu order.  To set a menu order for businesses, edit each business.  In the right sidebar is a box labeled “Page Attributes”, with a field for “menu order.”  Put a number in that field, and that will determine the order in which they appear.
  • rand – businesses are ordered randomly.  Every time someone visits the page, they will be in a different order.

Example: [business_directory orderby="menu_order"]

order

Determine whether the order is ascending or descending.

Options:

  • asc – default, order from smallest to largest (or, if ordering by date, order with oldest first)
  • desc – order from largest to smallest (or, if ordering by date, order with newest first0

Example: [business_directory order="desc"]

image

Determine what image to display

Options:

  • logo – default, displays the business logo
  • featured – displays the featured image
  • none – no image

Example: [business_directory image="featured"]


Members Update their Own Listings

Try our Member Updater plugin to add a ‘claim your listing’ feature to your site.

Download our free Member Manager plugin to start accepting online payments.

 

Note: If you are having trouble viewing the Single Business Listing, try going to Settings >>Permalinks and simply click ‘Save’.