AgentPress – "Property Details" for UK! Please Help

Community Forums Forums Design Tips and Tricks AgentPress – "Property Details" for UK! Please Help

This topic is: resolved

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  havsingh 1 year, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #50060

    havsingh
    Participant
    Post count: 11

    Hi all,

    There was another thread about this, but i am not sure if it was resolved in there, and I am asking for something for a bit more specific.

    The current AgentPress theme is designed for the US. I am based in the UK, so a few things like below need to be changed. How would I do this?

    “State” > “County”
    “Zip” > “Postcode”
    “MLS” > “Ref Number”

    I would also like to get rid of “Square Feet” and “Basement” appearing in my listings.

    Any help on where I find these fields would be greatly appreciated.

    Thank you in advance :-)

    http://appletonestates.co.uk/listings/wilbury-avenue-sutton-sm2/
    #50098

    havsingh
    Participant
    Post count: 11

    ok, solved, its in the manual.

    #50099

    Stewart
    Participant
    Post count: 156

    Hi,

    What you will need to do is change a few lines of code in your functions.php file.

    Open the functions.php and look for the following on around line 67:

    [php]
    /**
    * Filter the property details array.
    *
    */
    function 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;

    }
    [/php]

    Now you can change it to something like this:

    [php]
    /**
    * Filter the property details array.
    *
    */
    function agentpress_property_details_filter( $details ) {

    $details['col1'] = array(
    __( ‘Price:’, ‘apl’ ) => ‘_listing_price’,
    __( ‘Address:’, ‘apl’ ) => ‘_listing_address’,
    __( ‘City:’, ‘apl’ ) => ‘_listing_city’,
    __( ‘County:’, ‘apl’ ) => ‘_listing_state’,
    __( ‘Postcode:’, ‘apl’ ) => ‘_listing_zip’
    );
    $details['col2'] = array(
    __( ‘Ref Number #:’, ‘apl’ ) => ‘_listing_mls’,
    // __( ‘Square Feet:’, ‘apl’ ) => ‘_listing_sqft’,
    __( ‘Bedrooms:’, ‘apl’ ) => ‘_listing_bedrooms’,
    __( ‘Bathrooms:’, ‘apl’ ) => ‘_listing_bathrooms’
    // __( ‘Basement:’, ‘apl’ ) => ‘_listing_basement’
    );

    return $details;

    }
    [/php]

    To change any of the others just change the wording example: [php]__( ‘City:’, ‘apl’ )[/php] to [php]__( ‘Town:’, ‘apl’ )[/php]

    Hope this helps
    Stewart


    WordPress Developer – Need help upgrading to Genesis 2.0?My Blog
    Follow me on Twitter

    #50349

    havsingh
    Participant
    Post count: 11

    Thank you Stewart :-)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘AgentPress – "Property Details" for UK! Please Help’ is closed to new replies.