SlideShare a Scribd company logo
An Introduction To
                   WordPress Development
                         by John Hawkins




Monday, October 15, 12
I’m John

                         I run 9seeds.com / WordPress development

                         I speak at WordCamps nationally

                         I started the Vegas WordPress group (260+)

                         I’ve got 1 wife, 2 kids, 1 cat, 3 dogs, self-
                         diagnosed ADD and OCD. SQUIRREL!



Monday, October 15, 12
The Misconception
                         About WordPress



Monday, October 15, 12
WordPress is
                         Just For Blogging



Monday, October 15, 12
That is...
                         Wrong

                         Not true

                         Complete BS

                         Erroneous

                         False

                         All of the above


Monday, October 15, 12
What is WordPress

                         A content management system

                         An open source project

                         Created by and for the community

                         Free to use for anything from a personal
                         blog to a Fortune 500 web site



Monday, October 15, 12
.com vs .org
                         .com is a service     .org is downloadable
                         provided by a For     software you can use
                         Profit company         on any server

                         .com doesn’t allow    .org allows unlimited
                         install of your own   freedom to do as you
                         plugins / themes      wish

                         .com is updated for   .org requires you
                         you automatically     update the software
                                               yourself


Monday, October 15, 12
Why I Use WordPress


                         70,000,000+ sites = big pool of clients

                         Easy to use for end users

                         Helpful community / access to support

                         Can be made to do most anything




Monday, October 15, 12
Let’s Get Started
                           But first, a couple rules




Monday, October 15, 12
The First Rule of
                   WordPress Development




Monday, October 15, 12
The First Rule of
                   WordPress Development
                                  You do not edit core files




Monday, October 15, 12

The reason for this is that WordPress typically releases 3 major updates per year along with a handful of security
releases. Any core files you edit will be overwritten with the standard WP upgrade process
The Second Rule of
                   WordPress Development




Monday, October 15, 12
The Second Rule of
                   WordPress Development
                         You DO NOT edit core files




Monday, October 15, 12

Please see slide 11...
Standard
                         WordPress
                         Structure




Monday, October 15, 12

Unless you are making a change to submit as a patch to the core team, you should most likely only be messing
with files in the plugins or themes folders
Let’s Build a Plugin

                         Plugins can be a
                         single file or multiple
                         directories of files

                         Create a folder and a
                         php file with matching
                         name inside the
                         plugins folder




Monday, October 15, 12
my-plugin.php
Monday, October 15, 12

This information is all you need in order to tell WordPress that this file is a plugin.
Monday, October 15, 12

With that little bit of info, our plugin is ready to be activated. Although it won’t do anything yet.
Add a Filter




Monday, October 15, 12

Added a filter which is going to edit the content and run our function in a specified order
Create a CSS
                Folder & File




Monday, October 15, 12
Add an Action




Monday, October 15, 12

We’ve told WordPress that when it enqueues the rest of the scripts, enqueue ours, too.
The End Result




Monday, October 15, 12
Some Plugin Resources

                          Don’t write code that WordPress already handles
                          http://codex.wordpress.org/Function_Reference

                          Know your hooks and filters
                          http://adambrown.info/p/wp_hooks

                          Check out the WordPress coding Standards
                          http://codex.wordpress.org/WordPress_Coding_Standards




Monday, October 15, 12

-   Don’t reinvent the wheel
-   1600 hooks and filters
-   Hooks are actions that fire at specific spots in the code.
-   Filters typically modify content before displaying it on screen or writing to the database.
Let’s Build a Theme

                         Like plugins, a theme
                         can be one or many
                         files

                         Themes add design to
                         your site

                         Themes can also add
                         functionality



Monday, October 15, 12
style.css
Monday, October 15, 12

This is the only info you need to tell WordPress about our theme
Monday, October 15, 12

With that little bit of info, our theme is ready to be activated

what happens if we activate now?
Monday, October 15, 12

D’oh! We didn’t add anything to our index file yet...
index.php



                         Get started by adding
                         the header/footer




Monday, October 15, 12
Post Layout, part 1




Monday, October 15, 12

have_posts() checks page for available content
while have_posts will loop through each post
the_title() / the_content()
Post Layout, part 2




Monday, October 15, 12

This is displayed if no posts were on the page
_e() allows for translations
Hey, We Have a Page!




