• Resolved CRGBROKER

    (@crgbroker)


    Hi Guys,

    I’ve used the agent press listing plugin on their Genesis theme for real estate before and am familiar with it.

    When I was running my site using AgentPress I was able to change the listing field titles for location specific information my visitors would recognize.

    How do I change the listing entry field titles (for example: change “State” field title to “County”, etc…)

    Thanks for your help and really like the plugin. I’m using it in Agent Evolution’s Open Floor Plan Theme.

    https://www.ads-software.com/plugins/wp-listings/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author agentevolution

    (@agentevolution)

    AgentPress does not allow you to change those listing details, nor does this plugin.

    Thread Starter CRGBROKER

    (@crgbroker)

    I’m certain you’re wrong, since I’ve changed the field labels for listing details using the agent press listing plugin on https://www.corleyre.com with assistance from the Studiopress forum.

    I hope you’re amenable to looking into this request, especially since not all brokers use IDX plugins for MLS syndication on their sites and not every broker who wishes to use this great plugin.

    In fact, here is the AgentPress Listings plugin code I changed the Field Labels for Listing Details to customize it for the information our customers our most interested in

    class AgentPress_Listings {

    var $settings_field = ‘agentpress_taxonomies’;
    var $menu_page = ‘register-taxonomies’;

    /**
    * Property details array.
    */
    var $property_details;

    /**
    * Construct Method.
    */
    function __construct() {

    $this->property_details = apply_filters( ‘agentpress_property_details’, array(
    ‘col1’ => array(
    __( ‘Price:’, ‘apl’ ) => ‘_listing_price’,
    __( ‘Address:’, ‘apl’ ) => ‘_listing_address’,
    __( ‘City:’, ‘apl’ ) => ‘_listing_city’,
    __( ‘State:’, ‘apl’ ) => ‘_listing_state’,
    __( ‘ZIP:’, ‘apl’ ) => ‘_listing_zip’
    ),
    ‘col2’ => array(
    __( ‘MLS #:’, ‘apl’ ) => ‘_listing_mls’,
    __( ‘Square Feet:’, ‘apl’ ) => ‘_listing_sqft’,
    __( ‘Bedrooms:’, ‘apl’ ) => ‘_listing_bedrooms’,
    __( ‘Bathrooms:’, ‘apl’ ) => ‘_listing_bathrooms’,
    __( ‘Basement:’, ‘apl’ ) => ‘_listing_basement’
    )
    ) );

    And that was in the agentpress-listings/includes/class-listings.php file of the plugin (version 1.0).

    Now, are you absolutely sure there’s no way I can change field labels for Listing Details inside WP Listings?

    Plugin Author agentevolution

    (@agentevolution)

    Sure you can change them if you edit the plugin files, but there’s no editing of those fields in the WP Admin.

    You can edit this plugin and do the same thing. But in doing so, when the plugin is updated those changes are lost – so it’s not recommended to edit the plugin. AgentPress has just never been updated.

    Here’s a suggestion… Perhaps you can suggest the fields you’d like to see and they can be added to the plugin in a future update.

    Thread Starter CRGBROKER

    (@crgbroker)

    I understand. Thanks for your kind attention to this.

    I believe I see where the WP Listing plugin is calling for the information from in the Open Floor Plan and will post a forum item there.

    It seems my request is specific to the theme and not necessarily to the plugin given …

    * Custom loop for listing archive page
    */
    function agentpress_listing_archive_loop() {

    $count = 0;

    if ( have_posts() ) : while ( have_posts() ) : the_post();

    $count++;

    $loop = ”; // init

    $loop .= sprintf( ‘%s‘, get_permalink(), genesis_get_image( array( ‘size’ => ‘properties’ ) ) );

    $loop .= sprintf( ‘<span class=”listing-price”>%s</span>’, genesis_get_custom_field( ‘_listing_price’ ) );
    $loop .= sprintf( ‘<span class=”listing-text”>%s</span>’, genesis_get_custom_field( ‘_listing_text’ ) );
    $loop .= sprintf( ‘<span class=”listing-address”>%s</span>’, genesis_get_custom_field( ‘_listing_address’ ) );
    $loop .= sprintf( ‘<span class=”listing-city-state-zip”>%s, %s %s</span>’, genesis_get_custom_field( ‘_listing_city’ ), genesis_get_custom_field( ‘_listing_state’ ), genesis_get_custom_field(‘_listing_zip’ ) );

    Have a great week.

    Plugin Author agentevolution

    (@agentevolution)

    The WP Listings plugin includes templates to display listings on the front end. If your theme includes templates for AgentPress, like the Open Floor Plan theme, it’s recommended to remove those so the WP Listings templates are used instead.

    The code you referenced only outputs the data on archive pages, not single listings, and does not have any labels to change.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing Listing Field Titles’ is closed to new replies.