Skip to content
All docs

WordPress setup

Credential: Application password

The WordPress connector creates draft posts over the official REST API, authenticated with an application password. There is no plugin to install, and nothing goes live until you publish in wp-admin.

Requirements

  • WordPress 5.6 or newer (application passwords shipped in 5.6).
  • HTTPS. WordPress refuses application-password authentication over plain HTTP.
  • REST API reachable at {your-site}/wp-json/ - the default unless a security plugin blocks it.
  • Pretty permalinks. With “Plain” permalinks, /wp-json/ does not work.
  • A user with permission to create posts (Author role or above). Use an Editor or Administrator to create categories or to set another user as author.

Step 1 - connect

In onboarding (or Connectors → WordPress later), enter your Site URL and click Connect with WordPress. A WordPress window opens:

  1. Log in as the user BirchSeek should post as, if WordPress asks.
  2. Click Yes, I approve of this connection.

WordPress makes an application password named BirchSeek and sends it back to the form. The window closes, and the form fills in the username and the password.

If your browser blocks the window, allow pop-ups for birchseek.com and click again.

Enter a password by hand

Use this when the connect window does not work (for example, a security plugin blocks authorize-application.php):

  1. Log in to wp-admin as the user BirchSeek should post as.
  2. Open Users → Profile and scroll to Application Passwords.
  3. Enter BirchSeek as the application name and click Add New Application Password.
  4. Copy the password. WordPress shows it once. The spaces in it are not important.
  5. In BirchSeek, enter the username and the password.

No Application Passwords section? The site is on HTTP, runs WordPress older than 5.6, or a security plugin (for example Wordfence: Login Security → Settings → Disable WordPress application passwords) turned the feature off.

Step 2 - settings

Click Load authors, post types and categories to read the lists from your site. Then set:

Setting Meaning
Post type Posts, or a custom post type that is open to REST
Author The connected user, or any user in the list
Default status draft (recommended) or publish
Categories Added to every post. Pick from the list or type names. A missing one is created
Categories from article tags When on, each post also gets the existing categories named like its tags
Schema markup The article’s JSON-LD in a Custom HTML block

Step 3 - send a test

Send a test calls GET /wp-json/wp/v2/users/me?context=edit. A wrong username, a revoked password or a blocked REST API fails with the site’s own error message. The call also shows the user’s capabilities: the test fails when the user cannot create posts, cannot publish with status publish, or cannot set another user as author. It checks that the post type exists, and it names the SEO plugin it found.

The test creates nothing. No post, no draft, no category.

What BirchSeek writes

Per article, via POST /wp-json/wp/v2/{post type}:

  • title, content (rendered HTML), slug, excerpt (the meta description)
  • status - draft by default
  • author - when you chose one
  • tags - the article’s tags. A tag matches an existing tag by name or slug. A missing tag is created.
  • categories - your categories, plus matching categories when that setting is on
  • featured_media - the featured image
  • SEO meta, when your site has a supported SEO plugin (below)

A custom post type gets only the taxonomies it has. A type without tags gets no tags.

content ends with a ## Sources block: a short list of the pages its verified claims were checked against (the project’s sources_style decides its form: by default one paragraph of up to eight sources, because every other source is already linked in the text, on the claim it backs - see Sources and citations), rendered into the HTML like any other section. BirchSeek composes that body once, before any connector sees it, so every connector publishing to your own site writes the same block - there is nothing to append yourself. (A syndicated copy to dev.to, Hashnode or Medium carries the same block, and the canonical link back to your page besides. That copy is not covered by the project setting: those three platforms have no citation field of their own, so the body is the only place the evidence can travel.) The block is on by default, and there is no switch for it in the dashboard: it is a project setting called append_sources_section, and the only way to change it today is PATCH /v1/projects/{id} carrying the whole settings object, because that request replaces the object rather than merging into it.

Images

BirchSeek uploads the featured image and the in-article images to your media library, with their alt text. The post shows the library copies. The file names are birchseek-featured-<hash>.webp and birchseek-image-<n>-<hash>.webp. Before an upload, BirchSeek looks for the file by name, so a retry or a refresh does not upload the same image again. If an upload fails, the post shows the image from its BirchSeek URL.

SEO plugin meta

BirchSeek finds the SEO plugin in your site’s REST index and writes the meta title, the meta description and the focus keyword (the article’s primary keyword):

Plugin How BirchSeek writes it What you must do
Yoast SEO meta._yoast_wpseo_title, _yoast_wpseo_metadesc, _yoast_wpseo_focuskw Nothing for Posts on current Yoast. See below for other post types
Rank Math POST /wp-json/rankmath/v1/updateMeta after the post is written Nothing
All in One SEO The aioseo_meta_data field of the post AIOSEO 4.9.8 or newer. The focus keyword needs AIOSEO 5
SEOPress PUT /wp-json/seopress/v1/posts/{id}/title-description-metas and /target-keywords Nothing

Current Yoast versions open their three fields to REST for the post type only. For a custom post type, or an older Yoast, add this to your theme’s functions.php or a code snippets plugin. Change guide to your post type:

add_action( 'init', function () {
    foreach ( [ '_yoast_wpseo_title', '_yoast_wpseo_metadesc', '_yoast_wpseo_focuskw' ] as $key ) {
        register_post_meta( 'guide', $key, [
            'show_in_rest'  => true,
            'single'        => true,
            'type'          => 'string',
            'auth_callback' => function ( $allowed, $meta_key, $post_id ) {
                return current_user_can( 'edit_post', $post_id );
            },
        ] );
    }
} );

BirchSeek sends only the Yoast keys that your site registers. WordPress refuses a whole post when it gets an unregistered meta key. The connection test tells you when the keys are missing.

The SEO meta is best effort. When the plugin refuses it, the post stays, and the meta description is still on the post as its excerpt.

Schema markup

Turn on Schema markup in the connector to add the article’s JSON-LD to the post as a Custom HTML block at its end. WordPress removes a <script> element posted by any user without the unfiltered_html capability (on a single site, administrators have it), so BirchSeek checks the connected user first and leaves the markup out for anyone else. The setting is off by default. See Schema markup.

Security notes

  • The application password is stored encrypted at rest and is used only against your own site’s REST API, for the calls listed here.
  • The connect window gives the password to the BirchSeek form in your browser. BirchSeek stores it when you save.
  • Revoke it anytime in wp-admin (Users → Profile → Application Passwords → Revoke) and access ends immediately.
  • BirchSeek reads only where publishing needs it: the credential check, the REST index (to find the SEO plugin), the post type’s schema and list, users, a lookup of the post by slug before each publish, the media library by file name, and the categories and tags to resolve your terms.

Troubleshooting

  • rest_cannot_create - the user’s role can’t create posts. Use an Author-or-above account.
  • 401 at connect time - wrong username, or the application password was revoked. Some hosts remove the Authorization header; ask your host to allow it (or enable it in .htaccess).
  • The connect window shows an error or a blank page - a security plugin (for example Hide My WP) blocks wp-admin/authorize-application.php. Allow that path, or enter a password by hand.
  • Categories not applied - the connecting user needs Editor rights to create new categories; existing ones resolve fine for Authors.
  • “cannot set another user as author” - connect as an Editor or Administrator, or choose the connected user.
  • SEO fields empty - read the SEO line of the connection test. For Yoast on a custom post type, add the snippet above.
  • REST API blocked - security plugins (or Cloudflare rules) sometimes block /wp-json/. Allow authenticated requests to /wp-json/.