• Resolved webbrewers

    (@webbrewers)


    CCTM Version 0.9.7.6
    I know this has come up a few times but the descriptions are a bit too vague for me to know if they cover what I’m looking for.
    I’m trying to sort the options for a custom field. Let’s say it’s “socks” and I have 300 options. I’d like to sort all the options by title so they are easier to select when creating a post.
    So specifically:
    Click custom content types»custom fields»socks
    Under options, is it possible to change sort order say by option title?
    blue, green, red etc
    I tried advanced»sort order but that didn’t change order of options, nor do I think it’s supposed to.

    http://wordpress.org/extend/plugins/custom-content-type-manager/

Viewing 1 replies (of 1 total)
  • Plugin Contributor fireproofsocks

    (@fireproofsocks)

    No, that’s currently not possible. If you have a large list of options like that, I would recommend you put the options into a MySQL database table and use the option to populate the options from a MySQL query — that way you can leverage MySQL’s flexible sorting options — you could even specify a separate column for ordering (similar to the posts column menu_order). The default dropdown fields are best suited for small or medium sized lists of options in arbitrary order.

    The sort order you mentioned is for sorting the list of posts, not options.

Viewing 1 replies (of 1 total)
  • The topic ‘Sorting custom field options on back end’ is closed to new replies.