Sorting By Custom Fields
Sorting By Custom Fields
By Paul
09/10/07 (Edited 03/11/14)
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 article field, this will be in Admin Panel -> Themes -> Manage Templates -> Sort Articles.
If your field is named blah, this would become <option value="blah">blah</option>
By Paul
09/10/07 (Edited 03/11/14)
<option value="fieldname">field description</option>. If it's a article field, this will be in Admin Panel -> Themes -> Manage Templates -> Sort Articles.
If your field is named blah, this would become <option value="blah">blah</option>
Description | Allowing articles/categories/comments to be sorted by custom fiels. |
Rating | |
Views | 573 views. Averaging 0 views per day. |