Im new to WordPress but I’m looking for a way to loop through all the images that have been uploaded to the media library and output the SRC, description...
So, I’m no big fan of how WP stores images (image data) and I was hoping there had been made some improvements in version 4.x. But alas no. When...
I’ve read a couple of things about the wp.media object and have successfully initialised in the state that I can find to upload images. But for the plug-in that...
I have enabled SVG uploads using this code: add_filter('upload_mimes', function($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; }); However, uploads of SVG files that start with the <svg> tag fail...
A plugin created lots of posts that I now need to delete. They are targetable by category (e.g. Tweet). Many also have attached images. I wrote a php script...
Is there a possible way to get the alt text from the media file by just knowing the URL? For example, if the path to my image is /bc/wp-content/uploads/placeholder-image.png...
Until now I have used default WordPress directory structure, however since I started using GIT, I plan to setup WordPress as a submodule and also change the paths of...
I’m trying to get the alt text of our featured image and have it output on the frontend. Currently my code is <img class="vehicle-photo" src="https://wordpress.stackexchange.com/questions/312283/<?php echo the_post_thumbnail_url() ?>" alt="<?php...
When uploading images via the media manager there are a couple of set sizes available such as thumb, medium and large. I do know how to add additional sizes,...
Have been developing a site and noticed that all of the media files were being saved in the default WP year/month/day rule in the wp-content/uploads directory. I decided to...