• Resolved HawksDev

    (@kc9ryt)


    Hello,

    I have created a bunch of custom dropdown fields and noticed they store the users choice as a number instead of the actual value so when i try to export this meta information i don’t actually know what the end user selected. Is there an option to change how this information is stored or a function that i can take advantage of to change this? I did try and follow this article from about a year ago but it didn’t seem to work. My meta key is cms_type

    https://wordpress.org/support/topic/dropdown-field-value/

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • @kc9ryt

    Which version of UM are you using and which Export plugin?

    The link issue is outdated because of a later fix to UM.

    Thread Starter HawksDev

    (@kc9ryt)

    @missveronicatv

    I am using Version 2.3.0. This is the plugin that i am using. https://wordpress.org/plugins/import-users-from-csv-with-meta/

    All it does is pull the values from the database.

    @kc9ryt

    I have created a bunch of custom dropdown fields and noticed they store the users choice as a number instead of the actual value …

    Multi-select dropdown values are stored as serialized arrays with the real values by UM.
    Single-select dropdowns are stored by value by UM.

    The Export plugin is using the serialized values as a string for multi-select dropdowns.

    Solution would be to ask the Export plugin developer to export these values using a PHP implode after an unserialize of the array.

    Thread Starter HawksDev

    (@kc9ryt)

    @missveronicatv

    Is there no way to change how the data is stored? I know text entries are stored just as text not in an array from what it seems so i am curious if there is a way to either edit the plugin or to use some sort of hook to change how the data is stored?

    @kc9ryt

    Ask the Export plugin developer why they don’t export serialized arrays as imploded strings. Serialized arrays is a very common WP format and not only used by UM.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kc9ryt

    Also, ask if there’s a filter hook to modify the data before exporting the users.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kc9ryt

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help… 🙂

    Regards,

    Thread Starter HawksDev

    (@kc9ryt)

    Disregard

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Dropdown Value’ is closed to new replies.