In this article, you will find out how to use OpenAI GPT for automatic generation of WordPress posts without relying on third-party content sources such as RSS feeds. Fortunately, CyberSEO Pro offers multiple ways to accomplish this, and we’ll start by examining the simplest approach. For a quick start, just watch the short tutorial video below.

In the example shown in this video, we demonstrate how to use OpenAI GPT to generate a WordPress post title and article based on your assignment. However, you can also reverse this process and create a title based on a previously generated article (read about it below).

The tutorials also suggests you to use Spintax to describe different topic options for your post title. This approach allows the plugin to randomly select a different header option each time your feed is processed, resulting in a diverse range of texts. In addition, you can use template shortcodes like %xml_tags[]% and %custom_fields[]% to achieve even more impressive results.

In the tutorial above, Pixabay was used to insert images into the generated posts. However, there may be situations where the image retrieved doesn’t match the main theme of your article. In such cases, you can use a custom field to store the keyword you want to use for your image search.

Go to the “Advanced” tab of your feed settings and enter the following line of text into the Custom fields box:

"{food|mountains|rivers|roads|astronautic}"->keyword

Now, modify your post title assignment as follows:

Write an informative article about American %custom_fields[keyword]%

Next, go to the “Image generation” tab and modify the Pixabay query as follows:

%custom_fields[keyword]%

Voilà, the subject of your picture now completely matches the main topic of the article, because the post title, post body and the picture will be related to the same random keyword – “food”, “mountains”, “rivers”, “roads” or “astronautic”.

The assignment processing order

The processing order specified the sequence in which OpenAI GPT processes components of your WordPress post. This option allows you to specify whether the plugin should generate or rewrite the article’s title or body first.

Your content generation strategy hinges on this setting, as you must determine whether to generate the primary article based on the title or craft the article’s title based on its content.

If you select “Title first,” you will need to provide two separate assignments for generating the post title and article body using OpenAI GPT. So they could look like follows:

Title assignment

Come up with a heading for an article about resorts in Indonesia.

Article assignment

Compose an article on the following topic:
%post_title%

Alternatively, if you choose “Article first,” you should create assignments for the title and article body like the following:

Title assignment

Write a creative title for the following article:
%post_content%

Article assignment

Write an article about resorts in Indonesia.

In most instances, the “Article first” option yields more engaging articles, as it allows you to incorporate additional details in the article assignment while ensuring the title accurately reflects the article’s core message. However, the “Title first” option can be useful in specific cases, particularly when fewer tokens need to be passed to OpenAI GPT for processing.

Duplication control

Since all generated posts are unique by their nature, the Check for duplicate posts option must be disabled.

Quotes

The OpenAI GPT Turbo model loves to use double quotes when generating post titles. You may not like them, and you can explicitly ask it not to use them directly in your post title assignment, for example:

Write a creative title for an article about Chinese history, and don’t enclose it in quotes.

If that doesn’t work to you, and it keeps getting twisted, you can use the following PHP snippet, which is guaranteed to remove the quotes from the generated post titles:

if (preg_match('/^"?(.*?)"?$/', $post['post_title'], $matches)) { $post['post_title'] = $matches[1]; }

Source: https://www.cyberseo.net/blog/no-source-gpt-autoblogging/


Leave a Reply

Available for Amazon Prime