HTTP REQUEST to Wordpress Custom Post Type HTML formatting not working

Hi I have created a workflow that pull data from a Wordpress Custom Post Type, I then use perplexity to do additional research on the subject of the post, I then format the return using claude, all of that works great, but when I use HTTP REQUEST to update the final content from all my modification, the post gets updated without the HTML tags, even do during the preview on HTTP REQUEST it shows the HTML code before posting it to wordpress.

What am I missing?

Remember this is a custom post type CPT and I have to use HTTP REQUEST to update it.
I have tried two ways to update the content, both result in the HTML formatting to be removed.


This is the input coming from another node:

This is the HTTP RESQUEST Output after I execute the node:

And this is final draft on Wordpress, as you can see all HTML formatting is gone :

1 Like

I use this one,

it returns the content like this

The process uses the Wordpress node and not the HTTP REQUEST node, I have Custom post type that cannot be updated with the wordpress not “YET”

1 Like

Also I will like to add that I am using WPGeodirectory Theme for this site

I dont think theme matter so much, as you just need to provide in the block editor format, or elementor format etc… watching as not 100 percent sure, my post using that templates formats all okay into Wordpress, hope it helps

Thank you, I will try block editor format now and post back if that works

1 Like

So I tried that and no go, I have elementor and it does not use the block editor

I think there is a bug when posting to custom type posts with the HTTP Request node

Hi what plugin you are using for CPT? ACF, Jetengine?

Neither one, my theme WPGeodirectory creates CPT for their listings, also I tried using Elementor and tried to POST to their meta key _elementor_content and had the same result, even posting to a regular post it doesn’t pass the HTML formatting. I am using the latest version of N8N v 1.93.0 self hosted.
If I try to post this to my content “Hi this is a bolded text
this is a new line
” I will get “Hi this is a bolded text his is a new line” all in one paragraph that can be huge is you are passing a lof of content to the post.

Can you make GET request method for 1 CPT (Try with the formatted value) and pass the result here?

This is the GET results when I pull a CPT from my website:

Is this what you were asking for?

The documentation is very lacking, and it seems you’re directly using this endpoint Posts - GeoDirectory V2 Documentation, correct? What if you target the raw parameter instead of rendered?

I tried both, raw.content and rendered.content
also all 3 at the same time.

Still it strips all the HTML code from the content, I even tried different nodes to render the output before doing a POST or even PUT using HTTP REQUEST

I figured it out, Geodirectory uses post_content field, after changing it to that, then my listings started to take the html code.

For future users of WPgeodirectory. Custom post types CPT need to use post_content in HTTP REQUEST

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.