WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Simple Real Estate Pack

Package of real estate tools and widgets designed specifically for real estate industry blogs and sites.

Install like any other basic plugin:

  1. Unzip and copy the simple-real-estate-pack folder to your /wp-content/plugins/ directory

  2. Activate the Simple Real Estate Pack on your plugins page.

  3. Go to the Real Estate Pack Settings Page and adjust options to fit your needs.

  4. A lot of the functionality of the plugin depends on third party APIs. To take advantage of all the features it's highly recommended that you obtain (free) API keys for each service.

Using Neighborhood Profiles in Templates

Note: This requires good understanding of HTML markup and experience in editing WordPress templates.

Extending GRE listings with SRP Neighborhood Profiles

Simple Real Estate Pack can output information like map, schools, local businesses and market statistics within certain radius of the location of the property listing, presented by GRE plugin.

GRE supports 2 ways of presenting listings: 1. Via default auto-generated templates of listings summary and individual listings pages. 2. Via custom templates that have be located inside your theme’s folder.

First Method doesn’t require any HTML or PHP skills, but some knowledge of CSS may be needed. 1. After GRE and SRP are installed, assure that Permalinks for your website are activated. You can do that via Settings -> Permalinks. This step is required by the GRE plugin. 2. Go into GRE Settings. Make sure that the Main Listings Page is selected (if you don’t have one, create a blank one and then select it in the settings). 3. Listing Summary and Individual Listings Pages must be checked. Leave the rest of the checkboxes unchecked. 4. Make sure that comments and trackbacks are deactivated on your Main Listings Page and all individual listings as well. 5. That’s it – SRP information should appear below each listing on the individual listing pages. Follow the GRE instructions on how to create and manage listings.

Even though GRE and SRP plugins come with some pre-defined styles, which can be activated via their respective settings pages, remember that only one style should be used, otherwise they will conflict. Some themes may conflict with the default styles as well, so you may need to make adjustmetns in your own theme's style.css file.

Second Method: via custom listings templates. In short - you MUST know what you’re doing. If you don’t know what “loop” means in WordPress, and how to create page templates – this section will not teach you how to do it, so you better find someone who can do it for you.

Create a new page template. This is how I do it:

1. Create a copy of your page.php template and name it listingpage.php. It has to be in your theme's folder where other templates are (page.php, post.php etc.).

2. Open the file to edit, and place the following code at the top of the file:

<?php
/*
Template Name: SRP Listing Page
*/
?>

3. Place the following code inside the loop of the page template. You might also want to delete everything else from the loop, otherwise you'll endup with some duplicate content on the same page.

<?php
if(SRP_DIR)
    include (SRP_DIR . '/templates/listing_page.php');
?>

4. Now, you should be able to use SRP Listing Page template from the drop-down selection list when editing your listings.

Using SRP Neighborhood Profiles in Other Custom Templates

Assuming that a number of values that refer to property location will be passes to your custom template, you need to define the following global variable as an associative array with preset keys followed by the srp_profile() function:

<?php
$srp_property_values = array(
    'lat' => '',
    'lng' => '',
    'address' => '',
    'city' => '',
    'state' => '',
    'zip_code' => '',
    'listing_price' => '',
    'bedrooms'  => '', //optional
    'bathrooms' => '', //optional
    'html' => '', //optional
);
if(function_exists('srp_profile')){
    srp_profile();
}
?>

All parameters are required except the noted ones. The variable's name ($srp_property_values) required to be exact.

Using SRP API

Simple Real Estate Pack's API allows developers to add their own widgets to the Neighborhood Profile output. Those widgets will play by the same rules as the built-in ones - they can load statically into the page or via AJAX, can be presented via tabs and their tab names and subtitles can be customized via plugin settings page by the end-user.

This implementation consists of 3 simple steps:

1. The actual function that returns your widget's content. You can use global $srp_property_values variable to get access to the initial property/location parameters if needed.

<?php
function my_custom_srp_widget_content() {
    global $srp_property_values;

    ..do something to generate content..

    return $content;
}
?>

2. The function that initializes your widget and adds all the necessary information about it to the $srp_widgets object:

<?php
function my_custom_srp_widget_content_init($init) {
    $array = array(
            'name' => 'widget_name', //lower case and no special characters
            'title'  => 'My Custom Widget Title', //will used as subtitle within content
            'tab_name' => 'Widget Tab Name', //short 1-2 word tab name
            'callback_function' => 'my_custom_srp_widget_content', //callback widget content function
            'init_function' => __FUNCTION__, //don't change - this is reference to the current function
            'ajax' => false, //bool - false or true grants an option for your widget to be loaded via AJAX.
            'save_to_buffer' => false, //bool - change to true if your widget's content needs to be cached before the output. For example your widget content function doesn't return the data, but instead outputs it directly. If you change to TRUE, it will cache the output and return in correctly.
            );
    $init[] = $array;
    return $init;
}
?>

Note: all parameters of the $array are required. Make sure your _init function references the $init argument and always returns $init.

3. The last step is to add a filter that will add your new widget init to the object preparation process:

<?php
add_filter('srp_prepare_widgets_object', 'my_custom_srp_widget_content_init');
?>

Note: if you want to change an order in which widgets load, simply add 3rd numerical parameter to the filter. Keep in mind that Google Map is set to load first (and should stay that way), due to some unsolved issue.

Requires: 3.0 or higher
Compatible up to: 3.9.1
Last Updated: 2014-5-25
Downloads: 60,773

Ratings

3 stars
3.2 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
1 person says it's broken.

100,1,1 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
67,3,2
100,1,1 100,1,1
100,2,2
100,4,4 25,4,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1 100,2,2 100,1,1
100,2,2
100,1,1
0,1,0
0,1,0
0,1,0
0,2,0 0,1,0