Can I modify the title field in a custom post type. My type is football players so instead of 'title' I would like there to be these three fields in one line, 'Number', 'First Name', and 'Last Name'. Is this possible?
Well I wanted to customize the write panel for this specific post type that I created. I know that you can customize the write panel I just don't know how. Does anyone know how?
Well I wanted to customize the write panel for this specific post type that I created. I know that you can customize the write panel I just don't know how. Does anyone know how?
You can completely rework the entire write panel, unfortunately I have yet to find a really good tutorial/article that explains it all!
First of all, I want to get it out of a foreach statement so I can Format each textbox in its own way (different widths, two on same line, etc.)
Secondly, I am trying to figure out how to make a second meta box for the next post type.
Third, I am trying to rewrite the permalink to reflect a textbox in my new metabox. In that post type, I got rid of the title field so I need to rewrite the permalink in order for each pots permalink to be unique.
Any help would be great and I will update y'all on anything I can figure out.
/// Add meta box for multiple post types function add() { foreach ($this->_meta_box['pages'] as $page) { add_meta_box($this->_meta_box['id'], $this->_meta_box['title'], array(&$this, 'show'), $page, $this->_meta_box['context'], $this->_meta_box['priority']); } }
// Callback function to show fields in meta box function show() { global $post;
// Use nonce for verification echo '<input type="hidden" name="mytheme_meta_box_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
foreach ($this->_meta_box['fields'] as $field) { // get current post meta data $meta = get_post_meta($post->ID, $field['id'], true);
// Save data from meta box function save($post_id) { // verify nonce if (!wp_verify_nonce($_POST['mytheme_meta_box_nonce'], basename(__FILE__))) { return $post_id; }
Thanks.
http://css-tricks.com/snippets/wordpres ... om-fields/
http://net.tutsplus.com/tutorials/wordp ... om-fields/
You can completely rework the entire write panel, unfortunately I have yet to find a really good tutorial/article that explains it all!
If you find anything, let us know!
First of all, I want to get it out of a foreach statement so I can Format each textbox in its own way (different widths, two on same line, etc.)
Secondly, I am trying to figure out how to make a second meta box for the next post type.
Third, I am trying to rewrite the permalink to reflect a textbox in my new metabox. In that post type, I got rid of the title field so I need to rewrite the permalink in order for each pots permalink to be unique.
Any help would be great and I will update y'all on anything I can figure out.
Thanks.
here is the code:
Oh and can I change "Enter Title Here" in the title box, to "Enter Headline Here" for a specific post type?
I just need a little help implementing it. It looks pretty straight forward, I just need to apply it to one post type instead of all my posts.