Tag Info

New answers tagged

0

I found the solution. Rename your function.php file. Now it works fine for other themes. In my theme exactly the problem lies between the style tag. remove style tags and then check your admin panel. Thanks.


1

When you use the importer it should prompt whether to download any media/attachments it finds in the posts. If you don't say yes, they will not be added to your Media database. To my knowledge, even if you do say yes, Featured Images are not included. It's a very rare instance that I recommend using the built-in importer, and migration from one server to ...


0

If you have a lot of uploads, using the /year/month/day/ approach is recommended in order to keep the number of files in each directory manageable. (Just today I ran into an issue where there were more files in the uploads folder [~12,000] than the FTP server was configured to include in a directory listing [~10,000]. This caused quite a headache.) If the ...


-2

I got my problem solved by this article Try this in case you're facing the same problem.


0

Solved it! It was an issue with the Polylang plugin stopping the image from showing, I'm not quite sure why but adding a row to the wp_term_relationships table, where the object_id is the id of the attachment, and the term_taxonomy_id is the id of the language definition in the wp_term_taxonomy table fixed the issue.


0

It is the post_parent field, actually. So, in order to properly answer your question, we would need to know why you think that is not the case. Edit: Based on your comment, I suspect you also need to set the post_status to "inherit". Also, the GUID isn't the URL of the file anymore, not since 2.7. That might still actually work, but it is not reliable. ...


1

All of the code in your question can be replaced with: require_once( ABSPATH . 'wp-admin/includes/image.php' ); require_once( ABSPATH . 'wp-admin/includes/file.php' ); require_once( ABSPATH . 'wp-admin/includes/media.php' ); if ( $_FILES ) { foreach ($_FILES as $file => $array) { $image_post_id = media_handler_upload( $file ); if ( is_wp_error( ...


0

Here's a workaround you can put in a plugin or your theme's functions.php file. So far no problems. /* * Workaround Bug 30123 * Affects WP 4.0+, should be fixed in WP 4.1 * https://core.trac.wordpress.org/ticket/30123 */ function bugfix30123__action__admin_init() { if ( isset( $_GET['attachment-filter'] ) && is_string( $_GET['attachment-filter'] ...


-2

You are probably missing ImageMagick (PHP extension). Install it and the JPG artifacts will be gone.


0

You have the browse button and the import button in two different HTML form elements. Don't do that, put them in the same <form>.


3

Actually WordPress reduce quality of image when you upload it via media uploader. WordPress has built in compression for JPG images. Whenever you upload an JPG/JPEG image to WordPress media library, WordPress will automatically compress your images to 90% of the original quality, this is intended to help your pages load faster and keep file sizes smaller. ...


0

Normally this might due to some discrepancy from default set values for image in functions.php in wordpress and check whether any default values is set for the images in that file. You also can set it manually in function.php file as below. add_theme_support('post-thumbnails'); update_option('thumbnail_size_w', 200); update_option('thumbnail_size_h', 200); ...


0

I think php version is issue , Add following code to .htaccess and then try to upload : AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php


0

after change your memory limit , open your web page in some other browser or delete all your history and cache values in your browsr,,,,



Top 50 recent answers are included