Articles of uploads

What's the best way to add taxonomy's image in 2017?

Need to build image upload for custom taxonomies. I used Categories Images plugin before, but now I need 2 images and this plugin doesn’t fit anymore. I’m looking for a best solution. Does anybody knows it in 2017?

Get featured image with custom size outside WordPress

I have a WordPress blog which is hosted as a sub directory of a web application. The WordPress installation is untouched and modifications are done at the theme level. The web application home page needs to display the recent blog posts. So I have the following code for displaying the recent posts: $array = array(); […]

upload_max_size doesn't change

I need to increase the max size for media. I’ve change my php.ini. I’ve change my .htaccess I’ve change my functions.php And it’s not working. I’ve directly change (for try & test) the wp-include/media.php file like this : function wp_max_upload_size() { @ini_set( ‘upload_max_size’ , ’64M’ ); @ini_set( ‘post_max_size’, ’64M’); $u_bytes = wp_convert_hr_to_bytes( ini_get( ‘upload_max_filesize’ ) […]

Resize uploaded original images to a minimum automatically

Facebook recommends to use for sharing images with a minimum size of 600 x 315 pixels and an 1.91:1 aspect ratio. Is there a way to automatically resize down original images uploaded to WordPress to a size as close as possible to the recommended? I tried some plugins for resizing, but if images will not […]

Send an e-mail notification to custom user role when a file is uploaded to uploads folder

I have written a custom php that allows a user from my templated page from the front end to upload files in a newly created subfolder which takes user_login as its name within the uploads folder. So the root folder is uploads and inside the user’s subfolder are stored all the files. This is my […]

admin notice on Insert Media popup screen

I want an admin notice box on all media upload pages. I did that for media library page by code add_action( ‘load-upload.php’, array( $this, ‘media_library_message_load’ ) ); public function media_library_message_load(){ add_action( ‘admin_notices’, array( $this, ‘media_library_message_display’ ) ); } public function wpb_media_library_message_display() { echo ‘<div class=”notice update-nag”> <strong>Note: my message </strong> </div>’; } But i want […]

More Fields & Media Upload

I’m using the more types, more fields and more taxonomies plugins and they’re beyond excellent. However, I’ve found that once I remove the main wysiwyg block I no longer have access to the media upload buttons. I’ve searched extensively for an option that would give me a new upload field or different buttons but have […]

How to allow .bin files upload?

How can I allow .bin files upload in media library? I have found couple codes online but none of them actually work.

Using Windows Server 2012 How to Move Uploads Folder to another hard drive

Using WordPress as an intranet. The WordPress installation is on C however this drive is limited and wanting to use another hard drive on the server (Hard Drive E) for my uploads folder. Am I able to change the UPLOADS dir via the config or will ABSPATH be an issue and need another work around? […]

Multisite adjust uploads like (/upload/%alphanumeric_id%/%file_type%/%blog_ID%)

Background: I’m trying to use the WordPress multisite feature as a multi-lang site were each blog is a different language. I have code which automatically generates a translation for my content at the other blogs. The articles are related by an alphanumeric ID to identify the translation in the db. This code generates the alphanumeric […]