How to Generate WordPress Posts using Generative AI

In this tutorial, we will show you step by step how to use AI to generate WordPress posts quickly and easily. If you want to get the most out of generative AI for your WordPress blog, this post is for you. We will see how to write blog posts using artificial intelligence.

Never before has writing content for your WordPress blog been so easy and fast. Generative artificial intelligence has come to transform the creation of written content. However, the process of generating posts is tedious if you don’t have the necessary tools.

That’s why we’ve created WP Sheet Editor – AI, an AI assistant for WordPress, which allows you to connect with multiple AI providers and LLMs and integrate the use of generative AI into WP Sheet Editor spreadsheets. You can easily generate or edit content using your favorite language model. You can easily generate or edit content using your favorite language model. For example, you can generate post content based on the title, optimize your existing posts for search engines, etc.

What you need to generate WordPress posts with AI

In order to generate and edit WordPress content using AI in WP Sheet Editor spreadsheets, you need this:

1- WP Sheet Editor – Post Types

This plugin allows you to view and manage your WordPress posts in an intuitive spreadsheet. It has advanced search, bulk edit, export, and import tools.

2- WP Sheet Editor – AI

WP Sheet Editor – AI is a WordPress AI assistant tool that allows you to connect with your favorite AI providers and integrate the use of generative AI to every WP Sheet Editor spreadsheet. You can easily create and edit WordPress content in bulk with just a few clicks.

3- External API provider

The AI functionality in WP Sheet Editor relies on an external API like OpenAI, OpenRouter, etc. You’ll need an account with the provider and an API key to connect.

WP Sheet Editor – AI is compatible with these AI providers:

  • Open AI for text and images (more info here)
  • OpenRouter (more info here)
  • Any other provider that uses the same format as OpenAI.

Follow this guide to learn how to set up AI providers in WP Sheet Editor – AI.

Once you’ve set up everything, it’s time to start generating WordPress posts for your blog using artificial intelligence. Here are two options:

Option 1 – Generate complete WordPress posts with AI

The first thing we need to do is open the WordPress posts spreadsheet by going to WP Sheet Editor > Edit posts. You’ll see your existing WordPress posts displayed on the spreadsheet.

ai-generate-wordpress-posts

Generating post titles, content, and other fields with AI

Now go to Add new > Add rows with AI. This tool allows you to create new posts, pages, or entries for a specific custom post type created with plugins like Advanced Custom Fields, PODs, etc.

generate wordpress posts with ai

Once you’re in the Add rows with AI tool, you need to select these values:

  • How many rows do you want to add: Enter the number of posts you want to create.
  • What columns do you want to autofill with the AI: Here you can select all the fields of your posts in which you want AI content to be created. For example, you can select Title, Content, Excerpt, SEO Title, SEO Description, etc. You can even select the Featured Image field to automatically generate the image of your post.
  • Prompt: You can try, customize and use this prompt to generate WordPress posts with artificial intelligence:
Generate blog posts about [this topic] including the following details:
Title: Write a compelling and SEO-friendly blog title.
Content: Provide the full blog post content formatted in clean HTML for use in the WordPress Classic Editor. Begin with an engaging introductory paragraph without using a heading tag. Use appropriate heading tags (<h2>, <h3>, etc.), paragraphs (<p>), and lists (<ul> or <ol>) to structure the content. Avoid using overarching tags like <html>, <body>, <header>, or <footer>. Ensure the content is optimized for SEO and engaging for readers.
Excerpt: Summarize the blog post in 1–3 sentences, ensuring the summary is clear, concise, and enticing.
SEO Title: Create a title specifically optimized for search engines, incorporating relevant keywords.
SEO Description: Write a meta description (155–160 characters) summarizing the post, ensuring it is keyword-rich and compelling to increase click-through rates.
  • Do you want to set default values for the other columns: You can set fixed values for the fields that won’t be generated by the AI. For example, you can set default status, category, etc.
  • Once you’re ready to generate your WordPress posts, you need to click on Create the rows.

generate wordpress posts with ai

Once the generation process is complete, you’ll see your newly added posts in the spreadsheet.

generate wordpress posts with ai

Generating featured images with AI

The plugin allows you to add images if you have previously configured a model for image generation. We did not generate the post images when generating the posts because we have configured the image generation to be based on the Post Excerpt to save on the use of AI credits. By default, the plugin takes context from columns with content. But you can change that.

Here’s how you can configure the image generation prompt:

  1. Go to Settings > Advanced settings.
  2. Go to AI > Prompt template for image generation in cells and add a short prompt like this: Generate an image based on the $post_excerpt$. You can use any other field as context for image generation instead of post excerpt.
  3. Click on Save.

