SlideShare ist ein Scribd-Unternehmen logo
1 von 24
How I Learned to Stop Worrying and Love the Code Benjamin J. Balter webBen.Balter.com emailBen@Balter.com twitter	@BenBalter
In Five Minutes You Will Know HTML & PHP (well, just enough knowledge to be dangerous)
HTML
Tags HTML consists of Tags All tags are surrounded by “<“ and “>” e.g., <tag> Tags come in pairs, affecting the content between them e.g., <tag> …. </tag> Tags can also have attributes e.g, <tag attribute=“value”> … </tag>
Common Tags Bold: <strong> … </strong> Italic: <em> … </em> Paragraph: <p> … </p> Heading: <h1> … </h1>, <h2> … </h2> Link: <a href=“http://…”> … </a> Image: <imgsrc=“http://…” /> Full List: w3schools.com
<p> 	This is an <em>example</em> of a  <a href=“http://wordpress.org”>Link to 	<strong>WordPress<strong></a>, 	and here is an image <imgsrc=“http://	wordpress.org/logo.jpg” /> </p>
New to HTML? Google: HTML, CSS, & js from the Ground Uphttp://code.google.com/edu/submissions/html-css-javascript/ HTML Doghttp://htmldog.com/ W3 Learning Wikihttp://www.w3.org/wiki/HTML/Training W3 Element Wikihttp://www.w3.org/wiki/HTML/Elements
In the Beginning There was… <?php
Distinguishing PHP from HTML PHP code is wrapped in <?phpand ?> tags. Example: 		<p> 			The current time is:  <?phpecho date(‘m:s’); ?> 		</p>
Variables A variable is value stored by the server This value can be A number Text Bool (true/false) Other variables (an array) Variables are identified by “$” Variables are set with “=” e.g., $name = “Ben”; echo $name;
If Statement An if statement performs an action if a statement is true if ( $color == “red” ) { echo “The ball is red!”; 		}
If Statement If statements can also perform an action if a statement is false.  if ( $color == “red” ) { echo “The ball is red!”; 		} else { echo“The ball is not red”; 			}
While Loop A while loop continues to perform an action while a condition is true While ( $count < 5 ) { echo $count; 			$count = $count + 1; 		}
Other Loops For for ( $count, $count < 5, $count++ ) { echo $count; } Foreach foreach( $students as $student_name) { echo $student_name; 	}
Functions A function is a pre-set list of commands 700+ built in functions, or you can make your own Functions can take arguments Always followed by parenthesis e.g., strlen( ‘how now brown cow’ );
Functions A function is defined… function add( $number1, $number2 ) { 		$sum = $number1 + $number2; return $sum; 	}
Functions And then called… 	The sum of 1 and 1 is  <?phpechoadd( 1, 1 ); ?>.
Final Notes on PHP After every command you need a semicolon Not after If, for, while, foreach, etc. Yes: round( $number, 2 ); No: if ( $number > 5 ) { ; Want to know what a function does? http://php.net/{the name of the function} e.g., http://php.net/strtoupper
Putting It All Together: loop-page.php <?phpif ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div id="post-<?phpthe_ID(); ?>" <?phppost_class(); ?>> 		<?phpif ( is_front_page() ) { ?> <h2 class="entry-title"> 				<?phpthe_title(); ?> </h2> 		<?php } else { ?> <h1 class="entry-title"> 				<?phpthe_title(); ?> </h1> 		<?php } ?>
Putting It All Together (Cont.) <div class="entry-content"> <?phpthe_content(); ?> 	<?phpwp_link_pages( array( 'before' =>  				'<div class="page-link">' . __( 'Pages:', 'twentyten' ),  			'after' => '</div>' ) ); ?> <?phpedit_post_link( __( 'Edit', 'twentyten' ),  		'<span class="edit-link">', '</span>' ); ?> 		</div><!-- .entry-content --> 	</div><!-- #post-## --> 	<?phpcomments_template( '', true ); ?> <?phpendwhile; // end of the loop. ?>
Tools & Resources
Tools Text Editor Whatever came with your computer Notepad++ (Windows) TextWrangler, Coda (Mac) FTP Client (to connect to server) WinSCP, Notepad++ (Windows) CyberDuck, Coda (Mac) WordPress Define( WP_DEBUG, true); in wp-config.php Debug bar plugin WordPress Codex
Benjamin J. Balter  webBen.Balter.com emailBen@Balter.com twitter 	@BenBalter

Weitere ähnliche Inhalte

Was ist angesagt?

PHP tutorial | ptutorial
PHP tutorial | ptutorialPHP tutorial | ptutorial
PHP tutorial | ptutorialPTutorial Web
 
Php(report)
Php(report)Php(report)
Php(report)Yhannah
 
WordPress 3 and You
WordPress 3 and YouWordPress 3 and You
WordPress 3 and YouOren Yomtov
 
Simplifying Code: Koombea TechTalks
Simplifying Code: Koombea TechTalks Simplifying Code: Koombea TechTalks
Simplifying Code: Koombea TechTalks Koombea
 
basic knowledge abot html
basic knowledge abot htmlbasic knowledge abot html
basic knowledge abot htmlAnkit Dubey
 
XML and Web Services with PHP5 and PEAR
XML and Web Services with PHP5 and PEARXML and Web Services with PHP5 and PEAR
XML and Web Services with PHP5 and PEARStephan Schmidt
 
The Big Documentation Extravaganza
The Big Documentation ExtravaganzaThe Big Documentation Extravaganza
The Big Documentation ExtravaganzaStephan Schmidt
 
Component and Event-Driven Architectures in PHP
Component and Event-Driven Architectures in PHPComponent and Event-Driven Architectures in PHP
Component and Event-Driven Architectures in PHPStephan Schmidt
 
Internet Technology and its Applications
Internet Technology and its ApplicationsInternet Technology and its Applications
Internet Technology and its Applicationsamichoksi
 

Was ist angesagt? (12)

PHP tutorial | ptutorial
PHP tutorial | ptutorialPHP tutorial | ptutorial
PHP tutorial | ptutorial
 
Php(report)
Php(report)Php(report)
Php(report)
 
php string-part 2
php string-part 2php string-part 2
php string-part 2
 
PHP
PHP PHP
PHP
 
WordPress 3 and You
WordPress 3 and YouWordPress 3 and You
WordPress 3 and You
 
Simplifying Code: Koombea TechTalks
Simplifying Code: Koombea TechTalks Simplifying Code: Koombea TechTalks
Simplifying Code: Koombea TechTalks
 
basic knowledge abot html
basic knowledge abot htmlbasic knowledge abot html
basic knowledge abot html
 
XML and Web Services with PHP5 and PEAR
XML and Web Services with PHP5 and PEARXML and Web Services with PHP5 and PEAR
XML and Web Services with PHP5 and PEAR
 
The Big Documentation Extravaganza
The Big Documentation ExtravaganzaThe Big Documentation Extravaganza
The Big Documentation Extravaganza
 
PEAR For The Masses
PEAR For The MassesPEAR For The Masses
PEAR For The Masses
 
Component and Event-Driven Architectures in PHP
Component and Event-Driven Architectures in PHPComponent and Event-Driven Architectures in PHP
Component and Event-Driven Architectures in PHP
 
Internet Technology and its Applications
Internet Technology and its ApplicationsInternet Technology and its Applications
Internet Technology and its Applications
 

Ähnlich wie How I Learned to Stop Worrying and Love the Code

Introduction To Lamp
Introduction To LampIntroduction To Lamp
Introduction To LampAmzad Hossain
 
Система рендеринга в Magento
Система рендеринга в MagentoСистема рендеринга в Magento
Система рендеринга в MagentoMagecom Ukraine
 
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Cathie101
 
Open Source Package PHP & MySQL
Open Source Package PHP & MySQLOpen Source Package PHP & MySQL
Open Source Package PHP & MySQLkalaisai
 
Open Source Package Php Mysql 1228203701094763 9
Open Source Package Php Mysql 1228203701094763 9Open Source Package Php Mysql 1228203701094763 9
Open Source Package Php Mysql 1228203701094763 9isadorta
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010Brendan Sera-Shriar
 
Phing - A PHP Build Tool (An Introduction)
Phing - A PHP Build Tool (An Introduction)Phing - A PHP Build Tool (An Introduction)
Phing - A PHP Build Tool (An Introduction)Michiel Rook
 
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7phuphax
 
What's new in Rails 2?
What's new in Rails 2?What's new in Rails 2?
What's new in Rails 2?brynary
 
What Is Php
What Is PhpWhat Is Php
What Is PhpAVC
 

Ähnlich wie How I Learned to Stop Worrying and Love the Code (20)

Introduction To Lamp
Introduction To LampIntroduction To Lamp
Introduction To Lamp
 
Control Structures In Php 2
Control Structures In Php 2Control Structures In Php 2
Control Structures In Php 2
 
John Rowley Notes
John Rowley NotesJohn Rowley Notes
John Rowley Notes
 
Система рендеринга в Magento
Система рендеринга в MagentoСистема рендеринга в Magento
Система рендеринга в Magento
 
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0
 
Php
PhpPhp
Php
 
Web development
Web developmentWeb development
Web development
 
Open Source Package PHP & MySQL
Open Source Package PHP & MySQLOpen Source Package PHP & MySQL
Open Source Package PHP & MySQL
 
Open Source Package Php Mysql 1228203701094763 9
Open Source Package Php Mysql 1228203701094763 9Open Source Package Php Mysql 1228203701094763 9
Open Source Package Php Mysql 1228203701094763 9
 
HTML & CSS
HTML & CSSHTML & CSS
HTML & CSS
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010
 
Phing - A PHP Build Tool (An Introduction)
Phing - A PHP Build Tool (An Introduction)Phing - A PHP Build Tool (An Introduction)
Phing - A PHP Build Tool (An Introduction)
 
Design Patterns in Ruby
Design Patterns in RubyDesign Patterns in Ruby
Design Patterns in Ruby
 
JSP Custom Tags
JSP Custom TagsJSP Custom Tags
JSP Custom Tags
 
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7
 
Diva
DivaDiva
Diva
 
SlideShare Instant
SlideShare InstantSlideShare Instant
SlideShare Instant
 
SlideShare Instant
SlideShare InstantSlideShare Instant
SlideShare Instant
 
What's new in Rails 2?
What's new in Rails 2?What's new in Rails 2?
What's new in Rails 2?
 
What Is Php
What Is PhpWhat Is Php
What Is Php
 

Kürzlich hochgeladen

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

How I Learned to Stop Worrying and Love the Code

  • 1. How I Learned to Stop Worrying and Love the Code Benjamin J. Balter webBen.Balter.com emailBen@Balter.com twitter @BenBalter
  • 2. In Five Minutes You Will Know HTML & PHP (well, just enough knowledge to be dangerous)
  • 3.
  • 5. Tags HTML consists of Tags All tags are surrounded by “<“ and “>” e.g., <tag> Tags come in pairs, affecting the content between them e.g., <tag> …. </tag> Tags can also have attributes e.g, <tag attribute=“value”> … </tag>
  • 6. Common Tags Bold: <strong> … </strong> Italic: <em> … </em> Paragraph: <p> … </p> Heading: <h1> … </h1>, <h2> … </h2> Link: <a href=“http://…”> … </a> Image: <imgsrc=“http://…” /> Full List: w3schools.com
  • 7. <p> This is an <em>example</em> of a <a href=“http://wordpress.org”>Link to <strong>WordPress<strong></a>, and here is an image <imgsrc=“http:// wordpress.org/logo.jpg” /> </p>
  • 8. New to HTML? Google: HTML, CSS, & js from the Ground Uphttp://code.google.com/edu/submissions/html-css-javascript/ HTML Doghttp://htmldog.com/ W3 Learning Wikihttp://www.w3.org/wiki/HTML/Training W3 Element Wikihttp://www.w3.org/wiki/HTML/Elements
  • 9. In the Beginning There was… <?php
  • 10. Distinguishing PHP from HTML PHP code is wrapped in <?phpand ?> tags. Example: <p> The current time is: <?phpecho date(‘m:s’); ?> </p>
  • 11. Variables A variable is value stored by the server This value can be A number Text Bool (true/false) Other variables (an array) Variables are identified by “$” Variables are set with “=” e.g., $name = “Ben”; echo $name;
  • 12. If Statement An if statement performs an action if a statement is true if ( $color == “red” ) { echo “The ball is red!”; }
  • 13. If Statement If statements can also perform an action if a statement is false. if ( $color == “red” ) { echo “The ball is red!”; } else { echo“The ball is not red”; }
  • 14. While Loop A while loop continues to perform an action while a condition is true While ( $count < 5 ) { echo $count; $count = $count + 1; }
  • 15. Other Loops For for ( $count, $count < 5, $count++ ) { echo $count; } Foreach foreach( $students as $student_name) { echo $student_name; }
  • 16. Functions A function is a pre-set list of commands 700+ built in functions, or you can make your own Functions can take arguments Always followed by parenthesis e.g., strlen( ‘how now brown cow’ );
  • 17. Functions A function is defined… function add( $number1, $number2 ) { $sum = $number1 + $number2; return $sum; }
  • 18. Functions And then called… The sum of 1 and 1 is <?phpechoadd( 1, 1 ); ?>.
  • 19. Final Notes on PHP After every command you need a semicolon Not after If, for, while, foreach, etc. Yes: round( $number, 2 ); No: if ( $number > 5 ) { ; Want to know what a function does? http://php.net/{the name of the function} e.g., http://php.net/strtoupper
  • 20. Putting It All Together: loop-page.php <?phpif ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div id="post-<?phpthe_ID(); ?>" <?phppost_class(); ?>> <?phpif ( is_front_page() ) { ?> <h2 class="entry-title"> <?phpthe_title(); ?> </h2> <?php } else { ?> <h1 class="entry-title"> <?phpthe_title(); ?> </h1> <?php } ?>
  • 21. Putting It All Together (Cont.) <div class="entry-content"> <?phpthe_content(); ?> <?phpwp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> <?phpedit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </div><!-- #post-## --> <?phpcomments_template( '', true ); ?> <?phpendwhile; // end of the loop. ?>
  • 23. Tools Text Editor Whatever came with your computer Notepad++ (Windows) TextWrangler, Coda (Mac) FTP Client (to connect to server) WinSCP, Notepad++ (Windows) CyberDuck, Coda (Mac) WordPress Define( WP_DEBUG, true); in wp-config.php Debug bar plugin WordPress Codex
  • 24. Benjamin J. Balter webBen.Balter.com emailBen@Balter.com twitter @BenBalter