Successfully reported this slideshow.
Your SlideShare is downloading. ×

What's New in WordPress 3.0 (for developers)

Ad

What’s New in 3.0

Stephanie Leary
     @sleary
  sillybean.net

Ad

User Features
•   Twenty Ten theme
•   Menus
•   Help tabs
•   Unified Updater

Ad

Theme Functions
•   the_shortlink()
•   get_template_part()
•   comment_form()
•   wp_nav_menu()

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Loading in …3
×

Check these out next

1 of 38 Ad
1 of 38 Ad

More Related Content

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

Editor's Notes






  • Arguments are: fields, comment_field, must_log_in, logged_in_as, comment_notes_before, comment_notes_after, id_form, id_submit, title_reply, title_reply_to, cancel_reply_link, label_submit



  • This is a simple example. You can also specify which features your post type should support: title, editor, excerpt, revisions, post author, categories/tags/other taxonomies




























×