Viewing 1 replies (of 1 total)
  • Thread Starter igogra

    (@igogra)

    I found a solution.

    The problem was that the new title and content weren’t saved. So I did the following change.

    In the plugin’s folder, in the Postdrafter.php file inside the create_draft function, after this line:

    $post_data = array_intersect_key((array) $parent, $fields);

    I added the following code:

    $post_data['post_title'] = wp_strip_all_tags( $_POST['post_title'] );
    $post_data['post_content'] = $_POST['post_content'];
    $post_data['post_excerpt'] = $_POST['post_excerpt'];
Viewing 1 replies (of 1 total)
  • The topic ‘Doesn't display/save the title and the content post, just the custom fields’ is closed to new replies.