Add Custom Fields To AgentPress Listings

Add Custom Fields To AgentPress Listings

Add Custom Fields To AgentPress Listings details to the AgentPress Property Listings Plugin isn’t the easiest tasks – as custom coding within the child theme functions.php file needs to be created.
Creating custom Taxonomies within the plugin actually doesn’t affect the listings any, instead, this is used for the searchability of the listings.

So how exactly do you add custom property listings taxonomies to the listing itself?

Within your functions.php file, you can add the following, extended version of property listings taxonomies displayed on the property listings itself. Here is a sample of the output.

Add custom fields to agentpress property listings plugin
Add custom fields to agentpress property listings plugin

 

  1. So Add Custom Fields To AgentPress Property Listings plugin?  Open Appearance > Theme Editor > Click on the functions.php file (Make sure your current theme is selected)

  2. Add the following code at the end:

// Agent Listing Functions addon Start by Town Press Marketing
// //* Filter the property details array
add_filter( ‘agentpress_property_details’, ‘agentpress_property_details_filter’ );
function agentpress_property_details_filter( $details ) {

$details[‘col1’] = array(
__( ‘Price:’, ‘agentpress’ ) => ‘_listing_price’,
__( ‘Address:’, ‘agentpress’ ) => ‘_listing_address’,
__( ‘City:’, ‘agentpress’ ) => ‘_listing_city’,
__( ‘State:’, ‘agentpress’ ) => ‘_listing_state’,
__( ‘ZIP:’, ‘agentpress’ ) => ‘_listing_zip’,
__( ‘MLS #:’, ‘agentpress’ ) => ‘_listing_mls’,
__( ‘Square Feet:’, ‘agentpress’ ) => ‘_listing_sqft’,
__( ‘Year Built:’, ‘agentpress’ ) => ‘_Year_Built’,
);
$details[‘col2’] = array(

__( ‘Bedrooms:’, ‘agentpress’ ) => ‘_listing_bedrooms’,
__( ‘Bathrooms:’, ‘agentpress’ ) => ‘_listing_bathrooms’,
__( ‘Garage:’, ‘agentpress’ ) => ‘_listing_basement’,
__( ‘Full Baths:’, ‘agentpress’ ) => ‘_Full_Baths’,
__( ‘Half Baths:’, ‘agentpress’ ) => ‘_Half_Baths’,
__( ‘Property Type:’, ‘agentpress’ ) => ‘_Property_Type’,
__( ‘Water Front:’, ‘agentpress’ ) => ‘_Water_Front’,
__( ‘Zoning:’, ‘agentpress’ ) => ‘_Zoning’,
__( ‘HOA Fees:’, ‘agentpress’ ) => ‘_HOA_Fees’,

);
return $details;
}
// Agent Listing Functions addon End by Town Press Marketing

if you need customization of your AgentPress listings for easier Agentpress Property Listings, contact Town Press Marketing.

 

 

Let Town Press Marketing bring your vision to life with stunning, results-driven website design or digital marketing.
Contact us today to start your project!

Real estate website design by Town Press Marketing