• Resolved armandl

    (@armandl)


    How can I prevent the plugin from attempting to embed .doc and .docx files?

    I think when parsing the url before finding database matches, it needs to also check whether the url ends in .pdf. I know that’s not always reliable but I think in my case it will be.

    As it is, when I try to view an attachment page for a .doc or .docx post, it shows the title and nothing else.

    Thanks,
    Larissa

    https://ww.wp.xz.cn/plugins/vanilla-pdf-embed/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Doherty

    (@_doherty)

    You’re correct, checking that the URL ends in “.pdf” is the wrong way to verify that the file is a PDF. This is why the database contains the file types. On the other hand, you’re not the first person to ask that the code check the file extension, so perhaps I will add it in the end…

    Thread Starter armandl

    (@armandl)

    Thanks for the reply. Is there any modification I can make now so that the media attachment pages for .doc files aren’t affected by the plugin?

    Plugin Author Mike Doherty

    (@_doherty)

    If you’re comfortable doing so, you can add the extra check as shown here: https://ww.wp.xz.cn/support/topic/affecting-gallery-display?replies=6#post-6959214

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Affecting Word (.doc .docx) Documents’ is closed to new replies.