Hello Matt,
Pretty File List actually picks up the file type from the WordPress Mime type not the file extension, and I have added mime types for docx and xslx files in already. So this should have worked.
Can you take a look at one of the files that wasn’t working and tell me what WordPress lists as the filetype (you can see this in the media library or gallery tab on the media uploader).
Thanks,
James
Sure, it’s “application/msword”. When I have .docx files attached to a page and I insert a Pretty file list by checking all options, this is the shortcode that’s inserted:
[prettyfilelist type=”pdf,xls,doc,ppt,zip” filesPerPage=”5″]
Thanks Matt.
I think I can see what’s happening. The doc option in the filter matches for both docx and doc files as they are styled and filtered the same. Because of this docx in the shortcode isn’t recognised at all.
I should probably add a catch so that if someone add docx into the shortcode manually the system treats it the same as doc files.
Does this make sense?
James
I’m not sure if I understood you correctly, but Pretty file list seemed to work fine only after I added .docx to the shortcode manually, which it didn’t before I did so.
Just to be clear, I attached three .docx files, inserted the Pretty file list shortcode ([prettyfilelist type=”pdf,xls,doc,ppt,zip” filesPerPage=”5″]), and nothing happened. Then, I added .docx to the shortcode manually ([prettyfilelist type=”pdf,xls,doc,docx,ppt,zip” filesPerPage=”5″]) and then my three .docx files were displayed nicely.