Sorting By Custom Fields
Sorting By Custom Fields
By Paul
Sep 10, 2007 (Edited Mar 11, 2014)
If you want to add an option to sort by a custom field as well as the regular ones, just add the option to the selector in the template before the </select>:
<option value="fieldname">field description</option>. If it's a listing field, this will be in Admin Panel -> Themes -> Manage Templates -> Sort Listings.
If your field is named blah, this would become <option value="blah">blah</option>
By Paul
Sep 10, 2007 (Edited Mar 11, 2014)
<option value="fieldname">field description</option>. If it's a listing field, this will be in Admin Panel -> Themes -> Manage Templates -> Sort Listings.
If your field is named blah, this would become <option value="blah">blah</option>
Description | Allowing listings/categories/comments to be sorted by custom fiels. |
Rating | |
Views | 581 views. Averaging 0 views per day. |
Similar Listings |