Title: Change Labels Problem
Last modified: August 22, 2016

---

# Change Labels Problem

 *  Resolved [phillyrealestate](https://wordpress.org/support/users/phillyrealestate/)
 * (@phillyrealestate)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/change-labels-problem/)
 * I changed the labels using the instructions on agentevolution.com This is the
   filter I am using
 *     ```
       # Add filter to customize listing details
   
       add_filter( 'wp_listings_property_details', 'custom_wp_listings_details');
   
       function custom_wp_listings_details() {
       	$property_details_columns = array(
       		'col1' => array(
       		    __( 'Price:', 'wp_listings' ) 			=> '_listing_price',
       		    __( 'Taxes / Yr:', 'wp_listings' )			=> '_listing_taxes',
       		    __( 'Address:', 'wp_listings' )			=> '_listing_address',
       		    __( 'Neighborhood:', 'wp_listings' )			=> '_listing_neighborhood',
       		    __( 'ZIP:', 'wp_listings' )				=> '_listing_zip',
       		    __( 'MLS #:', 'wp_listings' ) 			=> '_listing_mls',
       		    __( 'Open House Time & Date:', 'wp_listings' ) 	=> '_listing_open_house'
       		),
       		'col2' => array(
       		    __( 'Year Built:', 'wp_listings' ) 			=> '_listing_year_built',
       		    __( 'Design:', 'wp_listings' ) 			=> '_listing_design',
       		    __( 'Square Feet:', 'wp_listings' )			=> '_listing_sqft',
       		    __( 'Lot Dimensions:', 'wp_listings' )		=> '_listing_lot_dimensions',
       		    __( 'Bedrooms:', 'wp_listings' )			=> '_listing_bedrooms',
       		    __( 'Bathrooms:', 'wp_listings' )			=> '_listing_bathrooms',
       		    __( 'Parking:', 'wp_listings' )			=> '_listing_parking'
       		),
       		) ;
   
       	return $property_details_columns;
       }
       ```
   
 * It does change the input labels but not all the labels are changed on the published
   listing. [Here is a screenshot of the problem](http://postimg.org/image/d5rp9lmbn/)
 * [Here is the listing on my website](http://thephillypretzel.com/listings/2224-manning-street/)
 * Beside this small problem I love this plugin

Viewing 1 replies (of 1 total)

 *  Plugin Author [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * (@agentevolution)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/change-labels-problem/#post-5942089)
 * Looks like this was introduced in the last plugin update when we added schema.
   org support for the listings. In doing so, we changed how those fields are output
   in the single-listing.php template. Will look into addressing this in the next
   update, but in the meantime, you can copy the single-listing.php file from the
   plugin’s /includes/views/ folder to your theme folder.
 * Once you’ve copied it to your theme folder, edit the single-listing.php file 
   at around line 113 you’ll see the lines outputting that data:
 *     ```
       echo '<tbody class="left">';
                           echo '<tr class="wp_listings_listing_price"><td class="label">Price:</td><td>'.get_post_meta( $post->ID, '_listing_price', true) .'</td></tr>';
                           echo '<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">';
                           echo '<tr class="wp_listings_listing_address"><td class="label">Address:</td><td itemprop="streetAddress">'.get_post_meta( $post->ID, '_listing_address', true) .'</td></tr>';
                           echo '<tr class="wp_listings_listing_city"><td class="label">City:</td><td itemprop="addressLocality">'.get_post_meta( $post->ID, '_listing_city', true) .'</td></tr>';
                           echo '<tr class="wp_listings_listing_state"><td class="label">State:</td><td itemprop="addressRegion">'.get_post_meta( $post->ID, '_listing_state', true) .'</td></tr>';
                           echo '<tr class="wp_listings_listing_zip"><td class="label">Zip:</td><td itemprop="postalCode">'.get_post_meta( $post->ID, '_listing_zip', true) .'</td></tr>';
                           echo '</div>';
                           echo '<tr class="wp_listings_listing_mls"><td class="label">MLS:</td><td>'.get_post_meta( $post->ID, '_listing_mls', true) .'</td></tr>';
                           echo '</tbody>';
       ```
   
 * Then just change the data field names to the same as your custom field names 
   and remove or change the schema.org markup if applicable.

Viewing 1 replies (of 1 total)

The topic ‘Change Labels Problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-listings_978e8f.svg)
 * [IMPress Listings](https://wordpress.org/plugins/wp-listings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-listings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-listings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-listings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-listings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-listings/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [agentevolution](https://wordpress.org/support/users/agentevolution/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/change-labels-problem/#post-5942089)
 * Status: resolved