Interstrategy Business Listings
[resolved] Backend Customization (1 post)

  1. Bill Erickson
    Plugin Author

    Posted 4 years ago #

    Out of the box, the plugin creates a "Businesses" post type, a business category taxonomy, and a metabox for collecting business information. Every aspect of this is customizable. All of this code goes in your theme's functions.php file.

    To remove the post type:

    apply_filters( 'interstrategy_business_listings_post_type', '__return_false' );

    To remove the taxonomy:

    apply_filters( 'interstrategy_business_listings_taxonomy', '__return_false' );

    To remove the metabox:

    apply_filters( 'interstrategy_business_listings_metabox', '__return_false' );

    To customize the post type, taxonomy, or metabox, use the interstrategy_business_listings_defaults filter. This filters an array which contains the following: https://gist.github.com/1327899

    Let's say you wanted to turn this into a members directory. These are the changes you want to make:
    - Update the post type labels to use Members instead of Businesses
    - Change the post type and taxonomy slugs to members and member-category, respectively
    - Change the title and post type for the metabox.

    Here's the code you'd use: https://gist.github.com/1327991


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Interstrategy Business Listings
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic