Automate tasks with WordPress

WordPress is an online, open source website creation tool. It's probably the easiest and most powerful blogging and website content management system (or CMS) in existence today.
https://www.wordpress.com


Triggers

  • wp

    If there's a new Post

    It is triggered every time there is a new blog post.

    • You can apply only to posts that contain one or more specific tags.
    • You can apply only to posts that belong to one or more specific categories.

  • wp

    If page don't exists

Actions

Tutorials


How to connect WordPress to Botize

Guide to obtain the credentials to automate WordPress.


Frequently Asked Questions


The error 'Error 301: permanent redirection response code' occurs

It is possible that the API of your WordPress website is not accessible. One way to check this would be to go to https://DomainName.com/wp-json/wp/v2/posts/?per_page=1 and see if you receive a response in JSON format, which would mean that the API is enabled correctly.

You may need to check your server's .htaccess and wp-config.php files and look for any rule that might be disabling API access.

The error 'rest_invalid_param. Invalid parameter(s): status' occurs

The error 'rest_invalid_param. Invalid parameter(s): status' in WordPress can appear for two reasons.

  • 1. User with insufficient permissions.
    One of the reasons is related to the user permissions. The user type selected to access the API doesn't have permissions to read, modify, or create entries with the selected status type (for example, 'private').

    In your WordPress admin panel, change the user type to one with sufficient permissions.

  • 2. Incomplete .htaccess file
    Another reason why the error 'rest_invalid_param. Invalid parameter(s): status' may appear is due to an incorrect configuration of the .htaccess file that is preventing authentication requests to the WordPress REST API. To resolve this issue, edit the .htaccess file on your WordPress server and ensure the following are present to enable the authorization header in the WordPress REST API:

    RewriteEngine On
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]


    To edit the .htaccess file, you can access it through your web server control panel or via an FTP client. Make sure to backup the file before making any changes.

Common Errors


Error: rest_cannot_create. Lo siento, no tienes permisos con este usuario para crear entradas.

The 'rest_cannot_create' error in WordPress can occur for two reasons.

  • 1. Insufficient permissions for user.
    One of the reasons is related to user permissions. The type of user selected to access the API does not have permission to create new entries on the page. For example, the 'Subscriber' user will not have permission to create new entries, while the 'Editor' or 'Administrator' users will have permission.

    To resolve this, change the user type in your WordPress admin panel to one with sufficient permissions.

  • 2. Incomplete .htaccess file.
    Another reason why the 'rest_cannot_create' error may appear in WordPress is due to incorrect configuration of the .htaccess file, which may be blocking REST API requests. To resolve this problem, edit the .htaccess file on your WordPress server and check that the following lines are present to enable the authorization header in the WordPress REST API:

    RewriteEngine On
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]


    To edit the .htaccess file, you can access it through your web server control panel or via an FTP client. Make sure to back up the file before making any changes.

  • 3. The username does not match the name of the application.
    When creating the application password, indicate the same name as the WordPress username.