Hello,
I am using this plugin for 3 years.
Moreover, recently I have upgraded my WordPress to 5.3.2 and running on Nginx Web server as well as PHP 7.3.
Kindly, can someone test it if it works and update it?
Thank you!
]]>Any chance there’s a way to do a “batch” update to have all upload dates update to the image’s creation date?
]]>I tried your plugin and it works also in Version 4.4.2.
But one thing is missing. The attachment-permalink itself isn’t change.
So if you upload an attachment and change it’s upload date it has no affect to the attachment permalink. It remains on the year and month the upload is made when date based file structure is activated.
But I expected that the attachment then should move in the folder of the specified date.
E.g. You upload an attachment xyz.png today then the permalink is yourhost/yourfolder/2016/02/xyz.png.
If you change the date to 2016-01-01 00:00:00 then the attachment has to move into 2015/01 and therfore the permalink has to be changed to
yourhost/yourfolder/2015/01/xyz.png.
Maybe you can add this behaviour in your next version.
Kind regards
Alexander
]]>Hi. I know this has not been updated in 1 year now, but maybe someone still monitors this and can help.
It seems the plugin is not working with WP 4.4.1. The “Date and Time” field that used to show is completely gone. I need to find a way to re-enable this functionality.
Please advise + thanks in advance.
]]>I have one question. Can I remove the plugin after I did all the changes?
]]>I was scouring high and low to find a plugin that would allow me to use the built-in WordPress attachment pages to create a simple gallery. I could not find a way to have the order things sort on the attachment pages (i.e. for previous_image_link and next_image_link) match they way the gallery sorts them. I came across this plugin and tried using it for that, but realized that attachments are not sorted by post_date, but rather by menu_order, which is a field that is uneditable by default.
I added that functionality by mimicing your code:
if(!function_exists('mam_attachment_menu_order_edit')){
function mam_attachment_menu_order_edit($form_fields, $post) {
$form_fields['post_menu_order']['label'] = __('Menu Order', 'mod-att-meta');
$form_fields['post_menu_order']['value'] = $post->menu_order;
$form_fields['post_menu_order']['helps'] = __('Modify the original menu order', 'mod-att-meta');
return $form_fields;
}
add_filter( 'attachment_fields_to_edit', 'mam_attachment_menu_order_edit', 10, 2);
}
if(!function_exists('mam_attachment_menu_order_save')){
function mam_attachment_menu_order_save($post, $attachment) {
$post['menu_order'] = $attachment['post_menu_order'];
return $post;
}
add_filter( 'attachment_fields_to_save', 'mam_attachment_menu_order_save', 10, 2);
}
]]>