acf-extended / ACF-Extended

🚀 All-in-one enhancement suite that improves WordPress & Advanced Custom Fields
https://www.acf-extended.com
238 stars 27 forks source link

Add settings to sort layouts of flexible content alphabetically #96

Open sh-sabbir opened 2 years ago

sh-sabbir commented 2 years ago

This PR adds an additional option in Flxible Content -> Selection Modal to allow users to sort the layouts alphabetically. In order to achieve this and make the settings good-looking, minor CSS adjustment is also made. https://prnt.sc/22a9xgg

mcaskill commented 1 year ago

A while back we implemented a similar flexible content layout sorting mechanism. In our case, layouts can be assigned a position value to ensure layouts before/after others. We mostly used it to ensure certain layouts always appeared first or last.

https://github.com/locomotivemtl/wp-lib-cms/blob/7601919/includes/Modules/ACF/FieldTypes.php#L271-L329