I am working on a project, where I want to display all image attachments of a post. Getting the URL and size of the images is not a problem, since both get stored in the database, if the image gets edited in the media-uploader.
The problem is, that I need the alignment options as well. Sadly the alignment settings do not get stored anywhere in the database. It is only used temporary if I add the image to the post.
I need a way to store the alignment-settings in the database, if they get edited. I know I can add a custom field to the media uploader, but since there already is an Align-Field I would like to avoid duplicating it.
I do not really know where to start, as I am not very experienced in hooks and filters, or the media-uploader. Maybe there is a way to store and retrieve the setting in the attachment post meta?!