Monday, October 15, 12

It may be ugly, but you can see the beginnings of our site.
Add Some Style




Monday, October 15, 12

Adding the most basic amount of style, and activating our plugin
http://codex.wordpress.org/Template_Hierarchy
Monday, October 15, 12

Knowing what template is being used is VERY important.
Some Theme Resources


                         The WordPress theme community
                         http://make.wordpress.org/themes/

                         WordPress CSS Coding Standards
                         http://make.wordpress.org/core/handbook/coding-standards/css/




Monday, October 15, 12
Save Some Time,
                         Create a Child Theme




Monday, October 15, 12

Creating a child theme only needs the Template tag
Importing the style sheet is a huge shortcut
Monday, October 15, 12

the original twentyten theme with our plugin activated
Monday, October 15, 12

The Child theme changes colors, moves menu location, moves sidebar, made it 3 column
doesn’t affect the parent theme at all
Questions?




Monday, October 15, 12
Want to Learn More?
                         http://vegasgeek.com/skillshare-schedule




Monday, October 15, 12
Thank You!


                 Email: john@vegasgeek.com

                 Twitter: @vegasgeek

                 Facebook: /vegasgeek

                 I’m sensing a pattern...




Monday, October 15, 12

More Related Content

PDF
GDI - Intro to WordPress
PDF
Wordpress Plugin Development Short Tutorial
PDF
Intro to Wordpress
PDF
WCOC Plugin Palooza Entry: WP Art Store
PPTX
Introduction To WordPress
KEY
Empowering Non-Profits with WordPress
PPT
Using Wordpress for Internet Publishing--TechConnections version
PPT
WordPress Complete Tutorial
GDI - Intro to WordPress
Wordpress Plugin Development Short Tutorial
Intro to Wordpress
WCOC Plugin Palooza Entry: WP Art Store
Introduction To WordPress
Empowering Non-Profits with WordPress
Using Wordpress for Internet Publishing--TechConnections version
WordPress Complete Tutorial

What's hot (20)

PPTX
Getting Started with Wordpress
PDF
WordPress plugin development
PDF
WordPress Course Outline
PPTX
WordPress Use Cases
DOCX
Debugging wordpress
PDF
Wordpress for Dummies
KEY
Word press 3 @ wordcamp
PPTX
WordPress 3.4 Preview
PPTX
Social Media + WordPress - SoCal WP Meetup
PDF
How to Jazz Up Your WordPress Site – without a lick o’ code
PPT
Introduction to Wordpress
PDF
Alice Phieu - WordPress For Beginners
PPTX
Blog backup & recovery
PDF
Wordpress (1)
PDF
Wordpress CMS tutorial and guide manual
PPT
Word Press
PPTX
SoCal WordPress Meetup - iWeb to WordPress aka WP99
PPTX
Wordpress ppt
PPT
Using Wordpress for Internet Publishing
PDF
Introduction to Optimizing WordPress for Website Speed
Getting Started with Wordpress
WordPress plugin development
WordPress Course Outline
WordPress Use Cases
Debugging wordpress
Wordpress for Dummies
Word press 3 @ wordcamp
WordPress 3.4 Preview
Social Media + WordPress - SoCal WP Meetup
How to Jazz Up Your WordPress Site – without a lick o’ code
Introduction to Wordpress
Alice Phieu - WordPress For Beginners
Blog backup & recovery
Wordpress (1)
Wordpress CMS tutorial and guide manual
Word Press
SoCal WordPress Meetup - iWeb to WordPress aka WP99
Wordpress ppt
Using Wordpress for Internet Publishing
Introduction to Optimizing WordPress for Website Speed
Ad

Similar to An introduction to WordPress Development (20)