ai-generate-wordpress-posts

Now you’re ready to generate images, so you need to go to the Featured Image column and add this short prompt: ai:image

ai-generate-wordpress-posts

The image generation will start and be completed within some seconds.

ai-generate-wordpress-posts

Once your image has been generated, you can hover over the image in the cell and preview it.

generate wordpress posts with ai

This is the easiest way to generate WordPress posts. You can generate content for any theme, as many posts as you want, including images.

Just keep in mind that you have to control the cost of using AI to not exceed the limits of your budget.

Option 2 – Generate WordPress posts based on post titles

If you already have a list of titles for your WordPress posts, you can also generate the content, excerpt, SEO title and description, and any other fields for your posts. You can even use the AI chat within the WordPress dashboard to generate titles for your blog posts.

Optional: Generate post titles using the AI chat on WordPress

Go to WP Sheet Editor > AI > Chat and click on the Add New button.

Ask the AI chat to generate a certain number of post titles about any specific topic.

ai-generate-wordpress-posts

The AI chat will generate the post titles you have requested.

generate wordpress posts with ai

Optional: Set up global prompts to generate post content, excerpt, SEO metadata, etc.

Although you can enter full prompts in WP Sheet Editor cells, you can completely simplify content generation and editing by using global prompts. This way, you will only have to type prompts once and then just use a shortcut like this:

ai:prompt-slug

To add global prompts, go to WP Sheet Editor > AI > Settings > Prompts, click on Add New and complete this info:

  • Name: Add a name that is easy to remember.
  • Prompt: Add the prompt text here.

Once you’ve added your global promots, click on Save.

ai-generate-wordpress-posts

Once you save your promts, they will automatically generate a prompt slug that you can use as a prompt shortcut in the spreadsheet cells. To do this, you just need to type ai: followed by the prompt slug, like this: ai:post-blocks.

ai-generate-wordpress-posts

Here we share some prompts that might be useful for generating post content based on the title, post excerpts summarizing the post content in a specific number of words, and SEO metadata.

Note: Don’t forget that you should test these prompts and customize them according to your needs. They are just examples that could simplify this process.

Prompt to generate post content for the Gutenberg editor

You can use this prompt to generate content for your WordPress posts if you already have post titles in WP Sheet Editor.

Write a blog post based on the title $post_title$. Begin the post with an engaging introductory paragraph and avoid starting with a heading tag. Ensure the content is SEO-optimized, engaging, and properly formatted.
Format the content using valid Gutenberg block syntax for WordPress:
Paragraph block:
<!-- wp:paragraph -->
<p>Your paragraph text here.</p>
<!-- /wp:paragraph -->
Heading blocks with specific levels:
For example, to generate h2:
<!-- wp:heading {"level":2} -->
<h2 class="wp-block-heading">Your H2 heading text here.</h2>
<!-- /wp:heading -->
You can generate headings with other levels.
Unordered list block:
<!-- wp:list -->
<ul>
<li>Your first item here.</li>
<li>Your second item here.</li>
</ul>
<!-- /wp:list -->
Avoid using overarching tags like <html> or <body>, as they are not needed. The content should be formatted for direct insertion into WordPress and fully compatible with the Gutenberg editor.

Prompt to generate post content for the WordPress Classic Editor

You can use this prompt to generate content for your WordPress posts if you already have post titles in WP Sheet Editor.

Write a blog post based on the title $post_title$. Begin the post with an engaging introductory paragraph and avoid starting with a heading tag. Ensure the content is SEO-optimized, engaging, and formatted using clean HTML. Use the following structure for the post content:
You can generate these tags:
Paragraphs <p>
Headings <h2>, <h3>, etc.
Unordered Lists <ul>
Ordered Lists <ol>
Avoid using overarching tags like <html>, <section>, <body>, <header>, or <footer> since WordPress handles these automatically. The content should be ready for direct insertion into the WordPress Classic Editor.

Prompt for generating post excerpt for WordPress posts

Generate a clear and concise post excerpt summarizing the $Content$ in 2 sentences or approximately 30 words, making it engaging and informative.

Prompt for generating SEO title for WordPress posts

Generate a short, SEO-friendly title that includes the $SEO Keyword$, is optimized for search engines, and stays within 50-60 characters.

Prompt for generating SEO description for WordPress posts

Generate a concise, SEO-friendly meta description that includes the $SEO Keyword$, clearly explains the $Content$, and stays within 150-160 characters.

Generate posts based on post titles

Whether you have saved global prompts or are planning on using full prompts in spreadsheet cells, you can start generating WordPress posts with AI based on the post titles.

