SlideShare una empresa de Scribd logo
1 de 39
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Similar a 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
 

Similar a 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
 

Más 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
 

Más 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
 

Último

Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 

Último (20)

Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 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