Divi Tutorial: How to rename projects

/ * New CPT, slug and Divi taxonomies * /

function child_et_pb_register_posttypes () { $ labels ] = array ( 'add_new' = > __ ( 'Add new' 'Divi' [19659024] )

'add_new_item' = > __ ( 'Add new thing' 'Divi' )

'all_items' = > __ ( ' All things' 'Divi' )

'edit_item' = > __ [19659004] ( 'Edit thing' 'Divi' ) [1 9659022] 'menu_name' = > __ ( 'Things' 'Divi' )

'name' = > __ ( 'Things' 'Divi' ] )

'new_item' = > __ ( 'New thing' ] 'Divi' )

'not_found' = > __ ( 'There is nothing ' ' Divi ' )

' not_found_in_trash ' = > __ ( 'There is nothing in the bin' 'Divi' ) [19659004]

'parent_item_colon' = > '' [19659000]

'search_items' = ]> __ ( 'Search for things' 'Divi' )

'singular_name' = > __ ( 'Thing' 'Divi' )

' view_item ' = > __ ( ' See thing ' ' Divi ' ) [19659022] ) ;

$ args = array (

'can_export' = [19659014]> true

'c " = > 'post'

'has_archive' = > true [19659000]] ,

'hierarchical' = > false [19659000]

'labels' = > [19659024] $ labels

'menu_icon' = > 'dashicons-images-alt'

] 'menu_position' = > 5

'public' = ]> true

'publicly_queryable' = > true

'query_var' = > true [19659000]

'show_in_nav_menus' = > true [19659004]

'show_ui' = > true [19659000]

'rewrite' = > apply_filters ( 'et_project_posttype_rewrite_args' array (

'feeds' = > true [19659000]

'slug' = > 'things'

'with_front' = > false

) ) [19659004]

'supports' = > array ( 'title' 'publisher' , 'thumbnail' 'excerpt' 'comments' 'revisions' 'custom-fields' [19659024] )

) ;

register_post_type ( 'project' apply_filters ( 'et_project_posttype_args' $ args ) ) ;

$ labels = array (

'name' = > _x ( 'Categories' 'Category name of the thing' 'Divi' [19659004])

'singular_name' = > _x ( 'Category' 'Name in the singular of the category of the thing ' ' Divi ' )

' search_items' = > __ ( 'Search for categories' 'Divi' )

'all_items' [19659014] = > __ ( 'All categories' ' Divi ' )

' parent_item ' = > __ ( ' Top Category ' ' Divi ' ) [19659022] 'parent_item_colon' = > __ [19659004] ( 'Top category:' 'Divi' )

'edit_item' = ]> __ ( 'Edit category' 'Divi' )

'update_item' = > __ ( 'Update category' 'Divi' )

'add_new_item' = > __ ( 'Add new category' 'Divi' ) ,

'new_item_name' = > __ ( 'Name of the new category' 'Divi' [19659024] )

'menu_name' [19659] 024] = > __ ( 'Categories' 'Divi' )

[19659004]) ;

register_taxonomy ( 'project_category' array ( 'project' ) ] array (

'hierarchical' = > true

'labels' = > $ labels

'show_ui' = > true [19659000] ,

'show_admin_column' = > true

'query_var' = > true [19659004]

) ) ;

$ labels = array (

' name ' = > _x ( ' Tags ' ' Name tag of the thing ' ' Divi ' )

' singular_name ' = > _x ( ' Label ' , 'Name in singular of the tag of the thing' 'Divi' )

'search_items' ] = > __ ( 'Search tags' ' Divi ' )

' all_items ' = > __ ( 'All tags' 'Divi' )

'parent_item' = > __ ( 'Top label' 'Divi' )

'parent_item_colon' = > [19659003] __ ( 'Top label:' 'Divi' )

'edit_item' [19659014] = > __ ( 'Edit label' 'Divi' )

'update_item ' = > __ ( ' Update tag ' ' Divi ' )

] 'add_new_item' = > __ [19659004] ( 'Add new tag' 'Divi' )

'new_item_name' = ]> __ ( 'Name of the new label' 'Divi' )

'menu_name' = > __ ( 'Labels' 'Divi' )

[19659004]) ;

register_taxonomy ( 'project_tag' array ( 'project' ) [19659004] array (

'hierarchical' = > false

'labels' ] = > $ [1965900] 8] labels

'show_ui' = > true

'show_admin_column' = ]> true

'query_var' = > true

) ]) ;

$ labels = array (

'name' = > [19659003] _x ( 'Designs' 'General name of design type' 'Divi' ) [19659022] 'singular_name' = > _x ( 'Design' 'Unique name of the design type' [19659004] 'Divi' [19659024] )

'add_new' = > _x ( 'Add new' [19659012] 'Layout item' 'Divi' )

'add_new_item' = > __ ( 'Add new design' 'Divi' )

'edit_item' = > __ ( 'Edit design' 'Divi' )

'new_item' [19659024] = > __ ( 'New design' 'Divi' )

[19659023] 'all_items' = > [1 9659003] __ ( 'All designs' 'Divi' )

'view_item' ] = > __ ( 'View design' 'Divi' )

'search_items ' = > __ ( ' Search Designs' 'Divi' )

] 'not_found' = > __ ( 'There is nothing' 'Divi' )

'not_found_in_trash' = > __ ( 'There is nothing in the bin' 'Divi ' )

' parent_item_colon ' [19659014] = > ''

) ;

$ args = array (

'labels' = > $ labels

'public' = > false

'can_export' = > true

'query_var' = > false [19659000]

'has_archive' = > false

'capability_type' = > 'post'

'hierarchical' [19659014] = > false

'supports' = > array ( 'title' [19659004] 'editor' 'thumbnail' 'excerpt' 'comments' 'revisions' [19659004] 'custom-fields' )

) ;

register_post_type ( 'et_pb_layout' apply_filters ( 'et_pb_layout_args' $ args ) ) ;

}

function remove_et_pb_actions () {

remove_action ( 'init' [19659012] 'et_pb_register_posttypes' 15 ) [196590] 04];

}

add_action ( 'init' 'remove_et_pb_actions' ) ;

add_action ( 'init' 'child_et_pb_register_posttypes' 20 ) ;

Custom post types for humans

One of the most interesting possibilities when using WordPress as CMS is the custom entry types or custom post types one of the News from WordPress 3.0 .

It's not really difficult to create this type of custom entries and define parameters for them but what would you think of having a simple administration interface to create them at once? Click [?great right? Well, you can do it.

Custom Post Type UI is a plugin that offers exactly that, creating custom entry types without the need to touch or a line of code in the file functions.php . You install it, you activate it and you create and configure your types of personalized entries, it's that simple, you just need WordPress 3.0 .

But not only that, but it also allows you to get another click of the important novelties of WordPress 3.0, the personalized taxonomies, just as easily as with the personalized entries.

This video explains how to do it, although it has no complications …