I’ve other call’s with WP_REST_Request and wanted to use one style. As I sad, the first example works ok, I would like to know what is wrong with the second one.
I’ve the same observation (creating post with numeric slug adds suffix -2) in WordPress 6.4.3
thanks al lot for your reply. I don’t look for the most quict & dirty solution. Is there no suitable api for this? Direct inserts of html tags doesn’t seem to be future proof for me. How wordpress inserts the core objects?