Meta Boxs On Custom Post Types
-
Hey, How can i add meta boxes to a custom post type? i have them on my pages but have no clue how to get it on a custom post type
Here is my code
$post_options = array( 'id' => 'page_options', 'title' => 'Page Options', 'desc' => '', 'pages' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'id' => 'title_1', 'label' => 'Page Specific Options', 'desc' => 'This is a set of custom options for just this page. These are entirely optional, but they bring some extra functionality to pages. Some page templates (Portfolios, Blogs, etc.) may need some of these options filled out to work properly.', 'type' => 'textblock', 'std' => '', 'class' => '', 'choices' => array() ), array( 'id' => 'post_count', 'label' => 'Number of Posts Per Page', 'desc' => 'If this is a page template that uses blog posts, set a number for how many posts you want to show up per page. The default is set to show ALL posts found within the above category(s).', 'type' => 'text', 'std' => '', 'class' => '', 'choices' => array() ), ) ); ot_register_meta_box( $post_options );
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Meta Boxs On Custom Post Types’ is closed to new replies.