• Resolved eblakely

    (@eblakely)


    Great plugin, quick question….What is the syntax to include an xls document in the library. Tried a bunch of things and none worked. These are basic xlsx docs. Thank you.

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

    (@dglingren)

    Thanks for the positive feedback on the plugin and for your question. I want to make sure I understand what you mean by “include an xls document in the library.

    Are you having trouble uploading these documents to the Media Library? By default, WordPress and MLA enable uploading xls, xlsb, xlsm and xlsx file types. If that’s not working, make sure they are listed as “active” in the Settings/Media Library Assistant Uploads tab submenu table.

    Are you having trouble including these documents in an [mla_gallery] display? If so, you may need to add a MIME Type specification to your shortcode parameters. You can find the appropriate MIME Type values in the Settings/Media Library Assistant Uploads tab submenu table. For XLS documents the appropriate parameter would be:

    post_mime_type=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
    

    I know that’s an eyeful, but that’s what WordPress specifies. Don’t forget to add post_parent=all to the shortcode to return all matching items in the Media Library, not just those attached to the current post/page.

    I will leave this topic unresolved for now. Let me know if I have not understood the question. Any additional details you can provide will be helpful. Thanks for our interest in the plugin.

    Thread Starter eblakely

    (@eblakely)

    Hi Frank,

    As you surmised, uploading wasn’t the problem, it was having the documents appear that was. Your code was perfect. Thank you for your quick response and very helpful plugin!

    All the best,

    ELB

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘xls documents’ is closed to new replies.