How to link to img src using HTML email template in WordPress

You are trying to link the image to a relative path ../wp-content/. For the link to work in an e-mail, where the path isn’t known to the reader, you must use the complete full path including http:// or https://. Like this: http://yoursite.com/wp-content/uploads/2017/10/logo-full.jpg

WordPress Javascript displaying an image Question

You need to call wp_enqueue_media() else the wp object won’t have a media option. For example, go to WP Admin and pull up the JS console and type wp.media on the dashboard, it won’t work. Try again on the media page, and this time it will work. https://codex.wordpress.org/Javascript_Reference/wp.media To be able to use the JavaScript-API, … Read more

WordPress can’t detect any thumbnails size?

Sounds like a plugin is interfering with the WordPress media features. If possible, try deactivating the media/image plugins and see if anything changes. You can also consider reinstalling the WordPress (wp-admin/update-core.php) It is recommended to back up your site before doing this.

Use wget to find used images

Your asking for command line solution, I don’t have one – but for PHP you can cycle through all posts, build an array of files, compare it to an array of the media library, find unused and delete. Cycle through Posts use get_posts() for pages andor posts, and build your foreach loop Extract Media From … Read more