PDF
Quinn beginning wordpress_2012
PDF
Newbies, you are not alone
PPTX
From WordPress With Love
ZIP
Refresh WordPress Beginner Workshop
PDF
WordPress 101 Saturday Session
PPTX
Build your website before you install wordpress.
PPTX
WordPress DK at DrupalCamp Copenhagen 2009
PDF
Brad Hauck - Better Wordpress Blogging Workshop - Breakout Session
PDF
WordPress Crash Course
PDF
CONCEPT AND PDF OF WORDPRESS COURSE .pdf
PPTX
CONCEPT AND THE PPT OF WORDPRESS COURSE.PPTX
PPTX
Praktikum Rekayasa Web, WordPress (1)
PDF
What is WordPress Introduction to the CMS
PDF
WordPress for Beginners - YES Montreal
PDF
Demystifying WordPress
PDF
Optimizing WordPress Performance on Shared Web Hosting
PPTX
Wordpress For Begineer
PDF
Make WordPress Themes
ODP
Building a WordPress Powered Website
PDF
WordPress 101
Quinn beginning wordpress_2012
Newbies, you are not alone
From WordPress With Love
Refresh WordPress Beginner Workshop
WordPress 101 Saturday Session
Build your website before you install wordpress.
WordPress DK at DrupalCamp Copenhagen 2009
Brad Hauck - Better Wordpress Blogging Workshop - Breakout Session
WordPress Crash Course
CONCEPT AND PDF OF WORDPRESS COURSE .pdf
CONCEPT AND THE PPT OF WORDPRESS COURSE.PPTX
Praktikum Rekayasa Web, WordPress (1)
What is WordPress Introduction to the CMS
WordPress for Beginners - YES Montreal
Demystifying WordPress
Optimizing WordPress Performance on Shared Web Hosting
Wordpress For Begineer
Make WordPress Themes
Building a WordPress Powered Website
WordPress 101
Ad

More from vegasgeek (18)

PDF
2019 WordCamp Orange County - An Introduction to the WordPress REST API
PDF
Building an Autonomous Website
PDF
Building An Autonomous Website
PDF
Jetpack: The Swiss Army Knife of Plugins
PDF
Intro to child themes
PDF
Y U No Tell Me? - WordCamp Tampa 2014
PDF
WordPress Use Cases
PDF
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
PDF
An into to using $wpdb with your own database tables
PPTX
An Introduction to Multisite - WordCamp Phoenix
PDF
WCLV - Introduction to child themes
PPTX
WordPress meetup - 10 plugins
PPT
Intro to WordPress Child Themes
PPT
WordCamp Reno 2011 - Intro to Genesis Child Themes
PPTX
Intro to StudioPress child themes
PPTX
Building your first plugin by John Hawkins at WordCamp MSP
PDF
Beginning Plugin d
KEY
Using WordPress as a CMS for Affiliate Marketing
2019 WordCamp Orange County - An Introduction to the WordPress REST API
Building an Autonomous Website
Building An Autonomous Website
Jetpack: The Swiss Army Knife of Plugins
Intro to child themes
Y U No Tell Me? - WordCamp Tampa 2014
WordPress Use Cases
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
An into to using $wpdb with your own database tables
An Introduction to Multisite - WordCamp Phoenix
WCLV - Introduction to child themes
WordPress meetup - 10 plugins
Intro to WordPress Child Themes
WordCamp Reno 2011 - Intro to Genesis Child Themes
Intro to StudioPress child themes
Building your first plugin by John Hawkins at WordCamp MSP
Beginning Plugin d
Using WordPress as a CMS for Affiliate Marketing

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Cloud computing and distributed systems.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Spectroscopy.pptx food analysis technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Big Data Technologies - Introduction.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Cloud computing and distributed systems.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
cuic standard and advanced reporting.pdf
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
sap open course for s4hana steps from ECC to s4
Spectroscopy.pptx food analysis technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation theory and applications.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Big Data Technologies - Introduction.pptx

