Building pre-filtered IDX searches using Link Structure

You’re pretty proud of your WordPress real estate site. You’re regularly blogging and posting new articles, and you’re using the dsIDXPress plugin to place IDX search in the sidebar of your pages. It’s a great combination: interesting site content along with search functions that allow your visitors to browse the MLS and view IDX listings.

Search Results By Design

But, how much better might it be if you could provide links in your navigation, posts, pages and sidebars to take your site visitors to pre-selected listings – filters you’ve set up to return specific groups of properties? You can direct visitors straight to properties related to the page content, promote specific listings and otherwise do the searching for them. Your visitors don’t have to figure out the property searches, as you do them in advance and provide direct links to the results. Like what kind of searches…?

just your listings

listings for your office

listings in specific price ranges

listings grouped by number of bedrooms and/or baths

listings by zip code, neighborhood or area

specific MLS numbers

listings for a specific property type, like commercial

more…more

You can do all of this because you have the dsIDXPress plugin installed at your WordPress site. Before all of you HTML-phobic people run for the hills, it’s really as simple as building a single URL constructed to select the listings you want and display them when the page loads. It’s not going to stress you out, as we’re going to take you through it step-by-step right here.

[The “link structure” features we’re about to delve into are pretty advanced. These instructions are primarily for advanced users looking to create several, fine-tuned search filters with SEO impact using the dsIDXpress IDX plugin. If you’re less-experienced or just looking to create a few basic filters, our user-friendly dsSearchAgent Link Builder tool is a better bet.]

The Simple Piece-by-Piece Approach to Search Results Display Pages

For the tech-challenged of you, the URL is that Web address displayed at the top of your browser, as highlighted in the image. Depending on the browser you’re using, you may or may not see the http:// part of the URL displayed in your address bar, but it’s important to remember that the http:// is always the first part of any URL.

Some URLs can look quite intimidating, with long strings of hundreds of words and characters, but in our instructions below, we’ll show you how to create URLs (even long ones!) that will load IDX data on your site with just about any combination of search filters you can imagine. It may seem daunting to create a long URL from scratch, but it’s not too difficult once you see how they come together…

The common base beginning: every URL we’re going to build here will begin with the same set of text, and here it is:

That last character you see (this one: “/”) is called a “forward slash”. As you read on, you’ll learn how to add different stuff after that last “/” character slash mark to define filters and create our custom IDX search results pages. Let’s get started.

Location type links:

These are to display a search results page for a city, area, or zip code. Here are some examples:

http://yoursitename.com/idx/city/sacramento/ …or

http://yoursitename.com/idx/city/los-angeles/ …or

http://yoursitename.com/idx/area/the-village/ …or

http://yoursitename.com/zip/90210/

Notice one thing here. We’re using the city and area names specific to your MLS, and if the name is more than one word, as in Los Angeles, we use a “dash” to separate the words. It doesn’t matter about capital letters, and it’s easy to just stay with lower case. Just by using one of these simple URLs you create and post as a link anywhere on your site, including in your page navigation at the top or on the side, you will get a custom search results page. As an example for a working site, we created this link:

http://galleryrealtyoftaos.com/idx/city/taos/

As this site covers an entire county, but the main attraction is the town of Taos, this is a great search to pre-design for site visitors. Here’s a partial screen shot of the results page:

Notice that it is titled as Real Estate in the city of …, as will your search results page. Had we done it with the zip code for Taos, 87571, we would have a page titled “Real estate in the 87571 zip code.” Now you have the knowledge to create some area-specific search results pages for your site that will give your visitors the searches they want with one simple click of the mouse.

Just to show you one way to use these links, you can go into your Appearance > Menus section of your WordPress dashboard and create custom links for your navigation menus, something like shown here in this shot of drop-down navigation for our example site:

See the dropdown from the Search Taos County Listings in navigation, and two area-specific search results pages are highlighted. These were created in the Menus area as custom links.

Property Details Search Links

Other very popular searches are based on property characteristics, such as price, bedrooms, baths, square footage, year built and even searches for recently reduced property prices. We can build these link URLs as well by adding more to our base URL. We’re about to give our database a “query,” or question to get it to show us only properties that meet our query parameters. So, if you remember that we’re asking a question, the next piece of our URL, the question mark “?” will always be needed, as:

http://yoursitename.com/idx/?

After that question mark we’ll be placing our search parameters for property characteristics, and each of those will always be preceded with “idx-q-” and the parameter for our selections. Let’s do examples here so you can see that it’s not difficult once you master the text characters.

Price minimum parameter: idx-q-PriceMin= so, if we only want properties with list prices higher than $200,000: http://yoursitename.com/idx/?idx-a-Pricemin=200000 Of course with this URL, you’re going to display every listing in the MLS with a price of $200,000 or higher, so let’s put a range on this.

Price maximum parameter: idx-q-PriceMax= and we want it to be $300,000, so:

