Custom Taxnomy

Get Started

Custom taxonomies allow you to create specific categories or tags that are tailored to the needs of your business listings. For example, you might create taxonomies for business types (e.g., “Restaurant,” “Retail,” “Service”), locations, or any other relevant criteria.

BuddyPress Business Profile allows the creation of custom taxonomies for businesses, which can also be used to filter business listings. Here’s a detailed explanation of this feature and the steps to set it up:

Install the Custom Post Type UI Plugin

To create custom taxonomies using the Custom Post Type UI plugin, you need to install and activate the plugin, and then configure it to create the custom taxonomies.

Custom Post Type UI plugin is available on WordPress.org for free. Install and activate the plugin by following the below steps:

  • Log in to your WordPress admin dashboard.
  • In the left-hand menu, hover over Plugins and then click Add New.
  • In the search bar on the top right, type Custom Post Type UI.
  • Locate the Custom Post Type UI plugin in the search results.
  • Click the Install Now button next to the Custom Post Type UI plugin.
  • Once the installation is complete, click the Activate button.

Create Custom Taxonomy

In the WordPress admin dashboard, hover over CPT UI in the left-hand menu and click Add/Edit Taxonomies.

  • You will see a form to create a new taxonomy.
  • Fill in the Taxonomy Slug. This should be a unique identifier for the taxonomy (e.g., “business_type”).
  • Fill in the Plural Label and Singular Label. These are the names that will be displayed in the WordPress admin (e.g., “Business Types” and “Business Type”).
  • In the Attach to Post Type section, select the Business post type
  • Scroll down and set the Hierarchical option to True
  • Naw save the taxonomy

Taxonomy CPT

Once you have enabled the newly created custom taxonomy in the BuddyPress Business Profile settings, the site admin can manage it by following these steps:

  • In the left-hand menu, you will see a section for CPT (Custom Post Types). Look for the custom post type titled Business (or the specific title you have set for your business listings).
  • Under the Business section, you will find the newly created taxonomy. For example, if you created a taxonomy named “Business Tags,” it will be listed there.
  • Click on Business Tags (or the name of your custom taxonomy).
  • You will be taken to a page where you can manage the terms for this taxonomy.
  • Add options (terms) that business owners can select for their business listings. For example, if your taxonomy is “Business Type,” you might add terms like “Restaurant,” “Retail,” “Consulting,” etc.

Enable the Taxonomy

After creating a custom taxonomy using the Custom Post Type UI plugin, you need to enable it within the BuddyPress Business Profile settings. Here are the steps to do this:

  • Log in to your WordPress admin dashboard.
  • In the left-hand menu, find and click on WB Plugins.
  • Under the WB Plugins section, click on BP Business Profile.
  • In the BP Business Profile settings, find the section labeled Custom Taxonomy.
  • Locate the custom taxonomy that you just created (e.g., “Business Tags”).
  • Enable this taxonomy by toggling the switch next to it.

Assign the Taxonomy to Business

After the site admin has added terms to the newly created taxonomy, business owners can assign these taxonomy terms to their businesses.

 

Here are the steps for business owners to do this:

  • Navigate to your business profile or page that you want to edit.
  • Within the business profile, find and click on the Settings tabs.
  • Select General Settings from the dropdown menu.
  • Scroll down the General Settings page until you find the section for the newly created taxonomy (e.g., Business Tags).
  • There will be a dropdown menu for Business Tags.
  • Choose the appropriate tags (terms) that apply to your business from the dropdown menu.
  • Click the Save button to apply the changes.

Taxonomy Filter

This taxonomy filter will also be displayed on the Business Listing page, allowing users to filter and find relevant businesses easily.

Last updated: June 14, 2024