I figured it out, but still can’t get Custom Fields to work.
Here it is:
Title: <input name="reply_title" type="text" value="" /> <br />
<span style="display:none">Character:<input type="text" name="reply_character" value="" /><br /></span>
Reply:<br />
<textarea name="reply_content" id="reply_content" class="theEditor" type="text" tabindex="1" rows="15" cols="90" /></textarea> <br />
<input type="hidden" name="reply_author" value="<?php
echo $reply_login; ?>" />
Password: <input name="reply_password" type="password" /> <br />
<input name="reply_parent" type="hidden" value="<?php the_ID(); ?>" /> <br />
<input type="submit" value="Post it!"/>
And then the replyprocess.php
<?php
include_once( 'wp-includes/class-IXR.php');
$method_name = "wp.newPage";
$rpc_url = "http://www.wheeloftimerp.net/xmlrpc.php";
$blog_id = 1;
$username = $_POST['reply_author'];
$password = $_POST['reply_password'];
$publish = true;
$custom_fields = array(
"key" => "Character",
"value" => $_POST['reply_character']
);
$post = array(
"title" => $_POST['reply_title'],
"description" => $_POST['reply_content'],
"wp_page_parent_id" => $_POST['reply_parent'],
"custom_fields" => $custom_fields
);
$rpc = new IXR_Client( $rpc_url );
$status = $rpc->query(
$method_name,
$blog_id,
$username,
$password,
$post,
$publish
);
if( !$status ) {
print "Error in RPC request\n";
print_r( $rpc );
exit;
}
print_r( $rpc->getResponse( ) );
print "\n";
?>