Hot answers tagged

3

I'm copying a previous answer here as I think it will help. What this will do is whenever the media library pops up, instead of showing all media for a given post it will filter down to only images attached to the post. You could paste this right into your functions file: /** * Media Module - Only Show Images Uploaded To this Post */ function ...


1

You need to create attachment.php in your child theme. Please check here for more details.


1

is there a way to update all media urls in wordpress I had a similar issue with my media files not having the correct file location after a Wordpress upgrade (somehow all the media links switched to a crazy incorrect directory), so I found Upload URL and Path Enabler which was able to rewrite all media URLs to a different path location where all my ...


1

Your first function get_images_from_media_library() only returns images guid, I'd suggest to extend it by returning all image datas : function get_images_from_media_library() { $args = array( 'post_type' => 'attachment', 'post_mime_type' =>'image', 'post_status' => 'inherit', 'posts_per_page' => 6, ...


1

Thanks to @Tim Malone, @Kane Uploads are handled in the wp-admin directory, so try placing it in there. I've had success with placing php.ini files in there on shared hosts. – Tim Malone 1 hour ago Just place .user.ini to /wp-admin to overwrite the setting.



Only top voted, non community-wiki answers of a minimum length are eligible