Articles on: Content Generator

How Can I Publish My Article To A WordPress Site?

Before you can publish your article to a WordPress site, you must connect the site to Wordze. If you haven’t done so already, please read this article to learn how. Once the site is connected, you will be able to publish articles to WordPress directly from Wordze.


To publish your article to a WordPress site, click on Title & Description in the top bar of the editor of the Content Generator or Content Editor tool. There is where you can generate a title and description for your article with the help of AI. Once done, proceed to the next step.



Once you have reached the final step, called Publish in the top bar, select an article variation, title, description, slug and featured image (optional). Then, select a WordPress site, author, category (optional), tag(s) (optional), status (Draft or Published), and publish date. Once done, click on the Publish Article button and your article will either be saved as a draft or published, depending on the status you previously selected.




Note that if you are using SEO plugins like Yoast, Rank Math or All in One SEO, you will need to add additional codes to the end of your site's functions.php.


  • For Yoast add the following code to ensure that SEO title, Meta description are updated properly when publishing:


// For Yoast SEO meta field support via the WordPress REST API

function expose_yoast_seo_meta_to_rest_api() {

register_meta('post', '_yoast_wpseo_title', [

'show_in_rest' => true,

'type' => 'string',

'single' => true,

'auth_callback' => function() {

return current_user_can('edit_posts');

},

]);


register_meta('post', '_yoast_wpseo_metadesc', [

'show_in_rest' => true,

'type' => 'string',

'single' => true,

'auth_callback' => function() {

return current_user_can('edit_posts');

},

]);

}

add_action('init', 'expose_yoast_seo_meta_to_rest_api');



  • For Rank Math add the following code to ensure that SEO title, SEO description are updated properly when publishing:


// For Rank Math SEO meta field support via the WordPress REST API

function expose_rank_math_seo_meta_to_rest_api() {

register_meta('post', 'rank_math_title', [

'show_in_rest' => true,

'type' => 'string',

'single' => true,

'auth_callback' => function() {

return current_user_can('edit_posts');

},

]);


register_meta('post', 'rank_math_description', [

'show_in_rest' => true,

'type' => 'string',

'single' => true,

'auth_callback' => function() {

return current_user_can('edit_posts');

},

]);

}

add_action('init', 'expose_rank_math_seo_meta_to_rest_api');


  • For All in One SEO add the following code to ensure that Post title, Meta description are updated properly when publishing:


// For All In One SEO meta field support via the WordPress REST API

function expose_aio_seo_meta_to_rest_api() {

// Register the meta field for posts

register_post_meta( 'post', '_aioseo_title', array(

'show_in_rest' => true,

'type' => 'string',

'single' => true,

'auth_callback' => function() {

return current_user_can( 'edit_posts' );

}

) );


// Register the meta field for posts

register_post_meta( 'post', '_aioseo_description', array(

'show_in_rest' => true,

'type' => 'string',

'single' => true,

'auth_callback' => function() {

return current_user_can( 'edit_posts' );

}

) );

}

add_action('init', 'expose_aio_seo_meta_to_rest_api');

Updated on: 11/07/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!