• Resolved Joe Banks

    (@joenasagrc)


    I am reaching an impasse after a week of reviewing your thorough documentation, so please pardon what may be a simple question or oversight:

    I am working to troubleshoot why file (non-image) icons aren’t displaying via shortcode, specifically for xlsx and pptx files. What’s the short list of things to do, if you wouldn’t mind? The img icons are showing up on one installation of WP but not another.

    I see the extensions with icons listed and displayed on the “File Extension and MIME Type Processing” page, where both options are selected, “Enable Upload MIME Type Support” and “Enable MLA File Type Icons Support.”

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for the generous words regarding the documentation and for your question. I can’t do much testing while I am on the road so this is a preliminary response.

    Have you tried size=icon in your [mla_gallery] shortcode? Does the icon support work for other non-image file types?

    It is possible that new WordPress versions have changed the way thumbnail support works, e.g., when PDF thumbnails were added in 4.7.

    It looks like your configuration is correct. If the above suggestion doesn’t help I can investigate further when I return home. Thanks for your patience and understanding.

    Thread Starter Joe Banks

    (@joenasagrc)

    I was hoping you would not answer this until you returned from travel, and I am replying now simply because I have a free moment, so no need to respond until you have a moment of your own.

    Yes, size=icon is definitely included.

    Icon support works for *SOME* non-image file types: I displayed all non-image media files with the default shortcode, and then displayed all file types, and globally see that .ppt and .doc icons *ARE* showing, but *NOT .pptx or .docx, and .xlsm but *NOT* .xlsx (there are no .xls files).

    I also ask because: This issue is happening on one WP multisite installation but not another. Both are WP 4.7.2.

    ======DETAIL ========

    It’s a shortcode, this is what I have in the arguments:

    columns=1 orderby="name ASC" post_parent="all" post_mime_type="application/pdf,application/*ms*,application/vnd.openxmlformats-officedocument*" link=file size=icon

    and for each item:

    [+link+] <a href="[+link_url+]">[+post_title+]</a> (.[+extension+], [+post_modified,date('m/d/y)+], [+file_size,kbmb( 1024 , ' KB', ' MB' )+])

    Sample results

    • 2017 XYZ Schedule 2017 XYZ Schedule (.xlsx, 30.151 KB)
    • [PDF icon] February 16, 2017 EMB Charts (.pdf, 5.529 MB)

    The xlsx file shows the link twice since the icon is missing.

    • This reply was modified 7 years, 9 months ago by Joe Banks.
    • This reply was modified 7 years, 9 months ago by Joe Banks.
    Plugin Author David Lingren

    (@dglingren)

    I have not been able to reproduce the missing icons behavior you reported, but I did find a related MLA defect that may account for the problem.

    I have uploaded a new MLA Development Version dated 20170122 that contains the fix. To get the Development Version, follow the instructions in this earlier topic:

    Shortcode not working in (special) widget

    It would be great if you can install the Development Version and let me know if it works for you. If it does not I will investigate further.

    Plugin Author David Lingren

    (@dglingren)

    It has been two months since the last post in this topic. I hope the new Development Version was helpful or you were able to find another solution for your issue.

    I am marking this topic resolved, but please update it if you are still having trouble with the missing icons.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reasons Image/Icons for Files Not Displaying’ is closed to new replies.