Create media library feed

Although your question appears to be about an xml feed for library images, the process to display those images on a page requires use of a template with a special query to look for ‘attachment’ type pages, which is how images are stored in the database. That’s a bit more complicated, but I did something … Read more

WordPress Media Library

Hi unless you’ve backed up your files there’s no other way to retrieve images except for asking your webhost to see if they have a backup. My host does, and keeps it for 30 days before deleting the backup, so that’s what I’d try first. In future, make sure you back up your sites regularly.

Use the “Media Library” in Frontend

Add below code to your current theme’s function.php function add_media_upload_scripts() { if ( is_admin() ) { return; } wp_enqueue_media(); } add_action(‘wp_enqueue_scripts’, ‘add_media_upload_scripts’); Further, you can explore more in detail by follow this blog (i.e. https://codestag.com/how-to-use-wordpress-3-5-media-uploader-in-theme-options/)

Remove (Unattached) Attach from “Uploaded to” in Media Library

It seems there is no other way than de-registering the column and building your own. The code of the custom column is adapted from class-wp-media-list-table.php. add_filter( ‘manage_upload_columns’, ‘columns_manage_wpse_85405’ ); add_action( ‘manage_media_custom_column’, ‘columns_display_wpse_85405’, 10, 2 ); function columns_manage_wpse_85405( $columns ) { unset( $columns[‘parent’] ); $columns[‘attached’] = ‘Parent’; return $columns; } function columns_display_wpse_85405( $column_name, $post_id ) { … Read more

Media Manager 3.5 custom options

I got the solution. I used the following script: WordPress Media Manager 3.5 – default link to and altered it to my needs with this modification: (function() { var _AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay; wp.media.view.Settings.AttachmentDisplay = _AttachmentDisplay.extend({ render: function() { _AttachmentDisplay.prototype.render.apply(this, arguments); this.$el.find(‘select.link-to’).val(‘none’); this.model.set(‘link’, ‘none’); this.updateLinkTo(); this.$el.find(‘select.link-to’).parent(‘label’).hide(); this.$el.find(‘select.size option[value=full]’).hide(); this.model.set(‘size’, ‘medium’); this.updateLinkTo(); } }); })();