I need to use Custom Post Types and learned how to in this article .
However, this article does not teach you how to insert Custom Post Types into Pages and how to leave <textarea>
in Wysiwyg format.
What I need:
Leave it textearea
in Wysiwyg and still determine the height size height
. Example: 100px
, I do not want it big, because it will be written little, and it's 3 text box.
Remove the main content, or leave only Custom Post Types, remove the textearea that Wordpress already comes by default.
Code functions.php used to include Custom Post Types in Pages:
add_action("admin_init", "admin_init");
function admin_init(){
add_meta_box("credits_meta", "Design & Build Credits", "credits_meta", "page", "normal", "low");
}
function credits_meta() {
global $post;
$custom = get_post_custom($post->ID);
$designers = $custom["designers"][0];
$developers = $custom["developers"][0];
$producers = $custom["producers"][0];
?>
<p><label>Designed By:</label><br />
<textarea cols="50" rows="5" name="designers"><?php echo $designers; ?></textarea></p>
<p><label>Built By:</label><br />
<textarea cols="50" rows="5" name="developers"><?php echo $developers; ?></textarea></p>
<p><label>Produced By:</label><br />
<textarea cols="50" rows="5" name="producers"><?php echo $producers; ?></textarea></p>
<?php
}
I even found the code to insert a text box into Wysiwyg, but how can I adjust the size of the height?
$content = '';
$editor_id = 'mycustomeditor';
wp_editor( $content, $editor_id );