Viewing 3 replies - 1 through 3 (of 3 total)
  • also works in your theme functions.php as plugin ??

    Thread Starter Travis

    (@tjtaylor)

    I pasted the code in my functions.php file and I’m getting the following error with debug on:

    Notice: Undefined index: partners_noncename in /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-content/themes/theme/functions.php on line 71

    Thread Starter Travis

    (@tjtaylor)

    Figured it out. Needed to check it nonce variable isset

    if ( !isset($_POST['my_meta_noncename']) || !wp_verify_nonce( $_POST['my_meta_noncename'], plugin_basename( __FILE__ ) ) )
    	  return;
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add post meta to theme?’ is closed to new replies.