Title: Default attributes create page
Last modified: August 19, 2016

---

# Default attributes create page

 *  [lukekfreeman](https://wordpress.org/support/users/lukekfreeman/)
 * (@lukekfreeman)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/default-attributes-create-page/)
 * I’m trying to use wordpress pages as the basis of a forum because it has much
   more functionality than comments or bbpress. However, now I am up to the point
   of having an inline reply box or at least link directly to the wordpress page-
   new.php with the default attributes set (i.e. page parent).
 * The site is here:
    [http://www.wheeloftimerp.net/boards/white-tower/](http://www.wheeloftimerp.net/boards/white-tower/)
 * Please let me know if you have any ideas of how to set the attributes (mainly
   the parent page).

Viewing 1 replies (of 1 total)

 *  Thread Starter [lukekfreeman](https://wordpress.org/support/users/lukekfreeman/)
 * (@lukekfreeman)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/default-attributes-create-page/#post-1434086)
 * 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";
   
       	?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Default attributes create page’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [lukekfreeman](https://wordpress.org/support/users/lukekfreeman/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/default-attributes-create-page/#post-1434086)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
