How to Sort a list of data
-
Hi,
I am new to WordPress and need some help. I have modified a real estate theme and would like to be able to sort a list of available properties by Name, Location, Units, and Price. Please visit http://www.mbahotels.com/search.php as a sample reference of what I am trying to do. In this sample the sort function is for fields Price, Location, Rooms, Agents. I need your help to come up with a solution.
Thanks in advance for all your support.
-
Hi dynamiksale,
I think this plugin might be what you’re looking for:
http://wordpress.org/extend/plugins/fs-real-estate-plugin/
If not, try a search of the WordPress plugins for “real estate” (without the quotes):
http://wordpress.org/extend/plugins/search.php?q=real+estate+listing&sort=
Hope this helps!
Thank you ChristiNi
I tried the plugin and several others but none of them provide the sort functionality that I need. The theme has a page setup which places all of the listings on a page with the following Headers: Image Preview, Property Name, Location, Units, Price. When a listing is added (a post) it shows at the top of the listings but there is no sort functionality which will allow to for example sort by price least to highest.
Hello again dynamiksale,
Are those “headers” separate fields when you enter the information in? They should be separate fields in order to sort. What theme are you using and can you provide an example of your site?
Here’s one more I found during my research:
http://wordpress.org/extend/plugins/wp-property/
It looks like a combination of plugins may be the solution for some real estate professionals. These articles are a couple of years old, but may at least point you in the right direction:
http://www.webdesignlessons.com/realtors-and-real-estate-agents-definitive-guide-to-wordpress/
Hope this helps!
Hi ChristiNi,
The Web address is http://www.americanhotelexchange.com/index.php?s=viewmore . I am trying to sort by titles Hotel Brand, Location, Unit, Price
Thanks You
Hi hynamiksale,
Looks like you would need to make some alterations to that theme in order to add that functionality. I’m not a PHP expert myself, someone else may know how to add something to the functions file that would allow that, but I do have another suggestion. What about adding a plugin like WP-Table Reloaded so you could easily create a table that can then be sorted by column name:
http://wordpress.org/extend/plugins/wp-table-reloaded/
Hope this helps!
Thank you ChristiNi for all your help. I have tried wp-table-reloaded plugin but it did not work like we needed. Once again thanks for all your input.
You’re welcome dynamiksale! I’m sorry I couldn’t suggest a workable plugin for your needs. You may want to keep searching the Plugins here on the WordPress site or do some searches via your preferred search engine to find a viable solution.
Good luck with your site!
- The topic ‘How to Sort a list of data’ is closed to new replies.