Skip to content

WordPress - Document Frontmatter

Document Frontmatter lets you control post metadata directly in your Google Docs using a simple table. Set title, categories, tags, status, and publishing schedule without filling export forms. Works seamlessly with manual exports and automations (Drive Automation and Sheet Automation).

Example of frontmatter table in Google Docs

  • Google Docs access
  • Tenwrite add-on installed

Frontmatter is a simple 2-column table at the very top of your Google Doc. Tenwrite reads this table and applies the values to your post automatically.

Benefits:

  • Set metadata directly in your document
  • Works with manual export, Drive automation, and Sheet automation
  • Overrides any form inputs set while exporting
  1. Open your Google Doc
  2. Go to Extensions > Tenwrite > Frontmatter > Insert WordPress Frontmatter
  3. Customize values in the second column
FieldOptionsExample
tenwrite_frontmatterMust be v1v1
titleAny textMy Amazing WordPress Post
excerptAny textBrief post summary
object_typepost, pagepost
statusdraft, publish, future, private, pendingdraft
slugURL-safe textmy-amazing-post
categoriesComma-separatedTechnology, Tutorials
tagsComma-separatedwordpress, google docs, automation
comment_statusopen, closedopen
ping_statusopen, closedopen
publish_dateYYYY-MM-DD HH:MM2024-12-25 14:30
output_formatwp_blocks, classic_htmlwp_blocks
presetbalanced, my_presetbalanced
formattingbalanced, fullbalanced
KeyValue
tenwrite_frontmatterv1
titleComplete Guide to WordPress Automation
excerptLearn how to automate your WordPress publishing workflow using Google Docs and modern tools.
object_typepost
statusfuture
slugwordpress-automation-guide
categoriesWordPress, Automation, Tutorials
tagswordpress, automation, google docs, productivity, cms
comment_statusopen
ping_statusopen
publish_date2024-12-31 09:00
output_formatwp_blocks
formattingbalanced
  • Ensure table is the very first element in your document
  • Use the Extensions > Tenwrite menu to insert properly formatted tables
  • Don’t modify the first row with tenwrite_frontmatter : v1
  • Only change values in the second column
  • Include publish_date field with future status
  • Use format YYYY-MM-DD HH:MM
  • Set future date when exporting
  • Use comma-separated format for categories: category1, category2
  • Use comma-separated format for tags: tag1, tag2
  • Check field spelling: categories and tags

Frontmatter gives you complete control over post metadata directly in your Google Docs. Set up once and your metadata will be used across all publishing methods in Tenwrite.

Key benefits:

  • No more filling export forms
  • Consistent metadata across different publishing methods
  • Everything stays organized in your document

For help with frontmatter setup, contact support@tenwrite.com.