An introduction to WordPress Development

  • 1. An Introduction To WordPress Development by John Hawkins Monday, October 15, 12
  • 2. I’m John I run 9seeds.com / WordPress development I speak at WordCamps nationally I started the Vegas WordPress group (260+) I’ve got 1 wife, 2 kids, 1 cat, 3 dogs, self- diagnosed ADD and OCD. SQUIRREL! Monday, October 15, 12
  • 3. The Misconception About WordPress Monday, October 15, 12
  • 4. WordPress is Just For Blogging Monday, October 15, 12
  • 5. That is... Wrong Not true Complete BS Erroneous False All of the above Monday, October 15, 12
  • 6. What is WordPress A content management system An open source project Created by and for the community Free to use for anything from a personal blog to a Fortune 500 web site Monday, October 15, 12
  • 7. .com vs .org .com is a service .org is downloadable provided by a For software you can use Profit company on any server .com doesn’t allow .org allows unlimited install of your own freedom to do as you plugins / themes wish .com is updated for .org requires you you automatically update the software yourself Monday, October 15, 12
  • 8. Why I Use WordPress 70,000,000+ sites = big pool of clients Easy to use for end users Helpful community / access to support Can be made to do most anything Monday, October 15, 12
  • 9. Let’s Get Started But first, a couple rules Monday, October 15, 12
  • 10. The First Rule of WordPress Development Monday, October 15, 12
  • 11. The First Rule of WordPress Development You do not edit core files Monday, October 15, 12 The reason for this is that WordPress typically releases 3 major updates per year along with a handful of security releases. Any core files you edit will be overwritten with the standard WP upgrade process
  • 12. The Second Rule of WordPress Development Monday, October 15, 12
  • 13. The Second Rule of WordPress Development You DO NOT edit core files Monday, October 15, 12 Please see slide 11...
  • 14. Standard WordPress Structure Monday, October 15, 12 Unless you are making a change to submit as a patch to the core team, you should most likely only be messing with files in the plugins or themes folders
  • 15. Let’s Build a Plugin Plugins can be a single file or multiple directories of files Create a folder and a php file with matching name inside the plugins folder Monday, October 15, 12
  • 16. my-plugin.php Monday, October 15, 12 This information is all you need in order to tell WordPress that this file is a plugin.
  • 17. Monday, October 15, 12 With that little bit of info, our plugin is ready to be activated. Although it won’t do anything yet.
  • 18. Add a Filter Monday, October 15, 12 Added a filter which is going to edit the content and run our function in a specified order
  • 19. Create a CSS Folder & File Monday, October 15, 12
  • 20. Add an Action Monday, October 15, 12 We’ve told WordPress that when it enqueues the rest of the scripts, enqueue ours, too.
  • 21. The End Result Monday, October 15, 12
  • 22. Some Plugin Resources Don’t write code that WordPress already handles http://codex.wordpress.org/Function_Reference Know your hooks and filters http://adambrown.info/p/wp_hooks Check out the WordPress coding Standards http://codex.wordpress.org/WordPress_Coding_Standards Monday, October 15, 12 - Don’t reinvent the wheel - 1600 hooks and filters - Hooks are actions that fire at specific spots in the code. - Filters typically modify content before displaying it on screen or writing to the database.
  • 23. Let’s Build a Theme Like plugins, a theme can be one or many files Themes add design to your site Themes can also add functionality Monday, October 15, 12
  • 24. style.css Monday, October 15, 12 This is the only info you need to tell WordPress about our theme
  • 25. Monday, October 15, 12 With that little bit of info, our theme is ready to be activated what happens if we activate now?
  • 26. Monday, October 15, 12 D’oh! We didn’t add anything to our index file yet...
  • 27. index.php Get started by adding the header/footer Monday, October 15, 12
  • 28. Post Layout, part 1 Monday, October 15, 12 have_posts() checks page for available content while have_posts will loop through each post the_title() / the_content()
  • 29. Post Layout, part 2 Monday, October 15, 12 This is displayed if no posts were on the page _e() allows for translations
  • 30. Hey, We Have a Page! Monday, October 15, 12 It may be ugly, but you can see the beginnings of our site.
  • 31. Add Some Style Monday, October 15, 12 Adding the most basic amount of style, and activating our plugin
  • 32. http://codex.wordpress.org/Template_Hierarchy Monday, October 15, 12 Knowing what template is being used is VERY important.
  • 33. Some Theme Resources The WordPress theme community http://make.wordpress.org/themes/ WordPress CSS Coding Standards http://make.wordpress.org/core/handbook/coding-standards/css/ Monday, October 15, 12
  • 34. Save Some Time, Create a Child Theme Monday, October 15, 12 Creating a child theme only needs the Template tag Importing the style sheet is a huge shortcut
  • 35. Monday, October 15, 12 the original twentyten theme with our plugin activated
  • 36. Monday, October 15, 12 The Child theme changes colors, moves menu location, moves sidebar, made it 3 column doesn’t affect the parent theme at all
  • 38. Want to Learn More? http://vegasgeek.com/skillshare-schedule Monday, October 15, 12
  • 39. Thank You! Email: john@vegasgeek.com Twitter: @vegasgeek Facebook: /vegasgeek I’m sensing a pattern... Monday, October 15, 12