- What’s New in 3.0
- User Features
Twenty Ten theme
Menus
Help tab
Unified Updater - Theme Functions
the_shortlink()
get_template_part()
comment_form()
wp_nav_menu() - the_shortlink()
This is the short link.
http://blog.example.com/?p=123
http://wp.me/pZhYe-nl
wp_get_shortlink() - get_template_part()
new: get_template_part(foo.php);
old: include(TEMPLATEPATH.”/foo.php”); - comment_form()
Replaces the entire <form> contents
Markup and labels can be changed using $args array - wp_nav_menu()
wp_nav_menu(“menu=Main”);
wp_nav_menu(“fallback_cb=wp_list_categories”);
in functions.php: add_theme_support(“nav_menus”); - Background Images
add_custom_background(); - New Theme Files
single-content-type.php
author.php
author-id.php
author-nickname.php
category-slug.php - Custom Post Types
register_post_type( ‘course’, array( ‘labels‘ = array( ‘name‘ => ‘Courses’, ‘singular_name‘ => ‘Courses‘ ) ) - Custom Post Loops
query_posts(‘post_type=post,course ’); - Custom Post Feeds
/?feed=rss2&post_type=course
/feed/?post_type=course
/feed/?post_type=post,page,course - Custom Post Type UI
- Listing Post Types
- Post Type Switcher
- Convert Post Types
- Hierarchical Taxonomies
- Definining Taxonomies
register_taxonomy( ‘college’, array(‘course’, ‘post’), ); - Edit Columns
- Feeds
/college/science/feed
/college/science/feed/atom
/?feed=rss2&college=science - Gotchas
Archives are defined for terms
but not for the taxonomy itself (404)
Hierarchical taxonomy URLs are not built like categories (/parent/child) - Permalinks
http://dd32.id.au/files/wordpress/ example-hierarchical-term- links.php - Multisite/Networks
Requirements:
Subdomains: wildcard DNS
Subdirectories: .htaccess - Activating the Network
define(‘WP_ALLOW_MULTISITE’, true); - Gotchas
Main site archives move to /blog
Upload buttons disappear
Themes must be network-enabled
Plugins & apps not made for multi:
XML Sitemaps
iPhone app - Plugins for Multisite
MU Helpers
Domain Mapping - Things That Went Away
Option for global tags
Miscellaneous Settings page
importers (plugins)
What’s New in WordPress 3.0 (for developers)
Reply