carlofardella
Forum Replies Created
Viewing 10 replies - 1 through 10 (of 10 total)
-
Forum: Fixing WordPress
In reply to: Added suffix like -2,-3 when i add number as a page titlefound this info in trac:
Forum: Fixing WordPress
In reply to: Added suffix like -2,-3 when i add number as a page titleWould this be considered a bug? Should it be submitted?
Forum: Fixing WordPress
In reply to: Added suffix like -2,-3 when i add number as a page titleThanks Wj,
This even occurs with no old or trashed posts, even with auto save turned off and a fresh database!
Forum: Fixing WordPress
In reply to: Added suffix like -2,-3 when i add number as a page titleAnother bump
Forum: Plugins
In reply to: WP File Management – user specific foldersHi Mark,
Did you come right here? I am looking for a plug with the same properties.
Thanks,
CarloForum: Fixing WordPress
In reply to: Added suffix like -2,-3 when i add number as a page titleHi, just bumping this up as I am having the exact same issue!
Forum: Fixing WordPress
In reply to: Maximum number of Custom Post Types – (register_post_type)That is most awesome!
Thanks again
Forum: Fixing WordPress
In reply to: Maximum number of Custom Post Types – (register_post_type)Thanks for your help DB!
Turns out it was the menu position, removed it and viola!
Forum: Fixing WordPress
In reply to: Maximum number of Custom Post Types – (register_post_type)I have even switched 4 and 5 around and the fifth one never displays
Forum: Fixing WordPress
In reply to: Maximum number of Custom Post Types – (register_post_type)Of course.. sorry for the wrong wording!
I dont mean to be cheeky but could you look at the following and let me know if you spot any errors ?? I honestly cannot see it!
add_action('init', 'custom_post_types_register'); function custom_post_types_register() { $args = array( 'label' => __('Info Centre'), 'singular_label' => __('Info Centre'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => array("slug" => "information-centre",'with_front' => true), // Permalinks format 'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add New Info' ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit Info' ), 'new_item' => __( 'New Info' ), 'view' => __( 'View Info' ), 'view_item' => __( 'View Info' ), 'search_items' => __( 'Search Info Centre' ), 'not_found' => __( 'No info found' ), 'not_found_in_trash' => __( 'No info found in Trash' ), 'parent' => __( 'Parent Info' ), 'menu_position' =>__( 20 ), // 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/info-centre-icon.png' ), ); register_post_type( 'info' , $args ); $args2 = array( 'label' => __('Services'), 'singular_label' => __('Services'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => array("slug" => "services",'with_front' => true), // Permalinks format 'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add New Service' ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit Service' ), 'new_item' => __( 'New Service' ), 'view' => __( 'View Service' ), 'view_item' => __( 'View Service' ), 'search_items' => __( 'Search Services' ), 'not_found' => __( 'No service found' ), 'not_found_in_trash' => __( 'No service found in Trash' ), 'parent' => __( 'Parent Service' ), 'menu_position' =>__( 21 ), // 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/services-icon.png' ), ); register_post_type( 'services' , $args2 ); $args3 = array( 'label' => __('Agencies'), 'singular_label' => __('Agencies'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => array("slug" => "agencies",'with_front' => true), // Permalinks format 'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add New Agencies' ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit Agencies' ), 'new_item' => __( 'New Agencies' ), 'view' => __( 'View Agencies' ), 'view_item' => __( 'View Agencies' ), 'search_items' => __( 'Search Agencies' ), 'not_found' => __( 'No agencies found' ), 'not_found_in_trash' => __( 'No agencies found in Trash' ), 'parent' => __( 'Parent Agencies' ), 'menu_position' =>__( 22 ), // 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/services-icon.png' ), ); register_post_type( 'agencies' , $args3 ); $args4 = array( 'label' => __('Contact'), 'singular_label' => __('Contact'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => array("slug" => "contact",'with_front' => true), // Permalinks format 'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add New Contact' ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit Contact' ), 'new_item' => __( 'New Contact' ), 'view' => __( 'View Contact' ), 'view_item' => __( 'View Contact' ), 'search_items' => __( 'Search Contact' ), 'not_found' => __( 'No contact found' ), 'not_found_in_trash' => __( 'No contact found in Trash' ), 'parent' => __( 'Parent Contact' ), 'menu_position' =>__( 23 ), // 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/services-icon.png' ), ); register_post_type( 'contact' , $args4 ); $args5 = array( 'label' => __('Mentoring'), 'singular_label' => __('Mentoring'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => array("slug" => "mentoring",'with_front' => true), // Permalinks format 'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add New Mentoring' ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit Mentoring' ), 'new_item' => __( 'New Mentoring' ), 'view' => __( 'View Mentoring' ), 'view_item' => __( 'View Mentoring' ), 'search_items' => __( 'Search Mentoring' ), 'not_found' => __( 'No Mentoring found' ), 'not_found_in_trash' => __( 'No Mentoring found in Trash' ), 'parent' => __( 'Parent Mentoring' ), 'menu_position' =>__( 24 ), // 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/services-icon.png' ), ); register_post_type( 'mentoring' , $args5 ); }
Thanks!
Viewing 10 replies - 1 through 10 (of 10 total)