Change default uploads file using wp Skeleton

I am using WordPress Skeleton (https://github.com/markjaquith/WordPress-Skeleton) which pulls the themes etc out of the wp directory. I am trying to set it up so uploads have a custom url (eg: site.com/custom/url instead of site.com/uploads). var_dump(wp_upload_dir()); Gives me: array ‘path’ > ‘/file/system/path/www/wp/core/assets/2014/08’ ‘url’ > ‘http://site.local:8888/wp/core/assets/2014/08’ ‘subdir’ > ‘/2014/08’ ‘basedir’ > ‘/file/system/path/www/wp/core/assets’ ‘baseurl’ > ‘http://site.local:8888/wp/core/assets’ ‘error’ > … Read more

How to resize image on client-side before upload?

I’ve been using Plupload to resize images on the client side before uploading them to the server. I’ve implemented a front-end form which lets the user select a file from their computer and submit it. My Plupload config looks like this: var uploader = new plupload.Uploader({ browse_button: ‘browse’, url: $url, resize: { width: 100, height: … Read more

Upload a json file in php [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers’ support routes. Closed 5 … Read more

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin media manager. In my specific instance, I’m trying to integrate the Getty Images plugin with a select attachment modal (e.g., Featured Image). Currently, I’ve … Read more

Organizing media uploads

One of my clients wants to transfer his WordPress website to my server. The problem is his website doesn’t use sub-folders in his upload folder, and he has more than 1,000,000 files in the root of his upload folder. Is there a way to organize all his post uploads into folders, without losing the attached … Read more

Add fields to the WordPress media uploader

I am trying to add an URL field to the WordPress media uploader using following code: /** * Add an URL field to gallery attachments * * @param $form_fields array, fields to include in attachment form * @param $post object, attachment record in database * @return $form_fields, modified form fields */ function add_attachment_url_field( $form_fields, $post … Read more