Skip to content

Clonable fields reordering on save #125

@akv2

Description

@akv2

The 0.5 release states:

NOTE: currently multiplied fields will display out of order after saving, however this should not affect anything else other than the admin, should be fixed soon

However, each save action actually actually saves these items in the wrong order. When they are echoed out on the front end they continually flip orders with each concurrent save of the page. It seems that reversing the array before writing it to the admin screen fixes this issue to always save it in the same order. In custom_metadata.php, on line 1193 I added the following as a temporary quick fix:

// reverse array
if ( count($value) > 1 ) :
    $value = array_reverse( $value );
endif;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions