SlideShare une entreprise Scribd logo
1  sur  39
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Getting Started with Wordpress
Getting Started with WordpressGetting Started with Wordpress
Getting Started with WordpressTom Semmes
 
WordPress plugin development
WordPress plugin developmentWordPress plugin development
WordPress plugin developmentLuc De Brouwer
 
WordPress Course Outline
WordPress Course OutlineWordPress Course Outline
WordPress Course OutlineIT Ki Dunya
 
Debugging wordpress
Debugging wordpress Debugging wordpress
Debugging wordpress Steve Collins
 
Word press 3 @ wordcamp
Word press 3 @ wordcampWord press 3 @ wordcamp
Word press 3 @ wordcampTris Hussey
 
WordPress 3.4 Preview
WordPress 3.4 PreviewWordPress 3.4 Preview
WordPress 3.4 PreviewNoel Saw
 
Social Media + WordPress - SoCal WP Meetup
Social Media + WordPress - SoCal WP MeetupSocial Media + WordPress - SoCal WP Meetup
Social Media + WordPress - SoCal WP MeetupNoel Saw
 
How to Jazz Up Your WordPress Site – without a lick o’ code
How to Jazz Up Your WordPress Site – without a lick o’ codeHow to Jazz Up Your WordPress Site – without a lick o’ code
How to Jazz Up Your WordPress Site – without a lick o’ codeKathryn Presner
 
Introduction to Wordpress
Introduction to WordpressIntroduction to Wordpress
Introduction to WordpressReuben Rock
 
Alice Phieu - WordPress For Beginners
Alice Phieu - WordPress For BeginnersAlice Phieu - WordPress For Beginners
Alice Phieu - WordPress For BeginnersAlice Phieu
 
Wordpress (1)
Wordpress (1)Wordpress (1)
Wordpress (1)shahroz10
 
Wordpress CMS tutorial and guide manual
Wordpress CMS tutorial and guide manualWordpress CMS tutorial and guide manual
Wordpress CMS tutorial and guide manualRalph Francis Cue
 
SoCal WordPress Meetup - iWeb to WordPress aka WP99
SoCal WordPress Meetup - iWeb to WordPress aka WP99SoCal WordPress Meetup - iWeb to WordPress aka WP99
SoCal WordPress Meetup - iWeb to WordPress aka WP99Noel Saw
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedNile Flores
 

Tendances (20)

Getting Started with Wordpress
Getting Started with WordpressGetting Started with Wordpress
Getting Started with Wordpress
 
WordPress plugin development
WordPress plugin developmentWordPress plugin development
WordPress plugin development
 
WordPress Course Outline
WordPress Course OutlineWordPress Course Outline
WordPress Course Outline
 
WordPress Use Cases
WordPress Use CasesWordPress Use Cases
WordPress Use Cases
 
Debugging wordpress
Debugging wordpress Debugging wordpress
Debugging wordpress
 
Wordpress for Dummies
Wordpress for DummiesWordpress for Dummies
Wordpress for Dummies
 
Word press 3 @ wordcamp
Word press 3 @ wordcampWord press 3 @ wordcamp
Word press 3 @ wordcamp
 
WordPress 3.4 Preview
WordPress 3.4 PreviewWordPress 3.4 Preview
WordPress 3.4 Preview
 
Social Media + WordPress - SoCal WP Meetup
Social Media + WordPress - SoCal WP MeetupSocial Media + WordPress - SoCal WP Meetup
Social Media + WordPress - SoCal WP Meetup
 
How to Jazz Up Your WordPress Site – without a lick o’ code
How to Jazz Up Your WordPress Site – without a lick o’ codeHow to Jazz Up Your WordPress Site – without a lick o’ code
How to Jazz Up Your WordPress Site – without a lick o’ code
 
Introduction to Wordpress
Introduction to WordpressIntroduction to Wordpress
Introduction to Wordpress
 
Alice Phieu - WordPress For Beginners
Alice Phieu - WordPress For BeginnersAlice Phieu - WordPress For Beginners
Alice Phieu - WordPress For Beginners
 
Blog backup & recovery
Blog backup & recoveryBlog backup & recovery
Blog backup & recovery
 
Wordpress (1)
Wordpress (1)Wordpress (1)
Wordpress (1)
 
Wordpress CMS tutorial and guide manual
Wordpress CMS tutorial and guide manualWordpress CMS tutorial and guide manual
Wordpress CMS tutorial and guide manual
 
Word Press
Word PressWord Press
Word Press
 
