Support » Plugins » meta box nonce error and trouble echoing

  • I’m having some trouble adding a meta box to my post editing page.
    I am getting this error on the name of my nonce field:
    Notice: Undefined index: wpfolio_meta_box_nonce in … line 82.

    I have been experimenting with the meta box code a lot – going through tutorials, deleting and renaming functions, ids, etc. Is it possible the nonce authentication is corrupt or confused somehow?

    It seems to be saving the data; when I go to update a post the content I entered is still in the field. But I haven’t been able to echo the fields’ content into the post. I am using this function to echo:

    // Display meta box info in post footer
    function display_metabox_in_post() {
    	echo '<p><?php get_post_meta($post->ID, "_collab", true); ?></p>';
    	echo '<p><?php get_post_meta($post->ID, "_dimen", true); ?></p>';
    }
    add_action('thematic_belowpost', 'display_metabox_in_post');

    But this is all that echoes:

    ID, $field["id"], true); ?>

    Am I missing something obvious? See all of my code here. Thanks!

  • The topic ‘meta box nonce error and trouble echoing’ is closed to new replies.