Hello - I am trying to create an Area snippet for our site:
http://dev149.rewtemplates.com/
It needs to pull all listings in Area 11-Brices Creek Area of New Bern.
Here's my code below. Can you please advise? I'll also need to do this for other areas of New Bern but if you can help with this one first - that would be great.
thanks - Florence
<?php
/* Snippet Settings */
$_REQUEST['snippet_title'] = 'Search Results';
//$_REQUEST['snippet_price_table'] = true;
/* Search City */
$_REQUEST['search_city'][] = 'New Bern';
/* Area */
$_REQUEST['search_area'][] = '11';
/* Property Type */
$_REQUEST['idx'] = 'residential'; // Residential
//$_REQUEST['idx'] = 'land-and-lots'; // Land & Lots
//$_REQUEST['idx'] = 'commercial-sales'; // Commercial Sales
//$_REQUEST['idx'] = 'commercial-lease'; // Commercial Lease
//$_REQUEST['idx'] = 'boat-slips'; // Boat Slips
//$_REQUEST['idx'] = 'rentals'; // Rentals
/* Price Range */
$_REQUEST['minimum_price'] = 0;
$_REQUEST['maximum_price'] = 5000000;
/* Page Limit */
$_REQUEST['page_limit'] = 12;
/** DO NOT EDIT BELOW THIS LINE **/
$_REQUEST['snippet'] = true;
include $_SERVER['DOCUMENT_ROOT'] . '/idx/common.inc.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/idx/inc/php/pages/search.php';
?>

Reply With Quote
