• 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

AgentPress /How Can I Change Property Details

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 › General Discussion › AgentPress /How Can I Change Property Details

This topic is: resolved

Tagged: Agentpress Pro

  • This topic has 3 replies, 2 voices, and was last updated 4 years, 10 months ago by Angelo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 31, 2015 at 11:56 am #169742
    Angelo
    Member

    I am trying to change Change the Property Details Text in My AgentPress Listings, but I Can not find the way till now
    I got some code from Ginger Page Here ...But it doesnt work for me .

    I really Need Help?

    October 31, 2015 at 6:48 pm #169760
    Porter
    Participant

    I'd love to help, but I'm not 100% sure what your issue is - try to explain it the best you can.

    As for the link you supplied, that code would go in function.php from the looks of it.


    Buy me a beer? | Try DigitalOcean VPS Hosting

    November 1, 2015 at 4:07 pm #169832
    Angelo
    Member

    Yes you are right, that code would go in function.php, But it doesn´t work for me , when i drop that code into the functions.php file the result is Fatal Error - White Screen of Death!
    What i need is is to change the text in the property details

    I am From Costa Rica and I need those details in Spanish for the visitors
    Exemple
    (Property Details=Detalles de la Propiedad)
    (Price =Precio)
    (Adress=Direccion)
    (City=Ciudad)
    (State=Estado......

    April 29, 2018 at 5:48 pm #219429
    Angelo
    Member

    Here is The Funtion

    // Filter the property details array.
    add_filter( 'agentpress_property_details', 'agentpress_property_details_filter' );
    function agentpress_property_details_filter( $details ) {
    
    	$details['col1'] = array( 
    		__( 'Precio:', 'agentpress' )   => '_listing_price', 
    		__( 'Embalaje:', 'agentpress' ) => '_listing_address', 
    		__( 'Contenido:', 'agentpress' )    => '_listing_city', 
    //		__( 'Opcion04:', 'agentpress' )   => '_listing_state', 
    //		__( 'Opcion05:', 'agentpress' )     => '_listing_zip',
    	);
    
    	$details['col2'] = array( 
    		__( 'Estado:', 'agentpress' )       => '_listing_mls', 
    		__( 'Entrega:', 'agentpress' ) => '_listing_sqft', 
    		__( 'Otro Detalle:', 'agentpress' )    => '_listing_bedrooms', 
    	__( 'Opcion09:', 'agentpress' )   => '_listing_bathrooms', 
    		__( 'Opcion10:', 'agentpress' )    => '_listing_basement',
    	);
    
    	return $details;
    
    }
  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘AgentPress /How Can I Change Property Details’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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