• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How Do You Modify Default Taxonomies

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How Do You Modify Default Taxonomies

This topic is: not resolved

Tagged: agent listing, agent press, taxonomies

  • This topic has 6 replies, 3 voices, and was last updated 11 years, 3 months ago by cubicle10.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • April 28, 2014 at 5:13 pm #102825
    Artemis
    Participant

    I'm currently using Agent Press with the Agent Listing plugin and I'm wondering of anyone knows how to modify the existing taxonomies. I need to get rid of the bedroom and bathroom fields when the property displays.

    Any help would be much appreciated.

    Artemis

    Link to SP theme setup/config:
    http://my.studiopress.com/setup/agentpress-theme/

    http://nordicltd.com/beta1
    April 28, 2014 at 9:34 pm #102848
    Brad Dalton
    Participant

    What happens if you delete them?


    Tutorials for StudioPress Themes.

    April 28, 2014 at 10:29 pm #102854
    Artemis
    Participant

    That's what I'm trying to figure out. I don't need the bedroom/bathroom fields and I'm trying to remove it but I'm not sure where to do this.

    April 30, 2014 at 2:36 am #103049
    Artemis
    Participant

    Figured it out. The code is located within the functions.php of AgentPress2.0 -

    add_filter( 'agentpress_property_details', 'agentpress_property_details_filter' );
    /**
     * Filter the property details array for property listings
     *
     */
    function agentpress_property_details_filter( $details ) {
         
        $details['col1'] = array(
            __( 'Price:', 'apl' ) => '_listing_price',
            __( 'Address:', 'apl' ) => '_listing_address',
            __( 'City:', 'apl' ) => '_listing_city',
            __( 'State:', 'apl' ) => '_listing_state',
            __( 'ZIP:', 'apl' ) => '_listing_zip'
        );
        $details['col2'] = array(
            __( 'MLS #:', 'apl' ) => '_listing_mls',
            __( 'Square Feet:', 'apl' ) => '_listing_sqft',
            __( 'Bedrooms:', 'apl' ) => '_listing_bedrooms',
            __( 'Bathrooms:', 'apl' ) => '_listing_bathrooms',
            __( 'Basement:', 'apl' ) => '_listing_basement'
        );
         
        return $details;
         
    }
    November 11, 2014 at 10:32 am #131195
    cubicle10
    Member

    Did you have to change any of the code in the plugin or just the child theme's functions.php?


    E.J.
    Cubicle10

    November 11, 2014 at 2:17 pm #131211
    Brad Dalton
    Participant

    The code in the functions file modifys the default output of the plugin as it uses the agentpress_property_details filter applied in Agentpress > listings line 26

    So you only use the filter function in your child themes functions file and never modify the plugins code.


    Tutorials for StudioPress Themes.

    November 13, 2014 at 6:03 pm #131476
    cubicle10
    Member

    Thanks Brad. I was able to get it done correctly.


    E.J.
    Cubicle10

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble