thatll be what i do if i cant get it figured out, id hope to be able and put something in my functions to allow it,
on Thesis i did this:
//add template metabox to posts
function custom_no_sidebars_add_post_types_metaboxes() {
$args = array(
'public' => true,
'_builtin' => false
);
$output = 'names';
$operator = 'and';
$post_types = get_post_types($args,$output,$operator);
$post_types['post'] = 'post';
foreach($post_types as $post_type => $label) {
add_meta_box( 'custom_no_sidebars_post_type_template_metabox', __('Template Selector'),'custom_no_sidebars_post_type_template_metabox', $post_type,'side','low');
}
}
add_action('add_meta_boxes', 'custom_no_sidebars_add_post_types_metaboxes');
//save data function to store the meta info
add_action('save_post', 'custom_no_sidebars_post_type_save_metadata');
function custom_no_sidebars_post_type_save_metadata ($post_id) {
if ( !wp_verify_nonce( $_POST['custom_no_sidebars_metadata_noncename'], plugin_basename(__FILE__) ))
return $post_id;
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
return $post_id;
if ( !current_user_can( 'edit_post', $post_id ) )
return $post_id;
// OK, we're authenticated: we need to find and save the data
$args = array(
'public' => true,
'_builtin' => false
);
$output = 'names';
$operator = 'and';
$post_types = get_post_types($args,$output,$operator);
$post_types['post'] = 'post';
foreach($post_types as $post_type => $label) {
$data[$post_type] = array(
'_wp_page_template' => ''
);
}
$post_type = get_post_type($post_id);
$options = $data[$post_type];
if ($options) {
foreach($options as $option => $label) {
$value = $_POST[$option];
$current_value = get_post_meta($post_id, $option, $single = true);
if ($value && $value != $current_value) {
$check[$option] = update_post_meta($post_id,$option,$value);
} elseif (!$value && $current_value) {
$check[$option] = delete_post_meta($post_id,$option,$current_value);
}
}
}
return;
}
//template metabox for posts
function custom_no_sidebars_post_type_template_metabox() {
wp_nonce_field( plugin_basename(__FILE__), 'custom_no_sidebars_metadata_noncename' );
$args = array(
'public' => true,
'_builtin' => false
);
$output = 'names';
$operator = 'and';
$post_types = get_post_types($args,$output,$operator);
$post_types['post'] = 'post';
foreach($post_types as $post_type => $label) {
$data[$post_type] = array(
'default' => __('Default'),
'no_sidebars.php' => __('No Sidebars')
);
}
global $post;
$post_type = get_post_type($post->ID);
$keys = $data[$post_type];
if ($keys) {
$current_value = get_post_meta($post->ID, '_wp_page_template', $single = true);
echo '<select name="_wp_page_template" id="_wp_page_template">';
foreach($keys as $key => $label) {
$value = ($key == "default") ? '' : $key;
$selected_template = ($value == $current_value) ? ' selected="selected"' : '';
echo "<option id='$key' value='$value' $selected_template >$label</option>\n";
}
echo '</select>';
echo '<p class="description">'. __('You may choose the template here.') . "
\n";
}
}
so i copy it over to thematic, i also make a full page template via page.php copy and put it in the code up there.. and the template selector DOES appear, but when i select Full Page, nothing changes..
any idea? thanks!
i used
http://wptheming.com/2010/03/custom-page-templates-thematic/
to make the full page width template. uhg im burning myself out again . .probably everyone else too ..