Getting Started With WordPress Development

  • CategoryTechnology

  • View7738

Report
  • 1.Intro To WordPress DevelopmentKenny Younger (@kenny)&Andy Brudtkuhl (@abrudtkuhl)
  • 2. What does WordPress look like to the users?Let’s take a look!
  • 3. Database
  • 4. Database SchemaSource: SchemaBank.com
  • 5. File Structure
  • 6. /wp-admin/wp-content/plugins/Each plugin usually has its own directorythemes/Each theme has its own directoryuploads/Created on first upload (default location)wp-includes/wp-config.php
  • 7. wp-config.phpdefine('WP_ALLOW_MULTISITE', true);
  • 8. Debugging made easyDebugging flags added to wp-config.php:define( 'WP_DEBUG', true );define( 'SCRIPT_DEBUG', true );define( 'SAVEQUERIES', true ); $wpdb->queries“All” hook:add_action( 'all', create_function( '', 'var_dump( current_filter() );' ) );Core Control Plugin: http://wordpress.org/extend/plugins/core-control/Dump Environment Plugin:http://wordpress.org/extend/plugins/dump_env/Source: http://www.andrewnacin.com/2010/04/23/5-ways-to-debug-wordpress/
  • 9. WordPress ThemesWhat are themes? A way to skin WordPress
  • 10. What’s In A WordPress Theme?WordPress themes are a combination of PHP, CSS, and image filesRequirements:HTMLCSSSome PHP
  • 11. Anatomy Of A WordPress Theme
  • 12. Theme StructureIndex.phpincludes header.phpIncludes sidebar.phpIncludes footer.php
  • 13. Standard Theme ArchitectureHomepageindex.phphome.phpSingle Postsingle.phpPagepage.phpCategorycategory.phparchive.php
    • Tags
  • 14. tag.php
  • 15. Search Results
  • 16. search.php
  • 17. 404
  • 18. 404.php
  • Description
    A presentation from Iowa Code Camp 2010 by Kenny Younger (@kenny) and Andy Brudtkuhl (@abrudtkuhl)