diff --git a/ps-rest-api.php b/ps-rest-api.php index 85830d5..ed48e47 100644 --- a/ps-rest-api.php +++ b/ps-rest-api.php @@ -19,7 +19,7 @@ function ps_register_custom_post_type() { 'name' => 'Movies', 'singular_name' => 'Movie' ), - 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ), + 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'custom-fields' ), 'public' => true, 'has_archive' => true, 'rewrite' => array( 'slug' => 'movies' ), @@ -82,7 +82,7 @@ function ps_movie_api_results() { // Set values for our new movies post $new_post = array( 'post_title' => esc_html( $movies->title ), - 'post_content' => '', + 'post_content' => '' .esc_html( $movies->title ). '', 'post_status' => 'publish', 'post_author' => 1, 'post_type' => 'movie',