What’s New in WordPress 3.0 (for developers)

  1. What’s New in 3.0
  2. User Features
    Twenty Ten theme
    Menus
    Help tab
    Unified Updater
  3. Theme Functions
    the_shortlink()
    get_template_part()
    comment_form()
    wp_nav_menu()
  4. the_shortlink()
    This is the short link.
    http://blog.example.com/?p=123
    http://wp.me/pZhYe-nl
    wp_get_shortlink()
  5. get_template_part()
    new: get_template_part(foo.php);
    old: include(TEMPLATEPATH.”/foo.php”);
  6. comment_form()
    Replaces the entire <form> contents
    Markup and labels can be changed using $args array
  7. wp_nav_menu()
    wp_nav_menu(“menu=Main”);
    wp_nav_menu(“fallback_cb=wp_list_categories”);
    in functions.php: add_theme_support(“nav_menus”);
  8. Background Images
    add_custom_background();
  9. New Theme Files
    single-content-type.php
    author.php
    author-id.php
    author-nickname.php
    category-slug.php
  10. Custom Post Types
    register_post_type( ‘course’, array( ‘labels‘ = array( ‘name‘ => ‘Courses’, ‘singular_name‘ => ‘Courses‘ ) )
  11. Custom Post Loops
    query_posts(‘post_type=post,course ’);
  12. Custom Post Feeds
    /?feed=rss2&post_type=course
    /feed/?post_type=course
    /feed/?post_type=post,page,course
  13. Custom Post Type UI
  14. Listing Post Types
  15. Post Type Switcher
  16. Convert Post Types
  17. Hierarchical Taxonomies
  18. Definining Taxonomies
    register_taxonomy( ‘college’, array(‘course’, ‘post’), );
  19. Edit Columns
  20. Feeds
    /college/science/feed
    /college/science/feed/atom
    /?feed=rss2&college=science
  21. Gotchas
    Archives are defined for terms
    but not for the taxonomy itself (404)
    Hierarchical taxonomy URLs are not built like categories (/parent/child)
  22. Permalinks
    http://dd32.id.au/files/wordpress/ example-hierarchical-term- links.php
  23. Multisite/Networks
    Requirements:
    Subdomains: wildcard DNS
    Subdirectories: .htaccess
  24. Activating the Network
    define(‘WP_ALLOW_MULTISITE’, true);
  25. 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
  26. Plugins for Multisite
    MU Helpers
    Domain Mapping
  27. Things That Went Away
    Option for global tags
    Miscellaneous Settings page
    importers (plugins)