Viewing 1 reply thread
  • Author
    Posts
    • #2551
      jmayhak
      Member

      I added a text field for County which users have been using for a while now. I should have made it a select field. Users are spelling counties wrong… who would have guessed?

      The users usually write the county like Lexington, but there’s no consistency. I want to change what they type to lowercase via strtolower($the_county).

      In the new select field, I added all the county choices lowercase like ‘lexington’.

      So, my question: How can I modify the value of a meta key so that when piklist renders the select field it will use ‘lexington’ instead of ‘Lexington’ so that a match will happen.

      Basically, I don’t want users to have to go back and update all their counties.

    • #2556
      Steve
      Keymaster

      @jmayhak– The best solution would be to fix your data. I suggest you write an update script that loops through all the posts, looks for the meta key and updates the data.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.