Support » Plugin: Interstrategy Business Listings » [Plugin: Interstrategy Business Listings] Backend Customization

  • ResolvedPlugin Author Bill Erickson

    (@billerickson)


    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

    http://wordpress.org/extend/plugins/interstrategy-business-listings/

  • The topic ‘[Plugin: Interstrategy Business Listings] Backend Customization’ is closed to new replies.