Wordpress Custom Meta Box Not Showing -


trying add meta boxes admin , found code here make them. made changes code, applied site , meta boxes not showing @ all, on 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 obvious i'm missing? copied , pasted example in link , got same results.

<?php function credits_meta() {     global $post;     $custom = get_post_custom($post->id);     $dj = "a";     $embed = "b";     $tracklisting = "c";     ?>     <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  } ?> 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -