Forum Replies Created
-
AuthorPosts
-
riseoflex88
ParticipantOk, i think I've found the issue. It wasn't the data migration that was the problem. That just made me notice it.
It was the Columns inside the fields. I'd perhaps tried too much at once.
When I commented out the 'columns' key for each field it worked as expected.$meta_boxes[] = array( 'title' => 'Pedigree', 'pages' => array( 'drivers' ), 'context' => 'normal', 'priority' => 'low', 'fields' => array( array( 'id' => 'pedigree_group', 'type' => 'group', 'name' => 'Group', 'clone' => true, 'fields' => array( array( 'name' => 'Year', 'id' => 'year', 'type' => 'text', 'columns' => 2, ), array( 'name' => 'Title', 'id' => 'title', 'type' => 'text', 'columns' => 10, ), array( 'name' => 'Wins', 'id' => 'wins', 'type' => 'text', 'columns' => 4, ), array( 'name' => 'Podiums', 'id' => 'podiums', 'type' => 'text', 'columns' => 4, ), array( 'name' => 'Poles', 'id' => 'poles', 'type' => 'text', 'columns' => 4, ), array( 'name' => 'Description', 'id' => 'description', 'type' => 'textarea', 'columns' => 8, ), ), ), ) );So sorted for now but columns inside a group would be really useful for making this really slick.
Great job either way though!
Thanks
riseoflex88
ParticipantSorry, no, it's not solved yet. You asked how I converted existing data to the new group of fields.
Between this and my initial post I've explained how I've done this however it doesn't work as it ends up nesting the data inside itself as explained above.
riseoflex88
ParticipantI essentially wrote it out again from scratch.
Plucked out the data I wanted from the previous fields. Remapped it onto a new array and saved that with the same key.
As far as I can tell everything was in the right format.
riseoflex88
ParticipantIt's not possible, it's mentioned in the docs.
However, I'd really, really love it if this could be added! Or at least just a single image within the group
-
AuthorPosts