List custom post types in dropdown
Sorry about that feels a bit weird answering ones own question, but here you go…. Firstly declare the variable: (customcategory) global $userdata; $errors = array(); $title = trim($_POST[‘wpuf_post_title’]); $customcategory = trim($_POST[‘customcategory’]); $content = trim($_POST[‘wpuf_post_content’]); $tags = wpuf_clean_tags($_POST[‘wpuf_post_tags’]); $cat = trim($_POST[‘cat’]); Secondly the array for adding the post: if (!$errors) { $frontend_post = array( ‘post_title’ => … Read more