• Resolved Anonymous User 7842110

    (@anonymized-7842110)


    I’m using the listings shortcode to output a full list of properties.

    [listings taxonomy="status" term="active" columns="3"]

    All of the properties have the ‘Active’ status, but they all have other status’ such as ‘For Sale’ and ‘For Rent’.

    What I’d like to do is have the ‘For Sale’ & ‘For Rent’ overlay labels (in the top right corner of the listing images) show instead of ‘Active’.

    Is there any way to reorder these so ‘Active’ is at the bottom of the list?

    Hope this makes sense :\

    https://www.ads-software.com/plugins/wp-listings/

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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?

    https://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!

    Awesome! Thanks Jimmy!

    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',
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Reorder Listing Status Labels’ is closed to new replies.