SoCal WordPress Meetup - iWeb to WordPress aka WP99
SoCal WordPress Meetup - iWeb to WordPress aka WP99SoCal WordPress Meetup - iWeb to WordPress aka WP99
SoCal WordPress Meetup - iWeb to WordPress aka WP99
 
Wordpress ppt
Wordpress pptWordpress ppt
Wordpress ppt
 
Using Wordpress for Internet Publishing
Using Wordpress for Internet PublishingUsing Wordpress for Internet Publishing
Using Wordpress for Internet Publishing
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website Speed
 

Similaire à An introduction to WordPress Development

Quinn beginning wordpress_2012
Quinn beginning wordpress_2012Quinn beginning wordpress_2012
Quinn beginning wordpress_2012Sara Quinn
 
Introduction to Web Programming
Introduction to Web ProgrammingIntroduction to Web Programming
Introduction to Web ProgrammingYnon Perek
 
Key learnings from hosting 1000+ WordPress sites
Key learnings from hosting 1000+ WordPress sitesKey learnings from hosting 1000+ WordPress sites
Key learnings from hosting 1000+ WordPress sitesThomas Audunhus
 
WordPress developer 101
WordPress developer 101WordPress developer 101
WordPress developer 101Cindy Cullen
 
Drupalvs wordpress fsoss2011
Drupalvs wordpress fsoss2011Drupalvs wordpress fsoss2011
Drupalvs wordpress fsoss2011Sean Yo
 
All about word press
All about word pressAll about word press
All about word pressDan Beil
 
WordPress: Beyond Blogging
WordPress: Beyond BloggingWordPress: Beyond Blogging
WordPress: Beyond BloggingJoss Winn
 
Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08Jamie Oastler
 
Introduction to WordPress Class 1
Introduction to WordPress Class 1Introduction to WordPress Class 1
Introduction to WordPress Class 1Adrian Mikeliunas
 
Blogging Presentation
Blogging PresentationBlogging Presentation
Blogging Presentationajaymehta
 
Drupal is from Mars, Wordpress is from Venus: Finding your library's CMS soul...
Drupal is from Mars, Wordpress is from Venus: Finding your library's CMS soul...Drupal is from Mars, Wordpress is from Venus: Finding your library's CMS soul...
Drupal is from Mars, Wordpress is from Venus: Finding your library's CMS soul...sbclapp
 
Wordpress 101 - The Basics by Jack Davenport
Wordpress 101 - The Basics by Jack DavenportWordpress 101 - The Basics by Jack Davenport
Wordpress 101 - The Basics by Jack DavenportJäck Davenpørt
 
WordPress for Beginners - YES Montreal
WordPress for Beginners - YES MontrealWordPress for Beginners - YES Montreal
WordPress for Beginners - YES MontrealKathryn Presner
 
Kick start your career with wordpress
Kick start your career with wordpressKick start your career with wordpress
Kick start your career with wordpressOpenDev
 
Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1phpfactory
 

Similaire à An introduction to WordPress Development (20)

Quinn beginning wordpress_2012
Quinn beginning wordpress_2012Quinn beginning wordpress_2012
Quinn beginning wordpress_2012
 
Introduction to Web Programming
Introduction to Web ProgrammingIntroduction to Web Programming
Introduction to Web Programming
 
Key learnings from hosting 1000+ WordPress sites
Key learnings from hosting 1000+ WordPress sitesKey learnings from hosting 1000+ WordPress sites
Key learnings from hosting 1000+ WordPress sites
 
Drupal vs wordpess
Drupal vs wordpessDrupal vs wordpess
Drupal vs wordpess
 
WordPress developer 101
WordPress developer 101WordPress developer 101
WordPress developer 101
 
Drupalvs wordpress fsoss2011
Drupalvs wordpress fsoss2011Drupalvs wordpress fsoss2011
Drupalvs wordpress fsoss2011
 
Wordpress introduction
Wordpress introductionWordpress introduction
Wordpress introduction
 
Word Press
Word PressWord Press
Word Press
 
All about word press
All about word pressAll about word press
All about word press
 
WordPress: Beyond Blogging
WordPress: Beyond BloggingWordPress: Beyond Blogging
WordPress: Beyond Blogging
 
Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08Wordpress Beyond A Blog Word Camp Toronto08
Wordpress Beyond A Blog Word Camp Toronto08
 
Introduction to WordPress Class 1
Introduction to WordPress Class 1Introduction to WordPress Class 1
Introduction to WordPress Class 1
 
Wordpress Guide
Wordpress GuideWordpress Guide
Wordpress Guide
 
