Facem Web Import & Export Articles
A single button in the post editor lets you import an office document to create a draft, or export the current post to a downloadable file. No external rendering tool is required: import and export are 100% native PHP.
On import:
- The first level‑1 heading becomes the post title (otherwise the file name is used).
- The first image of the document becomes the featured image.
- The other images are inserted at their position in the content.
- Each content image is named (file +
altattribute, on the tag and in the Media Library) after the subheading that precedes it. - Optionally, the
altattribute can be generated by an AI based on the context and the image (see “External services” below). - All images are added to the Media Library.
- Content is saved as clean HTML (no visible block markup), readable in Gutenberg, the Classic Editor and page builders.
- The source document is deleted from the server immediately after processing.
Supported import formats (native, no server tools): .docx (Word), .odt (LibreOffice/OpenOffice), .txt, .md (Markdown).
On export: download the current post as .docx, .odt, .pdf or .txt, generated entirely in PHP (no LibreOffice). The featured image is placed before the title and content images are embedded (DOCX/ODT/PDF — PDF images require the GD extension, otherwise a text fallback is used). Headings, bold/italic/underline/strikethrough, lists, quotes, tables and alignment are preserved.
Editors and page builders: the button appears in Gutenberg and the Classic Editor, a button is injected into the Elementor editor panel, and a “Document” entry is added to the WordPress admin bar as a universal fallback. On export, content built with Divi (shortcodes) or Elementor (post meta) is rendered to HTML before conversion.
Internationalization: the interface follows the WordPress site language. Translations are bundled for many European and Asian languages, and a .pot template is provided.
External services
This plugin can optionally connect to a third‑party AI API only if you enable it in Settings → Import / Export articles and provide an API key. It is disabled by default.
When enabled, during import the plugin sends, for each imported image, the following data to the provider you select in order to generate the image alt text:
- the surrounding textual context (post title, the preceding subheading, and a short excerpt of nearby text);
- and, if the “Analyze the image (vision)” option is enabled, the image itself.
Supported providers and their endpoints:
- Mistral AI — requests sent to https://api.mistral.ai/v1/chat/completions. Terms: https://mistral.ai/terms/ — Privacy: https://mistral.ai/terms/#privacy-policy
- OpenAI — requests sent to https://api.openai.com/v1/chat/completions. Terms: https://openai.com/policies/terms-of-use/ — Privacy: https://openai.com/policies/privacy-policy/
No data is sent to any external service when the AI option is disabled. The API key is stored in your site’s database and used only to authenticate these requests.
