fbpx

News Blog: WordPress & Joomla Extensions

Import Media From Folder In WordPress Media Library

IMPORT-MEDIA-FROM-FOLDER-IN-WP-MEDIA-LIBRARY

Perhaps at some point, you might have tried to add images to your WordPress media library by placing them in your WordPress blog’s uploads directory. If you tried that, you will have been left with an aftertaste of disappointment as you looked in your WordPress media library and found no sign of imported media.

The reason why these files do not appear in your media library is that WordPress indexes all files in the database. In other words, manually-uploading this media bypasses this crucial step. If you’re migrating to WordPress, or otherwise need to import a lot of media, you will be happy to hear that WP Media Folder now supports importing files from your server.

 

Importing Media to the WordPress Media Library

WP Media Folder lets you import entire directories of media files from the settings page, right in the import/export submenu. The page lists a number of directories, from the root of your server down to individual sub-directories, which you can navigate by clicking on folder names.

You can choose any number of folders from where to import media. When you press the import folder button, WP Media Folder imports the files into your WordPress media library. Moreover, WP Media Folder automatically mirrors your directory structure in your media library.

1-Server-Import


  
In this way, you can copy all your images, videos and just about any other media files to your server and organize them into directories using your local file manager. WP Media Folder also indexes your files in the database, making them available to use on your WordPress blog. You can use these new folders and their media in any way you want, including inserting them into your WordPress posts and pages, or converting them into galleries.
 

Import Categories Instead of Directories

If you have experimented with other WordPress file managers in the past, or if you have a combination of plugins active at the same time, you might want to combine them into one with WP Media Folder. Categories are nothing but WordPress’ name for folders, and you can import them likewise with WP Media Folder.

WP Media Folder supports the categories created using the Enhanced Media Library and WP Media Categories plugins. Similarly to before, navigate to import/export and scroll down until you see Enhanced Media Library and WP Media Categories. Click on import now to choose the categories to add to your WordPress media library.

 

When WP Media Folder imports categories from Enhanced Media Library or WP Media Categories, it creates folders and subfolders that mirror the categories and subcategories. Then, it imports the media in these categories into these folders, replicating the categories as folders seamlessly.

 

Synchronizing Your Imports With the WordPress Media Library

WP Media Folder can do more than just import files from your server into your WordPress media library. The updates to WP Media Folder make the communication between your WordPress blog and your server a two-way conversation with automatic synchronization. The workflow is available in the server folder sync submenu. First, you will need to activate one of two synchronization modes.

Media-Folder-Synchronization

 

To activate WP Media Folder’s synchronization, switch on activate the sync. By default, this means that when you add, remove or change a file in a server folder, the plugin mirrors the action on WordPress. You can activate two-way synchronization by pressing the next switch. This means that apart from mirroring changes in the server folder in WordPress, it also mirrors changes in WordPress in the server folder. Thus, the two folders are always in sync.

If you want to avoid erroneous changes, you can delay synchronization by a few seconds, giving yourself a short period of time to rectify mistakes. The last step is to select one external folder on your server and another one in your WordPress media library. Press add to add the pair: the two folders will remain open to communication when you upload or otherwise manage files. You can add other pairs of directories similarly.

server-folder-import-delay

 

Synchronization doesn’t just work when you upload files to your server or to your WordPress media library. If you use WP Media Folder’s replacement function on files to upload a new file or image and replace the existing media, the plugin also mirrors that change in the server folder.

You can control what you want to synchronize from the next tab: filters. There are two types of filters. The first one filters files based on filetype, such as images. Use this to synchronize only images, for example, and ignore other files, like documents or larger archives.

 

The second type is the IPTC metadata. These are data about the images themselves and that are part of the images, such as the title, alternative text or description. You can import all of this data into your WordPress media library, or a selection of metadata. Remember to save changes after updating your preferences.

 

Exporting your WordPress Media Library

So far, we’ve focused on importing files from your server to the WordPress Media Library. However, you can also use WP Media Folder to do the reverse: create a taxonomy of your media library on your server, including copying all media files and creating physical server folders.

To do this, head to the physical folders sub-menu. Note that this is a slightly risky operation, so make sure to read all the instructions to understand what is happening and what may go wrong. Once you’re comfortable with the limitations, you can enable the creation of physical folders and move existing media into these folders.

 

WP Media Folder does a lot of the work on your behalf under the hood. This includes updating your database and updating the media tables to minimize the number of broken links. You should still, however, go over the website to make sure that the operation was successful.

Whether you’re moving to a new server, migrating to a WordPress blog, or just need to import a lot of images, there’s no reason it should be a complicated task. With WP Media Folder, you can import masses of images, or synchronize your WordPress media library and server to keep each other up-to-date.

 

More Details about: WordPress server folders, import and synchronize >>

 

6
2020 Summer Sale: 30% OFF On All Memberships!
Find the Best Joomla file Manager

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
Friday, October 30 2020

By accepting you will be accessing a service provided by a third-party external to https://www.joomunited.com/