Can you see images available in media library that were uploaded to the uploads folder via FTP and not by the media uploader?
We haven’t been uploading images via FTP to the uploads folder. That’s not the issue at hand. The issue is whether we can include a way for the search feature to index images that have been uploaded using a gallery plugin to a folder in wp-content… For example, this image is NOT being listed when you search for “imagename” : mysite.com/wp-content/fancygallery/imagename.jpg but it is listed if it’s in: mysite.com/wp-content/uploads/2013/03/imagename.jpg
Does that help clarify? In short, I am just needing a way for the search feature to list images that are also outside of the uploads folder.
My question was rather about whether you can see any images uploaded to the WP not via WP media uploader, regardless of their location.
The thing is that all of the images uploaded using WP media uploader are added to the library and to the database. Each image has its own record in the DB as WP stores images in the same table in the DB as posts are stored into, which is the posts table.
When you upload new image, new record is created where post_type=attachment.
To make it work your way, it’d be good if a script was created to import images to WP system, so it both moves the images to your uploads folder, and also inserts appropriate entries in the DB.
Ah, that makes sense. Unfortunately, writing a script like that is a little outside my comfort zone. Do you know where I might begin looking to find one?
As a ready to use solution you may want to try this maybe? Never used it but looks like it does what you need to be done.
After a week of continuing to try to solve this issue, I still haven’t had any luck. Thanks x500.net for your link, but unfortunately that plugin duplicated too many things and did not play nice with some of the other plugins.
It’s hard for me to believe that there isn’t a script or plugin that tells the search feature to index everything in the database — both in the media gallery and in other folders/data tables, but either one doesn’t, or I haven’t found it yet.
If anyone else comes across this post and has a solution to this problem, please let me know!