Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

What's New in WordPress 3.0 (for developers)

2,839 views

Published on

From WordCamp Houston, 2010

Published in: Technology
  • Be the first to comment

What's New in WordPress 3.0 (for developers)

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

×