-
+
+
+
+
+
+
+ $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order, post_title')); ?>
+
+
+
+
+
+
+
+
+
+
+ID);
+ list_meta($metadata);
+ meta_form(); ?>
+
+
+
use in your theme.'); ?>
+
+
+
+
+
trackbacks and pingbacks.'); ?>
+
+
id, true, 'page' ); // TODO: ROLE SYSTEM
+if ( $post->post_author && !in_array($post->post_author, $authors) )
+ $authors[] = $post->post_author;
+if ( $authors && count( $authors ) > 1 ) {
+ /**
+ * Display page author form fields, when more than one author exists.
+ *
+ * @since 2.6.0
+ *
+ * @param object $post
+ */
+ function page_author_meta_box($post){
+ global $current_user, $user_ID;
+ $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM
+ if ( $post->post_author && !in_array($post->post_author, $authors) )
+ $authors[] = $post->post_author;
?>
+
$authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
+
+
+
+
+