How to upload very large JPGs to Media Library for WooCommerce digital download prints
How to upload very large JPGs to Media Library for WooCommerce digital download prints
How to upload very large JPGs to Media Library for WooCommerce digital download prints
As per outlined in the comments, by fixing a typo in my save function, and setting the third parameter in get_post_meta() to true, and false in selected() it worked liked a charm. Thanks everyone! Here’s the working code in case anyone is trying to add a select list custom field to their media manager: /* … Read more
Sorry this isn’t a full answer, but yes this probably is possible but you need to run a database query or some code to find the images, and then do something with that list such as copy the files to a new directory. There’s info here on how featured images are stored. Here’s a quick … Read more
Yes, a post is “attached” to its parent post. It’s the same as when a page has a parent page, there is no difference internally. Keep in mind though, that not all images on a post are attached to that post, and an image can appear in posts it’s not attached to. If you’re in … Read more
The WP database for media items stores the full URL of the media file. If the media file was uploaded while the site was non-SSL, then a non-SSL URL is stored in the database. When you upgrade to SSL, new media has the SSL address. So you need a way to go through the database … Read more
By default, in the Media Upload Modal Box you can only filter by Date (Month uploaded) and/or Search. To fully take advantage of the search function you should have proper filenames, alt text and description of every image when you upload them. For pagination you can go to your Media Gallery and turn on List … Read more
Insert HTML markup to page content from the Media Frame modal
I fix this problems with wordpress file upload method: php file: add_action( ‘wp_ajax_file_upload’, ‘file_upload_callbacks’ ); add_action( ‘wp_ajax_nopriv_file_upload’, ‘file_upload_callbacks’ ); function file_upload_callbacks() { $arr_img_ext = array(‘application/pdf’); if (in_array($_FILES[‘file’][‘type’], $arr_img_ext)) { $upload = wp_upload_bits($_FILES[“file”][“name”], null, file_get_contents($_FILES[“file”][“tmp_name”])); //$upload[‘url’] will gives you uploaded file path //var_dump($upload[‘url’]); wp_send_json( $upload[‘url’] ); } wp_die(); }
I was able to update the mime types via MySQL — here’s the update query I used: UPDATE `wp_posts` SET `post_mime_type` = ‘audio/mpeg’ WHERE `post_name` LIKE ‘%mp3%’ AND `post_mime_type` != ‘audio/mpeg’ Setting this also made the correct metadata for the files appear, and the offload plugin worked as expected. HURRAY
Use ShortPixel to optimize photos, or a CDN to server them in a faster way. For low-cost solution offload media files to S3 via a plugin.