All files unattached in Media Library
All files unattached in Media Library
All files unattached in Media Library
This is very strange. I have got it working by setting edit_others_posts and edit_private_posts to true!
How to give a File Upload option in wordpress Widget backend?
get the post thumbnail returns the full size
Its not exactly clear on where you are going, and why you are going there? If you want to place the file.pdf at the location www.mysite.com/page-name/ go for it. Use your File Transfer Protocol (FTP) tool to create that subdirectory on your server, dump your file there, then refer to it via the proper url … Read more
How do I allow family commenters to upload photos?
Yes, You can do this functionality by this plugins : wp-media-library-categories media-category-library
From your question what i understood is u need to store media files to another custom location. if that is your doubt then this may help you.. In order to change the default media upload location, you need to edit the wp-config.php file. If you want upload directory to be wp-content/example then you will need … Read more
I figured it out myself so I will post the answer here, please note that the original answer can also be found on StackOverflow. If the mods feel like this should be deleted from here and only remain, please go ahead. I thought it might be useful on both places. First the correct code, then … Read more
A hacky way to do it is to do a string replace on the tmpl-attachment-details template: // See wp_print_media_templates() in “wp-includes/media-template.php” function wpse157297_print_media_templates() { $my_link = ‘<a class=”my_link-attachment” href=”https://wordpress.stackexchange.com/questions/157297/my_link.php?url={{ data.url }}” target=”_blank”>’ . __( ‘My Link’ ) . ‘</a>’; $nonimage=”<# if ( “image” !== data.type && ! data.uploading ) { #>” . $my_link . ‘<# … Read more