Custom post type in child theme
-
I am using Thematic WP Framework. I added a custom post type to the child theme functions.php based on https://kovshenin.com/archives/custom-post-types-in-wordpress-3-0/ :
<?php // Fire this during init register_post_type('resort', array( 'label' => __('Resorts'), 'singular_label' => __('Resort'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => false, 'query_var' => false, 'supports' => array('title', 'editor', 'author') )); add_action("manage_posts_custom_column", "my_custom_columns"); add_filter("manage_edit-resort_columns", "my_resort_columns"); function my_resort_columns($columns) { $columns = array( "cb" => "<input type=\"checkbox\" />", "title" => "Resort Title", "description" => "Description", "length" => "Length", "speakers" => "Speakers", "comments" => 'Comments' ); return $columns; } function my_custom_columns($column) { global $post; if ("ID" == $column) echo $post->ID; elseif ("description" == $column) echo $post->post_content; elseif ("length" == $column) echo "63:50"; elseif ("speakers" == $column) echo "Joel Spolsky"; } ?>
But this custom post type is not chown in the backend? What am I missing. i thought data added to child functions.php would be added to the mother functions.php ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom post type in child theme’ is closed to new replies.