How to upload images manually to wordpress?

I haven’t tested this in multi-site but can’t see any reason that it wouldn’t work. The Add from Server plugin searches for images that you manually upload to WordPress and adds them to the media manager. You can find it here: http://wordpress.org/extend/plugins/add-from-server/ Tested on the latest WordPress.

How to register images uploaded via FTP in media library?

It’s because you’re not registering them as a media type. Every upload is a WordPress post of the attachment type. To start, it would be something like this: $file_name=”Some Name”; $file_path=”/path/to/uploads/2012/08/04/newfile.jpg”; $file_url=”http://url/to/uploads/2012/08/04/newfile.jpg”; $wp_filetype = wp_check_filetype($file, null); $attachment = array( ‘guid’ => $file_url, ‘post_mime_type’ => $wp_filetype[‘type’], ‘post_title’ => $file_name, ‘post_status’ => ‘inherit’, ‘post_date’ => date(‘Y-m-d H:i:s’) … Read more

Changing the media library default tab

There’s a filter called media_upload_default_tab that you can use to do this. <?php add_filter(‘media_upload_default_tab’, ‘wpse74422_switch_tab’); function wpse74422_switch_tab($tab) { return ‘library’; } You can set the to be whatever — assuming the tab exists. The tab keys themselves are found in the functon media_upload_tabs. <?php /** * Defines the default media upload tabs * * @since … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)