Show image crop window on image upload
Show image crop window on image upload
Show image crop window on image upload
Check the nginx error.log (based on nginx.conf error_log location). $ sudo nano /path/to/nginx/error.log There is a “permission denied” error on /var/lib/nginx. This happened because I changed the user setting in nginx.conf from user nginx; to something else. In this case, user iam; Solution: Check the current user and group ownership on /var/lib/nginx. $ ls -ld … Read more
Found a filter that works for this situation function media_to_editor($html, $send_id, $attachment ){ $attachment_url = wp_get_attachment_url($send_id); return $attachment_url; } add_filter(‘media_send_to_editor’, ‘media_to_editor’, 10, 2);
How to submit data between wp_iframe and backbone.js in media upload
You can’t upload anything except images, documents, audio or video files—and it’s good for security, But in case you want to allow specific file type to upload in media library you will have to define ALLOW_UNFILTERED_UPLOADS. Put this code in wp-config.php file. define( ‘ALLOW_UNFILTERED_UPLOADS’, true ); This code doesn’t allow every user to upload every … Read more
Duplicates and other problems in Media Library
Calling the_content from within attachment.php will bring you the Attachment Description. Put the code below on your page and see what you can get from within attachment.php file: while ( have_posts() ) : the_post(); /** * @link https://codex.wordpress.org/Function_Reference/wp_get_attachment_metadata#Related */ $data = array( get_the_ID(), // Gets att ID. get_permalink(), // Gets att page link. get_the_title(), // … Read more
And the culprit was… my apache config. Please do not forget to edit the apache configuration in /etc/apache2/apache2.conf and add the lines <Directory /var/www/html/> AllowOverride All </Directory> I still have a question. It seems (but it may be related to the fact that the site is still in localhost) that this method does not prevent … Read more
WordPress media upload automatic refresh
The two problems you describe may very well be related. Attachments (images) are stored as posts in the database (so title, caption and so on can be stored in relation to the physical image file). It is this post that you see in the image library. Normally, the post_status of attachments is inherit. However, if … Read more