DocumentCloud

DocumentCloud is a service that allows journalists to analyze, annotate and publish documents, hosted by Investigative Reporters & Editors. Initial development of this plugin supported by NPR as part of the StateImpact project.
This plugin allows you to embed DocumentCloud resources using either the raw URL on its own line:
Here's something you should really take a look at:
https://www.documentcloud.org/documents/282753-lefler-thesis.html
Isn't that interesting?
Or a custom shortcode:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html"]
When you save, WordPress fetches and stores the actual embed code HTML from the DocumentCloud servers using oEmbed. You can freely toggle between visual and HTML mode without mangling embed code, and your embed will always be up to date with the latest embed code.
By default, documents will have a responsive width (it will narrow and widen as necessary to fill available content area) and use the theme’s default height. If you want to override this, you can either set responsive="false" or explicitly set a width:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html" width="600"]
You can set your own defaults in Settings > DocumentCloud, but default widths will be ignored unless responsive is disabled:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html" responsive="false"]
To embed a single page, use any page-specific URL. Pages ignore width/height and always act responsively:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html#document/p1"]
To embed a note, use any note-specific URL. Notes ignore width/height and always act responsively:
[documentcloud url="https://www.documentcloud.org/documents/282753-lefler-thesis.html#document/p1/a53674"]
Here’s the full list of embed options you can pass via shortcode attributes; some are specific to the type of resource you’re embedding.
All resources:
url(required, string): Full URL of the DocumentCloud resource.container(string): ID of element to insert the embed into; if excluded, embedder will create its own container.
Documents only:
height(integer): Height (in pixels) of the embed.width(integer): Width (in pixels) of the embed. If used, will implicitly setresponsive="false".responsive(boolean): Use responsive layout, which dynamically adjusts width to fill content area. Defaultstrue.responsive_offset(integer): Distance (in pixels) to vertically offset the viewer for some responsive embeds.page(integer): Page number to have the document scroll to by default.note(integer): ID of the note that the document should highlight by default.notes(boolean): Hide or show notes.search(boolean): Hide or show search form.sidebar(boolean): Hide or show sidebar.pdf(boolean): Hide or show link to download original PDF.text(boolean): Hide or show text tab.zoom(boolean): Hide or show zoom slider.format(string): Indicate to the theme that this is a wide asset by setting this towide. Defaultsnormal.
You can read more about publishing and embedding DocumentCloud resources on https://www.documentcloud.org/help/publishing.
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



