• I publish the post via admin->posts->add_new with custom-fields name ‘xkey1’ and value ‘12345’.
    ‘xtest’ function return ‘12345’, but published via xmp-rpc (post + custom-fields), did not return anything.
    all data from the database is ok

    please, I’m going crazy, how to resolve this?

    —————————————
    function xtest( $post_id ) {

    return get_post_meta($postid, ‘xkey1’, $single = true);

    }
    add_action(‘save_post’, ‘xtest’);

The topic ‘xml-rpc custom fields save_post does not return custom-fields value’ is closed to new replies.