function add_custom_post_types() { /* * Create here your custom post types. You can both use the WordPress register_post_type() * function, or the Wordless new_post_type() helper. */ new_post_type(array("singular" => 'bene_confiscato', "plural" => 'beni_confiscati')); // new_post_type("portfolio_work", array('title', 'editor')); }
function custom_posts() { new_post_type('Projects', 'Project', 'projects', 'dashicons-calendar'); }