For some time, I’ve been using the File Gallery plugin to dynamically generate lists of uploaded media in my WordPress’s media library according to tags. However, it’s happened to me that I wanted to also include e.g. a video I uploaded to Youtube or a file I have on Soundcloud to this list. But File Gallery gets all its data from WordPress’s built-in media library function/tables.
Now, to get files to register with your media library in order for WordPress to handle them, you have to upload them to your server, and a record with meta information about this file including the absolute URL to its whereabouts will subsequently be added to the
wp_posts table in WordPress’s database backend, like this:
post_date: 2012-03-15 14:53:51
post_date_gmt: 2012-03-15 13:53:51
post_title: Super Awesome Holiday Photo
post_excerpt: Super Awesome Holiday Photo
post_modified: 2012-03-15 14:53:51
post_modified_gmt: 2012-03-15 13:53:51
I’ve manually edited the
guid field before in PHPMyAdmin so as to include links to some of my Youtube videos so that WordPress could handle these videos as though they were files on my server, so the videos would in turn be listable with File Gallery (and it worked!). However, this strikes me as very inconvenient to do manually every time.
Which is why I’d like to ask: Is there a plugin to register links to files that are not on your own server with WordPress’s database so that they appear in your media library? I’ve found a plugin once that could do this for Youtube videos specifically, but I’d like to be able to do that generally.