StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-04-2012, 07:10 PM
jjaycallejas jjaycallejas is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2011
Posts: 154
Default custom post types and custom metaboxes

Hi,

I have a question about custom metaboxes and post types. Is it possible to register metaboxes and have them show on specific post types rather than showing up on specific templates as in:

PHP Code:
$meta_boxes[] = array(
    
'id' => 'contact-information',
    
'title' => 'Contact Information',
    
'pages' => array('page'), // post type
    
'show_on' => array( 'key' => 'page-template''value' => 'template-contact.php' ),
    
'context' => 'normal'//  'normal', 'advanced', or 'side'
    
'priority' => 'high',  //  'high', 'core', 'default' or 'low'
    
'show_names' => true// Show field names on the left
    
'fields' => array( 
If so, how would I go about that?
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Taxonomies vs Categories on Custom Post Types - what makes sense for my site? Travis Hill General Discussion 7 01-25-2012 10:30 PM


All times are GMT -5. The time now is 12:25 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.