• Resolved davidw09

    (@davidw09)


    Does the one api work on mutisite or do i need to add the pdf to each subsite and add a new api

Viewing 1 replies (of 1 total)
  • Hi davidw09,

    The plugin does work on multisite. The plugin, by default, uses the absolute URL for a document when the shortcode is rendered; however, if you edit the URL to a relative link you can successfully embed a PDF across the sub-domains of your multisite.

    For example, by changing the shortcode used from:

    [pdf-embedder url=”https://domain.com/wp-content/uploads/2018/03/filename.pdf”]

    to

    [pdf-embedder url=”/wp-content/uploads/2018/03/filename.pdf”]

    Aka: strip out the leading “https://domain.com”.. it no longer matters what the site is known by. The file loads and is displayed. This method will work in the free and Premium versions of the plugin but it will not work in the Secure version of the plugin due to the security permissions there.

    If you have any other questions, please do not hesitate to send us an email to contact@wp-pdf.com as we may not see the forum posts in a timely fashion.

    Emma

Viewing 1 replies (of 1 total)

The topic ‘PDF embeder on mutisite’ is closed to new replies.