Insert attachments from custom uploader into post (regular uploader style)
You can add content to the editor via javascript: tinyMCE.activeEditor.selection.setContent(‘<img src=”https://wordpress.stackexchange.com/questions/56414/hello.jpg”>’);
You can add content to the editor via javascript: tinyMCE.activeEditor.selection.setContent(‘<img src=”https://wordpress.stackexchange.com/questions/56414/hello.jpg”>’);
At the top of your wp-config.php file: ini_set(‘upload_max_filesize’,’4M’);
Using WordPress plugin – Search And Replace This is simple WordPress plugin, Does database query to replace any content. This plugin can be used to replace a string ( say – localhost:8888 ) with a new one ( domain.com ) . Direct updating MySQL Database – Or, If you’ve access to MySQL Server you can … Read more
It seems like theme author disabled this fuctionality for certian post type’s attachments, for a reason. Trying to get it back could very well break something else. Try contacting theme’s author. (S)he will probably provide free support.
If you are trying to optimize the images uploaded, I would try using this plugin http://wordpress.org/extend/plugins/wp-smushit/ I use it on my image heavy sites to upload all past and future uploaded images.
media_handle_sideload handles the uploads in the same way the normal upload does. That means, when you upload a remote image (YouTube thumbnails in your case) it will automatically create the thumbnails of sizes registered using add_image_size. So, what you need to do is create a thumbnail of desired size and call it in your loop. … Read more
Why not set your own image sizes from within your theme in functions.php? add_image_size( ‘some-image-size-name’, 500, 300 ); Then you can call that size you want from your template. <?php echo get_the_post_thumbnail( $post_id, $size, $attr ); ?> Links Add image size: http://codex.wordpress.org/Function_Reference/add_image_size get post thumbnail: http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail
Yes the better solution is to use add_role( $role, $display_name, $capabilities ); and make a distinct role for the front end. That way you have a separation of abilities that is easier to manage, the way you are doing it will lead to trouble.
If you use “Insert by URL” the image is loaded from whatever URL your provide. It is not uploaded to your server at all, nor is any information added to the postmeta table as far as I can tell. It seems to be equivalent to simple hand-writing the HTML into the post body. You can … Read more
As just previously answered, your problem likely simply is that you used the same ID (the 2nd argument for wp_editor() multiple times).