Trying to add meta boxes to my admin and found a code here to make them. Made some changes to the code, applied it to my site and the meta boxes are not showing at all, on any post or page types. Code below:
add_action('admin_init');
function admin_init() {
add_meta_box("credits_meta", "Mixtape Info", "credits_meta", "mixtape", "normal", "low");
}
function credits_meta() {
global $post;
$custom = get_post_custom($post->ID);
$dj = $custom["DJ"][0];
$embed = $custom["embed code"][0];
$tracklisting = $custom["tracklisting"][0];
?>;
<label>DJ:</label>
<input name="DJ" value="<?php echo $dj; ?>"/>
<p><label>Embed:</label><br />
<textarea cols="50" rows="5" name="embed code"><?php echo $embed; ?></textarea></p>
<p&><label>Tracklisting:</label><br />
<textarea cols="50" rows="5" name="tracklisting"><?php echo $tracklisting; ?></textarea></p>
<?php
}
Is it something obvious I'm missing? I copied and pasted the example in the link and got the same results.