Notice that there’s one new character in our URL, and it’s logical so you can remember it. We’re now asking two questions, PriceMin and PriceMax, so we need to say “AND,” thus the ampersand “&” before the second parameter. And, you’ll be putting that ampersand in front of every additional parameter after the first one in all URLs. Just think of it as saying I want these listings & these listings & these listings….

Bedrooms: Now we come to how to display only homes with a certain number of bedrooms, or maybe a minimum number of bedrooms. Let’s start with a search to display all homes with at least 3 bedrooms.

http://yoursitename.com/idx/?idx-q-BedsMin=3

However, we really don’t want the 10 bedroom mansions, and many of our site visitors want to search for homes with 3 or 4 bedrooms, so:

http://yoursitename.com/idx/?idx-q-BedsMin=3&idx-q-BedsMax=4

What do we do for JUST 3 bedroom homes? Take this URL and change that 4 to a 3, so we’re telling the database to give us minimum 3 bedrooms and maximum 3 bedrooms.

Bathrooms: no example here, as you do the same as bedrooms only using idx-q-BathsMin and idx-q-BathsMax. See, easy! But, what about BOTH beds and baths? Let’s say that we want a search results page for 3 bedroom 2 bath homes:

All we have to do is just continue adding our parameters with “&” between them, and we can do amazing things. We can mix up our parameters, as we just did, even adding in lot size, square footage and other parameters. Let’s look at those.

Lot Size: The database uses square footage for lot sizes, so you’ll need to convert acreage to square footage. There are 43,560 square feet in an acre (remember your license test?), so a half acre is 43,560 / 2 = 21,780, and 2.5 acres is 43,560 x 2.5 = 108,900 square feet. From there it’s a walk in the park, because it works the same as our other parameters, only now using idx-q-LotSqFtMin= and idx-q-LotSqFtMax=

Home Square Footage: Same story only no conversion necessary. For a search of all homes over 2000 square feet:

Things are a little different when it comes to property types and property features, as words aren’t used, rather code numbers identify the types and features. For those with dsAgentSearch, it’s easy to get those numbers by opening your control panel and going to the Dashboard, where you go to the bottom left to see:

The number next to each property type or feature is what you use in your URL instead of words. So, for residential properties with a swimming pool:

If you don’t have dsAgentSearch, you’ll have to get your codes for property type by actually doing a search on your site and getting the number you see at the top of the browser in the URL of the results page.

There are lots more!

Now that you have this stringing together of parameters down pat, and we know you do, we’ll not do examples for these, but here are other parameters you can put into your URLs using the methods above:

A couple of special things happen here. Our q in idx-q changes to a d. Don’t ask why, as our programmers would just make your eyes glaze over. Also we use that list numbering thing from above, <#>, and don’t ask why again, because both will be zeroes. So, if we want to take that search and sort it by price with lowest to highest:

We’ve instructed our database to display these listings by sorting on the Price column and putting the lowest prices first in ASCending order. If we wanted highest prices first, we’d use DESC in place of the ASC. You can also sort based on other parameters like:

idx-q-DateAdded (pulls newer or older listings to the top)

idx-q-ImprovedSqFt

idx-q-LotSqFt

others

Let your imagination run wild, or better yet ask some of your clients the ways in which they did their searches and the searches they did over and over. Then build those search results URLs and link to them in your navigation and in page and post text.

Robert, thanks for these clear instructions! it is REALLy appreciated. I’m afraid I just don’t have the time or patience to watch videos. With the written instructions, I can quickly scan for the info I need.

dsIDXpress pages are better for SEO purposes since they can be indexed by search engines, while SearchAgent pages cannot.

Either way, I would encourage you to add additional supporting content to any page where you are displaying listings (or at least on any pages that are linking out to several listing results pages.) Even something short and simple like:

IRVINE REAL ESTATE

Irvine home and condos are perfect for families and first time home buyers. Known for it’s master-planned layout of communities with homes clustered around parks, schools, and shopping centers, real estate in Irvine is thriving. With a mix of both new construction and beautiful older homes, home prices in Irvine range from $200 to $350 for detached condos in communities like Woodbridge to $500k to $800k for detached single family homes in newer subdivisions like West Egg. Select a link below to see Irvine homes in your price range.

Irvine homes in the Woodbury community
Woodbury is an older community in Irvine that is known for these and that type of homes.
Woodbury homes $300k to $400k (link)
Woodbury homes $400k to $600k (link)
Woodbury homes $600k to $800k (link)
Woodbury homes over $800k (link)

Irvine homes in the Woodbridge community
Woodbridge a newer community in Irvine that is central to this and that and known for this type of home.
Woodbridge homes $300k to $400k (link)
Woodbridge homes $400k to $600k (link)
etc…

Put all that content on a page titled “Irvine Real Estate” or similar with links to dsIDXpress results pages (or framed SearchAgent links) grouped by price, area, or similar with headings or small blocks of text for each cluster of links.