nickcernis
12/15/2014 - 12:31 PM

Change the Property Details labels in the AgentPress Pro theme

Change the Property Details labels in the AgentPress Pro theme

<?php // Remove the opening PHP tag before pasting to functions.php

add_filter( 'agentpress_property_details', 'custom_agentpress_property_details_filter' );

// Filter the property details array for property listings
// Replace labels such as "ZIP" with "Postcode" etc.
function custom_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;

}