• Resolved maurodf

    (@maurodf)


    Hi,

    in our web site we have custom wordpress backend page to export some users with all their meta_data.
    We’using the shortcode for let the admin of the site easily download all the users, but some role has array in their info, so how can i download the file with deserialized data using the shortcode?

    Actual output: a:5:{i:0;s:6:”Marche”;i:1;s:6:”Molise”;i:2;s:7:”Sicilia”;i:3;s:7:”Toscana”;i:4;s:19:”Trentino-Alto Adige”;}

    Plugin version: 1.27.14

    Thanks

    • This topic was modified 1 year, 4 months ago by maurodf.
    • This topic was modified 1 year, 4 months ago by maurodf.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Javier Carazo

    (@carazo)

    Yes, but this is how the data is saved. How do you want to show this array in a CSV file?

    Thread Starter maurodf

    (@maurodf)

    Hi and thanks for the quick response.
    Would be awesome to have info deserialized and printed like a comma separated string

    Actual output: a:5:{i:0;s:6:”Marche”;i:1;s:6:”Molise”;i:2;s:7:”Sicilia”;i:3;s:7:”Toscana”;i:4;s:19:”Trentino-Alto Adige”;}

    Prefered Output: Marche, Molise, Sicilia, Toscana, Trentino-Alto Adige

    In the plugin’s settings in the Export section i have this checkbox: Display serialized arrays as comma-separated lists of values.
    This is already ok for me, but how can i achive this in shortcode mode?

    • This reply was modified 1 year, 4 months ago by maurodf.
    Plugin Author Javier Carazo

    (@carazo)

    This is not so easy. I will need to include some setting to do it and also not all seriealizad arrays are so simple. Most of them are complex objects and or indexed arrays… I will include as a todo but it won’t be ready soon, sorry.

    Thread Starter maurodf

    (@maurodf)

    Okay, I thought that since there are already settings in the Export Panel for do this, there was already a solution to include this setting in the shortcode version.

    Thanks so much for your support in the meantime

    Plugin Author Javier Carazo

    (@carazo)

    Ah I didn’t remember it, sorry. So it would be easier yes. And faster.

    Plugin Author Javier Carazo

    (@carazo)

    Yes it is done. You have it in the frontend tab where we explain the different options:

    [export-users display_arrays_as_comma_separated_list_of_values=”yes”]

    Did you read it?

    Thread Starter maurodf

    (@maurodf)

    Hi and thanks for the followup
    No i didn’t see there, i’ll try, thanks.

    • This reply was modified 1 year, 3 months ago by maurodf.
    Plugin Author Javier Carazo

    (@carazo)

    Check and if it does not work, let me know.

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

The topic ‘Export with Shortcode but with data Serialized’ is closed to new replies.