30. Power of the Platform “ WordPress was always designed as a simple CMS for people smart enough to not get mired in the things the CMSes usually get mired in.” Matt Mullenweg
31.
32. “ Template files are the building blocks of your WordPress site. They fit together like the pieces of a puzzle to generate the web pages on your site. Some templates (the header and footer template files for example) are used on all the web pages, while others are used only under specific conditions.” - Stepping into Templates (Codex)
34. Anatomy of a theme Theme File Usage 404.php Invalid URL requests will be served this page archive.php Display template for posts without category styling category.php Display template for categories requests comments.php Included inside display templates to display comments and allow users to add new comments to a post / page. footer.php Put your analytics code here! functions.php A container for functions called in other themes files header.php <head> </head> and usually top-navigation index.php Primary and possibly only page Start simple, design iteratively http://wpcandy.com/articles/the-WordPress-starter-theme-project.html
35. Anatomy of a theme The volume and types of files in any theme will be based on the complexity / variety of designs and the skill of the author to implement those styles. Theme File Usage page.php Display template for pages (non-blog) searchform.php <?php include(TEMPLATEPATH.'/searchform.php');?> sidebar.php Navigation or code included in other display templates. Can be managed through admin via widgets - http://automattic.com/code/widgets/themes/ single.php Display template for individual blog posts style.css Primary css stylesheet [Javascript] Sub-folder index.php Primary and possibly only page
Let's talk about WordPress as a CMS What is a CMS? CMS = Content Management System Tools that provide a workflow for publishing collaborative content for multiple users. * Examples: * Drupal: php / MySQL * Joomla: php / MySQL * Xoops: php / MySQL * Plone: python / various DBs WordPress * open source CMS * originally focused on blogging * but has evolved far beyond those humble beginnings