Add custom schema to post

I’ve used a custom field and added the data above which works well but isn’t user friendly. Use Custom Post Types and add Meta Boxes to make it user friendly. Here’s a basic example of adding a custom post type: function create_post_type() { register_post_type( ‘car’, array( ‘labels’ => array( ‘name’ => __( ‘Cars’ ), ‘singular_name’ … Read more

Wrong encoding of dynamic block properties problem

Solved myself. The rest response ist fine. Important is not the raw response but the json encoded representation. Couse of my problem war editing the files with vi. VI reencoded the files itself. PHP & JS files need to be encoded as utf8.

Automatically import content to wordpress from a json file

You can use wp_insert_post() to add a new post programmatically. For Example, $my_post = array( ‘post_title’ => wp_strip_all_tags( $json->title ), ‘post_content’ => $json->body, ‘post_status’ => ‘publish’, ‘post_author’ => 1, ‘post_category’ => $json->categories ); // Insert the post into the database wp_insert_post( $my_post ); Your link has expired so I could not see the structure of … Read more