Extending wp.media.model, query media from different blog on network and refresh view
Extending wp.media.model, query media from different blog on network and refresh view
Extending wp.media.model, query media from different blog on network and refresh view
The add_attachment action is called after the attachment has been named. If you only want to change the name of the attachment (and the slug), you don’t need to change the name of the file and can just replace the code inside rename_attachment with a call to wp_update_post. add_action(‘add_attachment’, ‘rename_attacment’); function rename_attacment($post_ID){ $new_attachment_name = array( … Read more
It doesn’t look like you can do this with the gallery shortcode, unfortunately. The Codex doesn’t even list meta_value_num as an option (though that doesn’t mean it couldn’t work.) However, you’re correct, you must specify a meta-key to use that ordering scheme with WP_Query.
Upload video in custom folder
Importing 10 Years of Media into the WP Database
I know it’s a bit late, but I’m having the same problem and looking for a solution. This other question seems to describe the same problem, and the solution is that maybe the needed image libraries (GD or ImageMagick) are not included by the server configuration. That was the case for me. I hope this … Read more
attachment_fields_to_edit is still there in 3.6. It is in /wp-admin/includes/media.php in a couple of places. Perhaps usage has changed, or something has changed that has broken your code but without that code it is impossible to tell.
I am from rtMedia Team, please try to fix your Permalink to http://example.com/%postname%/ hope it will solve your problem
Custom media uploader not showing library
Export xml use/import images from theme directory