Go to WP Sheet Editor > Edit posts, and you’ll see all existing posts displayed in the spreadsheet.

ai-generate-wordpress-posts

In this example, we have prepared 10 post titles, so we will add 10 rows in the spreadsheet.

To do this, just enter the number of rows you want to generate and click on Add new.

ai-generate-wordpress-posts

As you can see, we have generated 10 empty rows in the spreadsheet.

ai-generate-wordpress-posts

Now we need to paste the post titles in the rows we have generated and click on Save.

ai-generate-wordpress-posts

a) Generate post content

Now we are going to generate the content of our posts using one of our global prompts. For this, we need to go to the Content column and add the prompt shortcut (ai:prompt-slug) in the cells where we want to generate the content.

In this case, we are going to generate content for the Gutenberg editor, so we will use the prompt we shared above for that purpose.

We saved the prompt with the name Post Blocks, so the prompt slug is post-blocks. Therefore, we will add this shortcut in the cells where we want to generate content:

ai:post-blocks

generate wordpress posts with ai

The AI will generate the content for your first post.


ai-generate-wordpress-posts

If you Save the changes and click on the Edit button, you’ll see the Gutenberg editor displayed on a popup.

ai-generate-wordpress-posts

As you can see, the content has been generated using Gutenberg blocks.

generate wordpress posts with ai

You can paste the same prompt/prompt shortcut in multiple cells to generate content in bulk for your WordPress posts.

generate wordpress posts with ai

As you can see, we have generated content for several posts based on the title. Now we need to Save the changes.

ai-generate-wordpress-posts

b) Generate post excerpt summarizing post content

Now you can summarize the post content to generate post excerpts using AI. For this, you can use the pre-saved prompt or using a custom prompt in the spreadsheet cell. For example, we can addd this prompt in the excerpt cells:

ai:summarize the $Content$ in 30 words

ai-generate-wordpress-posts

The AI will start working to generate your post excerpt.

generate wordpress posts with ai

You can paste the same prompt or prompt shortcut in multiple cells to generate post excerpts in bulk using AI.

As you can see below, we have generated post excerpts for all the posts we have just created.

ai-generate-wordpress-posts

c) Generate SEO metadata with AI

You can also generate SEO metadata like SEO title, SEO description and SEO keyword. You can use the prompts we have shared with you above.

d) Generate featured images with AI

The plugin allows you to add images if you have previously configured a model for image generation. We have configured the image generation to be based on the Post Excerpt to save on the use of AI credits. By default, the plugin takes context from columns with content. But you can change that.

Here’s how you can configure the image generation prompt:

  1. Go to Settings > Advanced settings.
  2. Go to AI > Prompt template for image generation in cells and add a short prompt like this: Generate an image based on the $post_excerpt$. You can use any other field as context for image generation instead of post excerpt.
  3. Click on Save.

ai-generate-wordpress-posts

Now you’re ready to generate images, so you need to go to the Featured Image column and add this short prompt: ai:image

generate wordpress posts with ai

The image generation will start and be completed within some seconds.

ai-generate-wordpress-posts

Once your image has been generated, you can hover over the image in the cell and preview it.

generate wordpress posts with ai

You can continue generating AI content for your WordPress posts by adding prompts in spreadsheet cells.

Optional – Generate AI content in bulk

If you do not want to do all this in the spreadsheet cells, you can use the Bulk Edit tool.

For example, you can manually select all the new rows you have created that already contain the title of the post. Then, open the Bulk Edit tool.

ai-generate-wordpress-posts

Now you can run both global and custom AI prompts on any field of your WordPress bulk in bulk. In this example, let’s see the values you need to select in order to generate post content based on the post titles:

  • Select the rows that you want to update: Edit the rows that I selected manually in the spreadsheet
  • What field do you want to edit: Content
  • Select type of edit: Here you have at least two options:
    • If you will use a global prompt, you’ll see all global promtps listed as AI command: Prompt name. Select the one you want to use.
    • If you will use a custom prompt, select AI Prompt and you’ll need to enter the prompt text.
  • AI Provider: Select the AI provider that you want to use to complete this task.
  • You can click on Preview button to preview the result before saving the changes.
  • Click on Execute Now once you’re ready.

generate wordpress posts with ai

You can use the bulk edit to generate content for any field of your WordPress posts.

Transform your WordPress content creation with AI

Generating WordPress content with AI has never been easier. WP Sheet Editor – AI is your perfect assistant to generate WordPress posts, pages, or posts for any other custom post type generated by third-party plugins. You can generate content for any field, including custom fields.

Do you need help?

You can receive instant help in the live chat during business hours, or you can contact us and we will help you via email.