I learned how to create custom post types with the following tutorial:
http://sixrevisions.com/wordpress/wordpress-custom-post-types-guide/
This basically consists of adding this code to function.php :
add_action( 'init', 'create_events' );
function create_events() {
$labels = array(
'name' => _x('Events', 'post type general name'),
'singular_name' => _x('Event', 'post type singular name'),
'add_new' => _x('Add New', 'Event'),
'add_new_item' => __('Add New Event'),
'edit_item' => __('Edit Event'),
'new_item' => __('New Event'),
'view_item' => __('View Event'),
'search_items' => __('Search Events'),
'not_found' => __('No Events found'),
'not_found_in_trash' => __('No Events found in Trash'),
'parent_item_colon' => ''
);
$supports = array('title', 'editor', 'custom-fields', 'revisions', 'excerpt');
register_post_type( 'event',
array(
'labels' => $labels,
'public' => true,
'supports' => $supports
)
);
}
The WPML plugin helps you translate messages into different languages. But this option is not displayed in custom message types.
Any suggestions?
source
share