Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
http://realestateoftetonvalley.com/listings/driggs-idaho/

Is there any way to sort these listings that are SOLD at the bottom of the list but also keeping the newest unsold listings at the top?

thank you,
Heather
Hi Heather,

Can you let us know how you have defined the 'status' field?
<cms:template title='Listings' clonable='1' dynamic_folders='1' >
<cms:editable name='listing_status' label='Status' type='dropdown' opt_values='For Sale | Pending | Sold'order='1' />
Thanks.

I think if you add the following 'orderby' and 'order' clauses to the cms:pages block doing the listing, you should get the 'For Sale' listed first (with the newer posts on top)
<cms:pages orderby='listing_status, publish_date' order='asc, desc'>
..

Hope this helps.
This did the trick perfectly. Thanks a bunch.
You are welcome, Heather :)
6 posts Page 1 of 1