Getting started

Publish posts straight to WordPress: create an application password

If you like, Mocha creates released posts from “Content” directly in your WordPress, with cover image, excerpt and category. You need no plugin, only an application password that you create in WordPress yourself.

TL;DR in 5 steps

  1. Create a separate WordPress user “Mocha” with the role “Editor”.
  2. Generate an application password “Mocha” for it; the password from creating the user is not it.
  3. If application passwords are missing, Wordfence has usually switched them off.
  4. Enter address, username and application password in Mocha under “Content”, “Publishing”, “WordPress”.
  5. From the Marketing plan, with WordPress 5.6 or later and no plugin.

Create a separate user for Mocha

The clearest way is a separate WordPress user just for Mocha, with the role “Editor”. In WordPress you then see for every post that it came from Mocha, and you can block the access at any time without touching your own.

  • Not “Author”: an author may not create categories and may only edit their own posts. If someone on your team changes the author of a post, Mocha can no longer update it.
  • Not “Administrator”: Mocha needs no rights to plugins, design or users.

To create the user, logged in with your own administrator account:

  1. In the left bar, open “Users” and then “Add New User”.
  2. Enter “Mocha” as the username and an email address that belongs to no other user, for example a mailbox of your website. WordPress requires one.
  3. Untick the notification WordPress would send the new user by email. It is not needed.
  4. Choose “Editor” as the role.
  5. Simply leave the password WordPress suggests. It is not the application password and Mocha does not need it.
  6. Click “Add New User”.

Generate the application password

  1. Open “Users”, “All Users” and click “Edit” for the user “Mocha”.
  2. Scroll all the way down to the section “Application Passwords”.
  3. Enter “Mocha” under “New Application Password Name” and click “Add New Application Password”.
  4. WordPress shows the password exactly once: 24 characters in six blocks, like abcd EFGH 1234 ijkl MNOP 5678. Copy it right away.

This is the password you enter in Mocha, not your login password and not the password from creating the user.

The section “Application Passwords” is missing

The most common cause is the security plugin Wordfence. It can switch application passwords off; then the section is missing, and Mocha reports when connecting that application passwords are switched off. To switch them on again:

  1. In the left bar, open “Wordfence” and then “Firewall”.
  2. Open “All Options” and there the section “Brute Force Protection”.
  3. Untick “Disable WordPress application passwords” and save.

Other security plugins have a similar option, often under “Application Passwords” or “REST API”. If the section is missing without a security plugin, your website probably does not run on HTTPS; your host helps then.

Connect Mocha

In Mocha, open “Content” and, in the sidebar under “Publishing”, the page “WordPress”. There you enter:

  • WordPress address: the address of your website with https://, without /wp-admin.
  • Username: “Mocha” or the user you created the application password for.
  • Application password: the copied password, with or without spaces.

If the password does not look like an application password, Mocha says so while you type. With “Connect”, Mocha checks the details at once and then shows the user's name and role. Only what WordPress accepted is stored; the password is kept encrypted at Mocha and never shown again. “Check connection” repeats the check at any time, “Disconnect” deletes the credentials at Mocha. If you change the address, Mocha asks for the password again: it never goes to another address than the one you entered it for.

If WordPress refuses the login, Mocha names the cause, in this order:

  1. No application password: usually the login password was entered, or the password from creating the user. Generate an application password as described above.
  2. Application passwords switched off: usually by Wordfence, see above.
  3. The login does not reach WordPress: sometimes the server strips the credentials. Ask your host whether the “Authorization” header is passed on to WordPress.

Defaults for sending

Below the connection, on the same page, you set under “Defaults for sending” how posts arrive in WordPress:

  • As a draft: the post then waits in WordPress under “Posts” as a draft. You look at it there and publish it yourself. This is the default.
  • Publish at once: the post is then visible on your website. This choice is only there when the user may publish.
  • Default category: optional, from the categories of your WordPress.

With “Save defaults” this applies to “Send to WordPress” under “Posts” and is preselected on a post's page. A post sent before keeps its status in WordPress when it is updated.

Send a post

Release a draft. It then appears under “Posts” as a card. You have two ways:

  • “Send to WordPress” on the card sends the post with the defaults you set on the page “WordPress”.
  • “Edit” opens the post's page. There, in the area “Publish” under “WordPress”, you choose status and category for this post only and click “Send to WordPress”.

Mocha uploads the cover image as the featured image to your media library, and the images of the text too, and creates the text as blocks of the block editor: paragraphs, section headings (H2), subsections (H3), lists, quotes and images. The card then shows the mark “WordPress” or “WordPress (draft)” with a link, the post's page “Published on WordPress” or “Draft in WordPress” with a link into WordPress's editor. If you change the post in Mocha later, “Update in WordPress” updates the same post. If sending fails after images were uploaded, Mocha removes them from the media library again.

An example: a physiotherapy practice sets “As a draft” with the category “Tips” as its default. It releases its post “Back pain when working from home” and clicks “Send to WordPress” under “Posts”. In WordPress it adds a photo from the practice and publishes it on Monday morning.

Frequently asked questions

Is an application password the same as my login password?

No. An application password only works for WordPress's interface, not for logging in with the browser. It always has 24 characters in six blocks. The password WordPress suggests when you create a user is not an application password either. You can revoke the application password at any time without changing any other password. Mocha stores it encrypted and never shows it again.

Which role does the WordPress user need?

We recommend a separate user with the role “Editor”. Mocha needs at least “Author”, because it creates posts and uploads images; “Contributor” does not work because contributors cannot upload images. “Administrator” is not needed.

I cannot find the section “Application Passwords”. What now?

Most often the security plugin Wordfence has switched them off: under “Firewall”, “All Options”, section “Brute Force Protection”, the tick at “Disable WordPress application passwords”. Other security plugins have a similar option, often under “Application Passwords” or “REST API”. Without a security plugin, your website probably does not run on HTTPS; your host helps then.

What happens when I send a post a second time?

Mocha updates the same post in WordPress; there is no duplicate. If you deleted the post in WordPress, Mocha creates a new one. Mocha only uploads the cover image again when it has changed or is missing from the media library.

Do images stay in the media library when sending fails?

No. If creating the post fails after Mocha has uploaded images, Mocha removes them from the media library again. If WordPress does not allow that, Mocha uses these images the next time you send instead of uploading them again.

Does Mocha transfer the meta title and meta description?

Mocha transfers title, text, excerpt, cover image and category. In WordPress, meta title and meta description belong to SEO plugins such as Yoast or Rank Math; copy them there one by one from “Posts” in Mocha.

Ready for your first reviews?

Start for free, no credit card needed. Your form is ready in minutes.

Sign up for free