WordPress - Document Frontmatter
Document Frontmatter lets you define WordPress post metadata directly inside your Google Doc — no need to fill in forms each time you export. Add a simple 2-column table at the top of your document, set the values you want, and Tenwrite picks them up automatically.
This is especially useful with Drive Automation and Sheet Automation, where there’s no export form at all. Frontmatter is how you control individual posts when publishing is fully automated. It also works with manual exports.

Insert the Table
Section titled “Insert the Table”You don’t need to create the table by hand. Open your Google Doc, go to Extensions > Tenwrite > Frontmatter > Insert WordPress Frontmatter, and a ready-to-use table is inserted at the top of your document. Fill in what you need and leave the rest blank — empty rows are ignored.

When Tenwrite processes the document, it reads the table, applies the values to the post, and removes the table from the published content. Your readers never see it.
Available Fields
Section titled “Available Fields”| Field | Description | Example |
|---|---|---|
tenwrite_frontmatter | Required marker — don’t change this | v1 |
object_type | Post or page | post |
title | Post/page title | Complete Guide to Automation |
excerpt | Short summary for archive pages | Quick summary for archive pages |
slug | URL slug | complete-guide-to-automation |
status | Publish state | future |
publish_date | Schedule date and time | 2026-04-15 09:30 |
author | Author username, email, or ID | editor@example.com |
password | Post password | my-secret |
categories | Comma-separated category names | WordPress, Automation |
tags | Comma-separated tag names | google docs, tenwrite |
comment | Comment status | open |
ping | Ping status | open |
format | Post format | standard |
sticky | Sticky post | false |
template | Page template path | templates/landing.php |
parent | Parent page ID (for pages) | 42 |
menu_order | Page order in menus | 1 |
featured_media | URL of existing media to use as featured image | https://example.com/image.jpg |
preset | Formatting preset to apply | balanced |
Status
Section titled “Status”Set status to one of: draft, publish, future, private, or pending. For scheduling, set status to future and add a publish_date.
To save as a draft while you’re still working on content:

To schedule a post, set status to future and add a publish_date:

Optional Formatting Fields
Section titled “Optional Formatting Fields”You can also add these fields to control how Tenwrite transforms the document’s HTML during export:
remove_inline_styles—true/falseremove_font_family—true/falseremove_font_size—true/falseremove_color—true/falseremove_text_decoration—true/falseremove_background—true/falseremove_padding—true/falseremove_margin—true/falseremove_width—true/falseremove_height—true/falseremove_line_height—true/falseremove_border—true/falseremove_letter_spacing—true/falseremove_text_transform—true/falseremove_max_width—true/falseremove_max_height—true/falsedemote_headings—true/falseadd_rel_nofollow_to_links—true/falseadd_target_blank_to_links—true/falseincrease_line_height—true/falseconvert_pt_to_px—true/falsestrip_empty_elements—true/falseresponsive_images—true/falseembed_youtube—true/falseembed_twitter—true/falseupload_images_to_media_library—true/falseuse_first_image_as_featured_image—true/false
Example Table
Section titled “Example Table”| Key | Value |
|---|---|
tenwrite_frontmatter | v1 |
object_type | post |
title | Complete Guide to WordPress Automation |
excerpt | Learn how to automate your WordPress publishing workflow using Google Docs. |
status | future |
publish_date | 2026-12-31 09:00 |
slug | wordpress-automation-guide |
categories | WordPress, Automation, Tutorials |
tags | wordpress, automation, google docs |
comment | open |
ping | open |
preset | balanced |
Troubleshooting
Section titled “Troubleshooting”Frontmatter isn’t being applied
Section titled “Frontmatter isn’t being applied”- The table must be the very first element in the document — nothing before it.
- Use Extensions > Tenwrite > Frontmatter to insert a correctly formatted table.
- Don’t edit the first row (
tenwrite_frontmatter:v1) — only change values in the second column.
Scheduled post isn’t publishing at the right time
Section titled “Scheduled post isn’t publishing at the right time”- Set
statustofutureand include apublish_dateinYYYY-MM-DD HH:MMformat. - Make sure the date is in the future when you export.
Categories or tags aren’t applying
Section titled “Categories or tags aren’t applying”- Use comma-separated format:
category1, category2. - Double-check the field names:
categoriesandtags(notcategoryortag).
Comment or ping settings aren’t working
Section titled “Comment or ping settings aren’t working”- Use
commentandpingin frontmatter, notcomment_statusorping_status.
Related Guides
Section titled “Related Guides”For help with frontmatter setup, contact support@tenwrite.com.
Tenwrite is an independent product not affiliated with or endorsed by Google LLC, Blogger, or WordPress Foundation. Google Docs, Gmail, Google Workspace are trademarks of Google LLC. WordPress is a trademark of the WordPress Foundation.