create Custom HTML block via API
-
Hello. I hope this communique’ finds you in the best of health and spirits.
I intend to create new posts via the WordPress REST API. I have thoroughly reviewed the API documentation here.
I would like the ability to create Custom HTML blocks via the API. For example, consider this page. The map is an iframe that points to an HTML file residing in a publicly available directory. The entirety of the Custom HTML code is:
<div class="container"> <iframe src="https://bwsb.synology.me/wordpress/files/med_map.html" width="50%" height="400" frameborder="0" allowfullscreen="" class="map"></iframe> </div>
How can I create the equivalent of this Custom HTML block via the API?
I’m flexible about where the Custom HTML block appears in relation to the post content. If it would be easier, the code could appear as a comment beneath the main post.
Thank you for reading my inquiry.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.