Skip to content

Integrations

This page shows you how to connect Wraith Scribe with publishing platforms so you can conveniently and automatically publish tons of articles.

Wordpress

This section shows how to connect and configure your accounts with Wordpress.

Step 1: Installation

  1. Follow instructions below to install Yoast SEO on your Wordpress account. Skip if you've already got Yoast SEO on your Wordpress.

  2. Follow instructions here to create an application password for Wraith Scribe. If you're making a dedicated Wordpress user account for Wraith Scribe, please make sure to set the role as either 'admin' or as 'SEO manager,' otherwise Wraith Scribe won't have permission to upload meta descriptions.

    NOTE: The "SEO manager' role is only available once you've installed Yoast SEO in the previous step.

  3. Copy the below code in your functions.php file in your Wordpress. If you don't know how to find it, see the YouTube video below:

    // XML-RPC support for Yoast SEO
    add_action( 'init', function() {
          register_meta( 'post', '_wp_attachment_image_alt', 'string', '__return_true' );
    });
    
    // Custom Rest API to piggy back Yoast SEO.
    function update_yoast_meta_desc($request_data) {
        $post_id = $request_data['id'];
        $meta_desc = $request_data['description'];
    
        if (empty($post_id) || empty($meta_desc)) {
            return new WP_Error('invalid_data', 'Missing post ID or description', array('status' => 400));
        }
    
        update_post_meta($post_id, '_yoast_wpseo_metadesc', $meta_desc);
    
        return array('status' => 'success');
    }
    
    function register_yoast_meta_desc_route() {
        register_rest_route('custom-yoast/v1', '/update-meta-desc/(?P<id>\d+)', array(
            'methods' => 'POST',
            'callback' => 'update_yoast_meta_desc',
            'args' => array(
                'id' => array(
                    'validate_callback' => function($param, $request, $key) {
                        return is_numeric($param);
                    }
                ),
                'description' => array(
                    'required' => true,
                ),
            ),
        ));
    }
    
    add_action('rest_api_init', 'register_yoast_meta_desc_route');
    

    Step 2: Connecting Wraith Scribe to your Wordpress

    Go to our integrations page here and enter your:

    • Wordpress URL (with https:// in front)
    • The Wordpress username or email you want to connect to Wraith Scribe with
    • Your application password that you set up in step 1.

    Then, click the ADD / UPDATE button.

    NOTE: if you already have a Wordpress account of the same url and username, pressing the ADD / UPDATE button updates the password. Otherwise, it creates a new Wraith Scribe <-> Wordpress connection.

    Step 3: Account configuration

    Once you've connected your account, you can check off the TODO items if you've completed step 1 above. After that, there are 2 buttons associated with each of your Wordpress accounts:

    • DELETE - Deletes the Wordpress connection. You may want to do this if you had a typo in your screenname.
    • CATEGORIES - Click this to show/hide your categories configuration. Should be auto-populated with your current categories from your Wordpress account. The AI will pick 1 (maybe 2) most relevant category(ies) when it generates a blog for you. You should leave this untouched unless you want to:
      • Restrict the AI to a subset of your Wordpress categories
      • Add new categories for the AI to pick from
      • Have the AI make up categories (this behavior is triggered if you delete all the categories, or if your Wordpress site has no categories to begin with)