Skip to main content
added 13 characters in body
Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

Had the same problem regarding the custom post_type not saving the data. It was due to it failing save_allowed()save_allowed() in basic_meta_box.phpbasic_meta_box.php.

current_user_can('edit_'.$_POST['post_type'],$post_id)current_user_can('edit_'.$_POST['post_type'],$post_id) which with a custom posttypepost type resolves to current_user_can('edit_portfolio',$post_id)current_user_can('edit_portfolio',$post_id) - which fails in wordpress. need to change to a valid capability like edit_others_pagesedit_others_pages or edit_pagesedit_pages.

Had the same problem regarding the custom post_type not saving the data. It was due to it failing save_allowed() in basic_meta_box.php.

current_user_can('edit_'.$_POST['post_type'],$post_id) which with a custom posttype resolves to current_user_can('edit_portfolio',$post_id) - which fails in wordpress. need to change to a valid capability like edit_others_pages or edit_pages.

Had the same problem regarding the custom post_type not saving the data. It was due to it failing save_allowed() in basic_meta_box.php.

current_user_can('edit_'.$_POST['post_type'],$post_id) which with a custom post type resolves to current_user_can('edit_portfolio',$post_id) - which fails in wordpress. need to change to a valid capability like edit_others_pages or edit_pages.

Source Link

Had the same problem regarding the custom post_type not saving the data. It was due to it failing save_allowed() in basic_meta_box.php.

current_user_can('edit_'.$_POST['post_type'],$post_id) which with a custom posttype resolves to current_user_can('edit_portfolio',$post_id) - which fails in wordpress. need to change to a valid capability like edit_others_pages or edit_pages.