Using dashboard uploader instead of FTP
If you’re on a shared server, it’s unlikely your host will correct this issue, but you can add the upgrade constants to your wp-config file so it will at least stop asking every time.
If you’re on a shared server, it’s unlikely your host will correct this issue, but you can add the upgrade constants to your wp-config file so it will at least stop asking every time.
You can use CSS attribute selectors to accomplish this without changing anything in the WP Admin or the HTML. A Google search for “css file type icons” comes up with several results, but I’ll explain the basic idea for you here. An attribute selector lets you style any html tag with a matching attribute. There … Read more
The pdf is itself an attachment post so in wordpress template hierarchy we can create a template named pdf.php Then you can write following code in it which force download the pdf file. <?php if (have_posts()) : the_post(); $pdf_title = $post->post_title; $pdf_src = get_attached_file($post->ID ); $bytes = filesize( $pdf_src ); header(“Pragma: public”); // required header(“Expires: … Read more
Would maybe look into do_action( ‘pre-upload-ui’ );. Here is my first thoughts, please note it’s not tested but should get you in the right direction. add_action( ‘pre-plupload-upload-ui’, ‘sd_extra_info’ ); function sd_extra_info() { # see wp-includes/media-template.php print ‘<pre> Some more info here </pre>’; }
Use the Filter Hook intermediate_image_sizes_advanced for control the resize function for different sizes. This hook get a array of different sizes and can control your resize with your requirements. Add your logic inside a plugin and remove sizes via this hook. // the hook in core $sizes = apply_filters( ‘intermediate_image_sizes_advanced’, $sizes ); A small example … Read more
WordPress resizes the image when you upload it. By default it provides 4 sizes of your image (providing your image is bigger than the ‘large’ size). the_post_thumbnail(‘thumbnail’); // Thumbnail (default 150px x 150px max) the_post_thumbnail(‘medium’); // Medium resolution (default 300px x 300px max) the_post_thumbnail(‘large’); // Large resolution (default 640px x 640px max) the_post_thumbnail(‘full’); // Original … Read more
I see that you have given the upload_max_filesize but you should also give post_max_size in your php.ini file.. post_max_size = 32M
You can do this without a plugin in the newest versions of WordPress. Go to Media, click on any image and then click on the edit image button. You can edit the image there and one of the options is rotation.
This is a filter I use to keep my clients from adding special characters to their filenames, should work for you – you’ll have to reupload the file though. /** /* Sanitize Uploaded Filenames /* @param array $file /* @return array $file */ function sanitize_file_uploads( $file ){ $file[‘name’] = sanitize_file_name($file[‘name’]); $file[‘name’] = preg_replace(“/[^a-zA-Z0-9\_\-\.]/”, “”, $file[‘name’]); … Read more
Found the problem. It was a problem with my host, in the path the ID3 folder name was uppercase, while on the server for some reason it was lowercase, this is why it didn’t find it.