To define a new custom post type you need to use the function register_post_type(). This function takes 2 parameters the first being the new name for the post type and the second being a list of arguments to define the behaviour for the post type.
↧