My media items are not stored in YYYY/MM subfolders of uploads. Instead, I had cooked up some scheme to ingest posts, but seem to have declined/neglected to organise them that way. So, I've got a combination of one big uploads folder containing thousands of files, plus some specific subfolders in uploads, like logos, people, icons. That's because not everything is related to a post. But the images that do relate to posts... well, they are disorganised. I think I wish …
I'm using the following JS code to open a wp.media window to allow users to select images and videos for a gallery. Everything is working as expected, but I'm unable to restrict the window to show images and videos only, it's showing everything. Any ideas on what might be wrong? Thanks in advance JS: $( '#add_item' ).on( 'click', function( e ) { var $el = $( this ); e.preventDefault(); // If the media frame already exists, reopen it. if ( …
I uploaded my first wordpress website on the server, but trying to add new media files, i have got the message "Missing a temporary folder", I tried the solutions on the forum: define('WP_TEMP_DIR',dirname(__FILE__).'/wp-content/temp/'); and created a 'temp' folder on 'wp-content', but the problem still happened .. how to fix that please ?? I tried by doing this : creating the folder on localhost with writable property then upload it to the server, but it still doesn't work
Media Library is not loading on grid view and also featured image not select any image from post and page . The progress circle keeps spinning. Due to this issue, I am not able to add any image in the post as insert image option also opens in “grid view” by default. The things I tried but not resolved my issue: Removed all plugins. Switch to twenty sixteen theme. Deleted whole wordpress installation. Installed fresh. Enabled script debug.Doesn’t show any …
I'm working on plugin that optionally manipulates uploaded content (images). I managed to add some additional fields on "Insert media" popup under "Drop files anywhere to upload" text, but I need to send those parameters with file content to async-upload.php when uploading. Pre WP v3.3, I've been using this to achive desired results: jQuery('input:text[name="custom_text"]').keyup(function() { wpUploaderInit.multipart_params.custom_text = jQuery(this).val(); });
Here is the thing. I am using the WP media uploader on the frontend. What I need is to have it behave differently depending on a certain action. I am attaching the media in a specific custom post type single page. This is a small excerpt from my code. I'm using this to trigger the media library. var uploader = wp.media({ title: 'Upload Image', multiple: false }).open() .on('select', function(e){ // Some code here }); Then I am filtering the library …
I need a hook or some way to detect when the window to select the file to upload is opened. I'm talking about the window that opens the browser to select the local files to upload. Context: On occasions, WordPress itself or some plugins directly open a window to select the local file to upload, without going through the WordPress library. I have a plugin that gives a custom path when uploading files and I need to launch a popup …
Could not insert attachment into the database. When ever I try to upload new images from WordPress media it shows me above error. Please help me why wp database shows this error.
I am doing a migration from a wordpress/woocommerce website, I've successfully export/import all the data except one thing : the download attachment file from my woocommerce product I'm using the wp-cli it's working fine for the normal media (all my page and blog article have their media files) but all my woocommerce files are uploaded in wp-content/uploads/year/month folder instead of : /wp-content/uploads/woocommerce_uploads/year/month I've looked in the XML the path is correct Is someone know how wordpress decides in which directory …
Is it possible to disable the default gif compression in Wordpress. I'm uploading animated gifs and they are turning soft. Any advice much appreciated. Attached is a screen grab illustrating the issue. lhs is the gif dragged into browser from the desktop, rhs is the gif as it appears on my website. thanks Nigel
I have an issue in my custom theme. Direct media library upload saving in wrong month date folder (2017/03) when current date is 2018/09. But when I upload images through post it goes to the correct folder. I have tested in default theme, Direct media library upload goes to the correct folder. So the issue is in my custom theme. But I am not sure where to look at. In which file of my theme has the issue? Help is …
[embed width="28"]http://audio.itunes.apple.com/apple-assets-us-std-000001/AudioPreview91/v4/e7/e0/fb/e7e0fbfb-5582-ee65-6a81-823b5ecf9186/mzaf_5076836927047056840.plus.aac.p.m4a[/embed] Since WordPress was updated to version 4.7, the audio player changed: after pressing the play icon, the play button now comes with other options, "download" and "mute". I want to hide those, and turn back to the simple play - pause Below is the image: In the past, after playing 'play', only the 'pause' button appeared as seen in the image below: I want it back. Any idea on how to do this?
Our multisite WordPress installation has a URL of https://xx.com for the main domain, and - for example, https://yy.xx.com as a subsite. We're using WP's in-built domain mapping feature. Media library links are still showing up as http://xx though, so any images used on the subdomains are flagged up as insecure. Only one subdomain - our most recent one - has media library links with a structure https://zz.xx.com. It's possible that the SSL certificate was installed after the other subdomains were …
I'd like to retrieve a list of all attachment URLs for all posts of a website. This would bring something like http://example.com/mypost/attachment-1/ http://example.com/mypost/attachment-2/ http://example.com/anotherpost/attachment-deff/ http://example.com/post3/attachment-deff4/ Would it imply to use: wp_get_attachment_url
I'm trying to modify WordPress to have the following features: Users are created in Active Directory and assigned to groups. Users can login to WordPress via Active Directory. Pages can be locked down to only be visible to members of certain Active Directory groups. A "Downloads" page can be seen by members of any of several groups but each group can only see downloads that they have been given permission to see (I'm flexible to how this could be represented …
I'm having some problems getting my JSON data that's being passed via an ajax request. I'm trying to implement the media uploader into a plugins settings page. I've got it functioning properly using this method as far as the media uploader functionality is concerned. I'd like to be able to retrieve the 'attachment' data in PHP, decode it and then process it once the media uploader is closed and the images have been selected. The ajax request is working because …
Currently, when I delete a post in my wordpress website, the image is deleted automatically. Which is fine for most cases, however, there are certain posts where I don't want to delete the image from the database such as a post that has the plain website logo (default background image when subscribers don't post image). In such case, how can I delete the post while keeping the image. I'am using the wordpress rest api and issuing the following request (in …
I upload a lot of contracts, T&Cs, pdfs and audio file to my wordpress blog. I would like all of this content to be hidden from standard search engines. Is this possible?