WordPress Workshop
WordPress WorkshopWordPress Workshop
WordPress Workshop
 
Blogging Presentation
Blogging PresentationBlogging Presentation
Blogging Presentation
 
Drupal is from Mars, Wordpress is from Venus: Finding your library's CMS soul...
Drupal is from Mars, Wordpress is from Venus: Finding your library's CMS soul...Drupal is from Mars, Wordpress is from Venus: Finding your library's CMS soul...
Drupal is from Mars, Wordpress is from Venus: Finding your library's CMS soul...
 
Wordpress 101 - The Basics by Jack Davenport
Wordpress 101 - The Basics by Jack DavenportWordpress 101 - The Basics by Jack Davenport
Wordpress 101 - The Basics by Jack Davenport
 
WordPress for Beginners - YES Montreal
WordPress for Beginners - YES MontrealWordPress for Beginners - YES Montreal
WordPress for Beginners - YES Montreal
 
Kick start your career with wordpress
Kick start your career with wordpressKick start your career with wordpress
Kick start your career with wordpress
 
Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1Lazy Coder Camp Edition 1
Lazy Coder Camp Edition 1
 

Plus de vegasgeek

2019 WordCamp Orange County - An Introduction to the WordPress REST API
2019 WordCamp Orange County - An Introduction to the WordPress REST API2019 WordCamp Orange County - An Introduction to the WordPress REST API
2019 WordCamp Orange County - An Introduction to the WordPress REST APIvegasgeek
 
Building an Autonomous Website
Building an Autonomous WebsiteBuilding an Autonomous Website
Building an Autonomous Websitevegasgeek
 
Building An Autonomous Website
Building An Autonomous WebsiteBuilding An Autonomous Website
Building An Autonomous Websitevegasgeek
 
Jetpack: The Swiss Army Knife of Plugins
Jetpack: The Swiss Army Knife of PluginsJetpack: The Swiss Army Knife of Plugins
Jetpack: The Swiss Army Knife of Pluginsvegasgeek
 
Intro to child themes
Intro to child themesIntro to child themes
Intro to child themesvegasgeek
 
Y U No Tell Me? - WordCamp Tampa 2014
Y U No Tell Me? - WordCamp Tampa 2014Y U No Tell Me? - WordCamp Tampa 2014
Y U No Tell Me? - WordCamp Tampa 2014vegasgeek
 
WordPress Use Cases
WordPress Use CasesWordPress Use Cases
WordPress Use Casesvegasgeek
 
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013vegasgeek
 
An into to using $wpdb with your own database tables
An into to using $wpdb with your own database tablesAn into to using $wpdb with your own database tables
An into to using $wpdb with your own database tablesvegasgeek
 
An Introduction to Multisite - WordCamp Phoenix
An Introduction to Multisite - WordCamp PhoenixAn Introduction to Multisite - WordCamp Phoenix
An Introduction to Multisite - WordCamp Phoenixvegasgeek
 
WCLV - Introduction to child themes
WCLV - Introduction to child themesWCLV - Introduction to child themes
WCLV - Introduction to child themesvegasgeek
 
WordPress meetup - 10 plugins
WordPress meetup - 10 pluginsWordPress meetup - 10 plugins
WordPress meetup - 10 pluginsvegasgeek
 
Intro to WordPress Child Themes
Intro to WordPress Child ThemesIntro to WordPress Child Themes
Intro to WordPress Child Themesvegasgeek
 
WordCamp Reno 2011 - Intro to Genesis Child Themes
WordCamp Reno 2011 - Intro to Genesis Child ThemesWordCamp Reno 2011 - Intro to Genesis Child Themes
WordCamp Reno 2011 - Intro to Genesis Child Themesvegasgeek
 
Intro to StudioPress child themes
Intro to StudioPress child themesIntro to StudioPress child themes
Intro to StudioPress child themesvegasgeek
 
Building your first plugin by John Hawkins at WordCamp MSP
Building your first plugin by John Hawkins at WordCamp MSPBuilding your first plugin by John Hawkins at WordCamp MSP
Building your first plugin by John Hawkins at WordCamp MSPvegasgeek
 
Beginning Plugin d
Beginning Plugin dBeginning Plugin d
Beginning Plugin dvegasgeek
 
Using WordPress as a CMS for Affiliate Marketing
Using WordPress as a CMS for Affiliate MarketingUsing WordPress as a CMS for Affiliate Marketing
Using WordPress as a CMS for Affiliate Marketingvegasgeek
 

Plus de vegasgeek (18)

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

Dernier

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Dernier (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

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