simple fixes

Mades some changes to remove errors shown with wp-debug. Also added
group to admin post view.