WordPress Custom Post Types -


i trying use wordpress custom post types create support ticket system have below , working fine.

add_action( 'init', 'create_support_tickets' );   function create_support_tickets() { register_post_type( 'support_ticket', array( 'labels' => array( 'name' => 'tickets', 'singular_name' => 'ticket', 'add_new' => 'add new', 'add_new_item' => 'add new ticket', 'edit' => 'edit', 'edit_item' => 'edit ticket', 'new_item' => 'new ticket', 'view' => 'view', 'view_item' => 'view ticket', 'search_items' => 'search tickets', 'not_found' => 'no tickets found', 'not_found_in_trash' => 'no tickets found in trash', 'parent' => 'parent ticket' ), 'public' => true, 'menu_position' => 15, 'supports' => array( 'title', 'editor', 'comments', 'thumbnail',  ), 'taxonomies' => array( '' ), 'menu_icon' => plugins_url( 'images/image.png', __file__ ), 'has_archive' => true ) ); 

the code above works not sure how add categories tickets above , want able assign these tickets other staff members wordpress users role of staff.

here nice tutorial wordpress custom post type, each , every points described helps lot in future.

wordpress custom post type

another example here http://blog.teamtreehouse.com/create-your-first-wordpress-custom-post-type suggest follow first one.

cheers ;)


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -