Support

Account

Home Forums Add-ons Repeater Field Repeater field output format

Solved

Repeater field output format

  • Hello – I’m trying to create a custom XML export for my site using WP Export All (Pro version). I’ve already messaged them to see if they have any insight but I wanted to try here as well.

    When I include a repeater field in the export generator it produces an output in this format:

    a:1:{i:0;a:5:{s:11:”name_prefix”;s:0:””;s:10:”name_first”;s:5:”Sarah”;s:11:”name_middle”;s:9:”Alexander”;s:9:”name_last”;s:0:””;s:11:”name_suffix”;s:0:””;}}

    I need to be able to parse this object for the subfield contents – Any idea how I might go about doing that in a PHP function? I haven’t had any luck with treating it as an array or JSON object. I could use substrings to parse the fields by name but was hoping for something more dynamic so I can loop through it like an array. Any insight would be helpful. Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Repeater field output format’ is closed to new replies.