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

wp-json how to fetch image link?

i already fix this by using this $data = array( ‘:attachment’ => $record[_embedded][‘wp:featuredmedia’][‘0’][source_url] ); thanks for no person answered my question.

WordPress restrict access to rest only

I’m not sure if this is a proper solution. But finally, I’ve decided to modify the blog theme. <?php function Redirect($url, $permanent = false) { header(‘Location: ‘ . $url, true, $permanent ? 301 : 302); exit(); } Redirect(‘/blog/admin/wp-admin/’, false); ?> So the WordPress website is not accessible at all, but I’m still able to access … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)