Hi PatJ,
The WP Extra File Types is 3 major versions out of date, on that basis I think results may vary a bit.
I have released an update which adds support to display sql,xml & exe files.
Many thanks,
Mauvedev
Thread Starter
PatJ
(@patj)
Thanks. I’ve updated. Theoreticaly that should solve my problem but…
[medialist max=500 mediatype=SQL mediaitems=500 paginate=0 orderby=name globalitems=1]
just gives me “Info! No posts or attachments to display” message.
If I change mediatype to images then it lists all the images perfectly.
My media admin page says for one of my files (of 400)
File name: AllCitations-RM7.sql
File type: SQL
File size: 4 KB
so I’ve tried both mediatype=SQL and mediatype=sql but no joy.
And mediatype=”SQL” and mediatype=”sql”
The file was uploaded whilst editing a post with “add media” standard Gutenberg block.
Annoyingly although I’m an admin on this particular site, I don’t have control panel access otherwise I’d be looking at code and database entry!
I might end up setting up a test on my local WAMP server.
-
This reply was modified 5 years, 4 months ago by
PatJ.
Hi PatJ,
Set the mediatype to other, instead of sql. Moving forward I want to keep the shortcode data minimal and therefore will put additional i.e non native mimes into the other tag. This should resolve your display issues.
It would be good if there was a MediaExt=sql,… parameter as an alternative to Mime Type. That would produce a better filtered list than MediaType=other, for our purpose.
Setting mediatype is just providing the plugin the place to look for the mime, the extension will be correct.
i.e if you upload a .sql and attach it to your page, with a medialist shortcode set to mediatype=other, the file will still list as an sql and download as a .sql
You can still use multiple mediatypes in the shortcode, if you need granular organisation you can set a tag on the files within the wordpress Media Library.
Many thanks,
Mauvedev