Issue with WordPress + Divi: HTML published via Make not formatted

Hi everyone,

I’m running into an issue with a Make scenario and I’m looking for some advice.

Here’s my workflow:

  • I retrieve HTML code from Airtable. (simple code with p, H2, strong etc.)

  • I add it into a Create a Post WordPress module via Make.

  • The post is published, but as you can see in the screenshot, it does not match the blog template (Divi).

For context:

  • I’m using the Divi theme and the Divi Theme Builder.

  • If I open the post to edit it in WordPress and just save it without making any changes, magically it is perfectly formatted.

What I’ve already tried:

  • Adding an Update a Post module right after the Create a Post → didn’t fix anything.

Does anyone have ideas on how to make the post correctly formatted right after publishing, without having to open it manually?

Thanks in advance for your help!

If you are using a theme builder plugin, you’ll likely need to use the Wordpress Admin UI to create your post.

This is because the Wordpress modules in Make doesn’t allow you to select the theme or post template type, which is only available from the Admin UI.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

Darn, it’s not convenient if we can’t automate properly…

For context, I tried adding some code that switches a post directly from the default editor to the Divi Builder. But the layout is still the same.

The code:

add_action('save_post', function($post_id, $post, $update) {
    // we only want new posts (not updates) and standard posts
    if ($post->post_type !== 'post' || $update) return;

    // only act if the request is a REST request (Make uses the REST API)
    if (! (defined('REST_REQUEST') && REST_REQUEST) ) return;

    // exit if already enabled
    if ('on' === get_post_meta($post_id, '_et_pb_use_builder', true)) return;

    // enable the Divi Builder
    update_post_meta($post_id, '_et_pb_use_builder', 'on');
}, 20, 3);

There was an error with HTML rendering in v1.6.0 of the Make connector for WordPress.

That was quickly fixed the same day in v1.6.1.

Which version are you using?

Hello David, I use Version 1.6.1

The problem has been there for several weeks while I’ve been testing. Surely about divi theme function. Maybe I should use HTTP instead of the native WordPress module ?

The latest version is now 1.6.3 … but that might not fix the problem.

It could just be a conflict between the Make connector and Divi. Unfortunately we’re not able to test with every WP plugin (and every possible configuration), so conflicts do sometimes crop up.

This is a perennial problem with WP itself, due to the plugin architecture.