Docswrite supports a comprehensive set of parameters for creating or updating blog posts and pages on WordPress. These parameters can be used in multiple ways to give you maximum flexibility.

Google Docs Template

Use this Google Docs Template to create your blog post. The template includes all the supported features of Docswrite. You will notice we have a special docswrite_settings table at the top of the document. This table is used to configure the export settings for your blog post.

How to Use Parameters

All parameters are supported in the following ways:

General Parameters

ParameterRequiredDescription
google_docs_urlYesURL of the Google Doc containing the blog post content. Must be shared with “anyone with link.”
titleNoTitle of the blog post. Defaults to Google Docs title if not provided.
slugNoCustom slug for the blog post. Auto-generated if not provided.
tagsNoComma-separated list of tags. New tags will be created if they don’t exist.
categoriesNoComma-separated list of categories. New categories will be created if they don’t exist.
stateNoState of the blog post (publish or draft). Defaults to draft.
authorNoUsername or full name of the author. Defaults to API token creator.
dateNoSchedule post for a future date in YYYY-MM-DD HH:MM:SS format.
excerptNoExcerpt for SEO meta description.
post_typeNoType of the blog post (post or page). Defaults to post.
featured_image_urlNoURL of the featured image.
featured_image_alt_textNoAlt text for the featured image.
featured_image_captionNoCaption for the featured image.

Export Settings (export_settings)

Control how your content is processed and exported to WordPress:

ParameterDefaultDescription
compress_imagestrueCompress images before upload.
demote_headingsfalseDemote headings by one level.
convert_to_webptrueConvert images to WebP format.
first_image_as_featured_imagetrueSet the first image as the featured image.
add_no_follow_to_external_linkstrueAdd nofollow attribute to external links.
bold_as_strongfalseConvert bold text to strong tag.
wp_content_editorclassicContent editor to use (classic or gutenberg_editor)

Plugin-Specific Settings

Newspack Settings (newspack_settings)

For sites using the Newspack theme:

ParameterDescription
newspack_article_summaryArticle summary for Newspack.
newspack_article_summary_titleArticle summary title for Newspack.
newspack_post_subtitlePost subtitle for Newspack.

To use Yoast & RankMath SEO features, download and install our WordPress Plugin.

Yoast SEO Settings (yoast_settings)

For sites using Yoast SEO plugin:

ParameterDescription
yoast_focuskwYoast focus keyword.
yoast_metadescYoast meta description.
yoast_titleYoast title.
yoast_canonicalYoast canonical URL.

RankMath SEO Settings (rankmath_settings)

For sites using RankMath SEO plugin:

ParameterDescription
rank_math_focus_keywordRankMath focus keyword.

ACF Settings (acf_)

For sites using Advanced Custom Fields:

ParameterDescription
acf_field_nameCustom field value - supports URLs for images

Example Usage

In Google Docs Table

Create a table at the top of your Google Doc with the column header docswrite_settings:

docswrite_settingsValue
titleMy Amazing Blog Post
categoriesTechnology, WordPress
tagsdocswrite, automation
statepublish
featured_image_urlhttps://example.com/image.jpg

Via API

{
  "google_docs_url": "https://docs.google.com/document/d/1aBcDeFg/edit",
  "title": "My Amazing Blog Post",
  "categories": "Technology, WordPress",
  "tags": "docswrite, automation",
  "state": "publish",
  "export_settings": {
    "compress_images": true,
    "convert_to_webp": true
  }
}

Best Practices

  1. Always share your Google Doc with “Anyone with the link” before publishing
  2. Use descriptive titles and slugs for better SEO
  3. Set appropriate categories and tags to organize your content
  4. Include alt text for images for accessibility
  5. Use the WordPress plugin for enhanced SEO features
  6. Test with draft posts before publishing live content

Need help with parameters? Check our Support page for assistance.