Thread Starter
Anonymous User 7842110
(@anonymized-7842110)
Sorry, here’s a link so you can see what I mean …
Hi Jimmy,
I saw your website and it looks great! I have a question. How did you set the search dropdowns (Ex. BATHROOMS) to NOT re-order by popularity?
http://screencast.com/t/JA7lp3RYL
Right now, when 500k was always searched the dropdown is being re-ordered and is now at the top.
FYI, Your property search have two(2) BATHROOMS dropdown.
Thread Starter
Anonymous User 7842110
(@anonymized-7842110)
I ended up using Ultimate WP Query Search Filter.
This plugin let me filter the results and order the parameters etc.
Check it out, it proved very handy.
Thread Starter
Anonymous User 7842110
(@anonymized-7842110)
P.s. Thanks for the heads up about the 2 dropdowns!
Hi Jimmy,
Quick question, I noticed you changed ‘Sq ft’ to ‘Square Feet’ on the WP Listings Widget.
How did you go about changing this?
I found the code in class-featured-listings-widget.php
if ( '' != get_post_meta( $post->ID, '_listing_bedrooms', true ) || '' != get_post_meta( $post->ID, '_listing_bathrooms', true ) || '' != get_post_meta( $post->ID, '_listing_sqft', true )) {
$loop .= sprintf( '<ul class="listing-beds-baths-sqft"><li class="beds">%s<span>Beds</span></li> <li class="baths">%s<span>Baths</span></li> <li class="sqft">%s<span>Sq ft</span></li></ul>', get_post_meta( $post->ID, '_listing_bedrooms', true ), get_post_meta( $post->ID, '_listing_bathrooms', true ), get_post_meta( $post->ID, '_listing_sqft', true ) );
}
Did you use a filter?
Many Thanks,
Tom
Thread Starter
Anonymous User 7842110
(@anonymized-7842110)
Hi Tom,
To be perfectly honest I don’t recall and I no longer have access to the files for that site.
However, I’m pretty sure I would have used a filter, yes. This might be a good place to start.
This line in particular:
__( 'Square Feet:', 'wp_listings' ) => '_listing_sqft',