Deconstructing the Loop AL DAVIS WPTEACH.COM

Slides:



Advertisements
Similar presentations
Wordpress Theme Hacks Nearly Anyone Can Do Afraid you might "break something" by mucking around in your theme? With a little determination, and just a.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Getting Started with WordPress David Grogan
NoodleBib Create a [bibliography, source list…] * [Your name/title/contact info] *Note: For the brackets, fill in your specific information.
Creating a WordPress Website Oklahoma Conference of The UMC Department of Communications 1.
WORDPRESS. SEO AKA – “Search Engine Optimization” Technique to make sure large search engines like Google, Yahoo, and Bing find your site and let others.
USING WORDPRESS. WEEK 1 1.Why WP? 2.Setting Up WP 3.Exploring the Admin screen 4.Page Organization 5.Posting 6.Polls.
Anne McGrath 16 th February  Review of what we have learned so far.  Angled brackets surround HTML tags.  The words between the angled brackets.
How To Create A Web Page By: Mikeon Briddy & Darrius Jacobs April 10,2006 Mr. Barnett.
How to Create an MLA citation for a web document....
Newsletter Plugin The newsletter plugin allows you to create and send newsletters to a managed list or multiple lists of users. Your users can subscribe.
Blogs – what, why and how? A blog is a web-log It is a simple website that anyone can setup without any advanced computer know-how It’s the future: blogs,
Final Presentation WordPress 3.0+ Leonard Bogdonoff 12/6/11 T. DEDONNO CIM225.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Title Slide without Picture Subtitle Presenter’s Name Presenter’s Title Organization,
Getting an account with WordPress.com Open your web browser ( mozilla firefox, internet explorer, opera, etc.,)
Inline, Internal, and External FIle
What is Wordpress?  WordPress has a web template processor. Users can re-arrange widgets without editing PHP of HTML code; they can also install and.
1 Urban Education Resources LIBRARY INSTRUCTION Jacqueline A. Gill Associate Professor Reference
Launch Your WordPress site in One Hour By Bret Phillips For slides, codes, and notes: Web Devils WordPress.
Core Publisher: Station Administrator Tools. Training 1: Site Administration Training 2: Programs Training 3: Content Tagging Training 4: Creating Posts.
You’re in good company if you use WordPress to publish on the web. Many famous blogs, news outlets, music sites, Fortune 500 companies and celebrities.
WordPress Web. WordPress Blogging system with full content management Personal publishing system Built on PHP scripting language and MySQL relational.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
(c) Manzur Ashraf, Short course, KFUPM PHP & MySQL 1 Basic PHP Class 2.
Advanced Web 2012 Lecture 4 Sean Costain PHP Sean Costain 2012 What is PHP? PHP is a widely-used general-purpose scripting language that is especially.
Server-side Scripting Powering the webs favourite services.
Review: How do you change the border color of an image?
Blogs & Web pages & Wikis. Silent Movie Visual story telling.
Creating Effective School and PTA Websites Sam Farnsworth Utah PTA Technology Specialist
Product Feeds. What is a Product? In marketing terms, a product is an item, service or idea that is for sale Examples are: A flight with set dates and.
OBJECTIVES  What is HTML  What tools are needed  Creating a Web drive on campus (done only once)  HTML file layout  Some HTML tags  Creating and.
Silent Movie. Visual story telling Rules Create a ppt of five pictures or more that tell a story You cannot use a known story but the story could be.
Designing Web Sites Using “tags” Tags are codes inserted among the text to tell the text how to behave Their format is very rigid; they always look like.
Introduction to HTML. Slide 1 Hard-Coding What is hard-coding? –Creating the page in a text editor just using HTML A Web designer should know how to hard-
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
PowerTeacher with Web Grade Book Semester Classes School Year August 2012.
The Internet Do you really know what is out there?
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Dwayne Forrester Next  A blog is a discussion or informational site published on the World Wide Web and consisting of discrete entries ("posts") typically.
Core Publisher: Station Administrator Tools. Training 1: Site Administration Training 2: Programs Training 3: Content Tagging Training 4: Creating Posts.
Welcome to the Circus! A step by step process to making your own Google Site for the NEW Northern Potter Website!
Videos, the More Tag, Permalinks, and Shortlinks.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Tech Training 12/16/19 How to add a post How to edit a post How to add & assign a category How to add tags.
Advanced Web 2012 Lecture 11 Sean Costain 2012.
Blogging. Website and blog A website, also written as web site,or simply site, is a set of related web pages typically served from a single web domain.
Basic ActionScript and PHP Cis 126. Getting Started set up a basic folder structure so we can keep our files organized. Mirror this structure on your.
WordPress for Beginners February 2, 2014 Facebook.
+ Publishing Your First Post USING WORDPRESS. + A CMS (content management system) is an application that allows you to publish, edit, modify, organize,
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
Creating Your 1 st Web Page. Tags Refers to anything between on a webpage Most appear in pairs surrounding content Some appear as empty tags (no closing.
: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี
CREATE, IMPLEMENT AND ENJOY! Blogs,Wikis & RSS Readers.
What Is Firefox? __________ is a Web ___________ that you use to search for and view Web pages, save pages for use in the future, and maintain a list.
The Big 6 Model for Effective Research While Researching specific topics and how they work you will be using the Big 6 Model for Effective Research to.
Setting up a WordPress Site
Getting an account with WordPress.com
Intro to WordPress (Using XAMPP)
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
What is a Blog? short for Weblog journal on a website
WordPress Blogging Basics
Wordpress.
Easy Way to Improve Your 404 Page Template in Wordpress If you want to improve your 404 error page. So we are here to explain to you how to improve your.
About.me Scripts | About.me php script from PHP Script directory.
Readymade Airbnb Clone | PHP Vacation Rental Script from PHP Script directory.
PHP question and answer script | Answer script from PHP Script Directory.
PHP Chat Script | Live Chat php Script from PHP script directory.
Building Web Applications
Web Content Management
Consult America Technology Consulting Services
Presentation transcript:

Deconstructing the Loop AL DAVIS WPTEACH.COM

ABOUTME Organizer of: WordCamp Toronto ( 2011, 2012) WordCamp Developers Toronto ( 2012) Toronto WordPress Meetup group Toronto Wordpress Developers Meetup Who is that bald guy at the front of the room? And why is he there? AL DAVIS WPTEACH.COM Program Manager, Hostopia WordPress SME for worlds largest wholesale hosting provider Developing WP strategy for major telcos, cablecos and ISPs globally About to launch a service where we design and publish sites a month using WP Professor, George Brown College Intro to WordPress Intro to WordPress theme Development Owner, WPTeach.com WordPress website Launching online school to learn WP in Q2 Freelance WordPress Development

LETS GET TO IT THEN AL DAVIS WPTEACH.COM From the codex: "The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post."HTMLPHP What is the Loop? My definition: The Loop is a living, breathing thing. it's the engine that makes WordPress as powerful as it is, it makes everything tick. Without the loop, there is no dynamic content. Using the loop. we can display any content we want, however we want.

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM What does it look like? The Loop I mean….

DECONSTRUCTINGTHELOOP Topic AL DAVIS WPTEACH.COM Thanks for your time….. Just kidding…..

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM IN THE BEGINNING… Part 1 - opens and closes the PHP command Part 2 have_posts() - checks to see there are posts to display Part3 the_post- unpacks the next post in the queue. In Plain English Using PHP, check to see if there are any posts to display, if there are, then display them. Stop using PHP.

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM THE ENDING… Part 1 STOP the Loop....but notice the "else" thats in there..... The very first "if" if (have_posts()) tested to see if there were any Posts to display. This "else" part tells what do if there weren't any

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM THE ENDING… Part 2 Nothing to look at here...move along

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM THE ENDING… Part 3 Seriously, stop the loop....now.

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM //Magic happens here ALL TOGETHER NOW….. In Plain English Using PHP, check to see if there are any posts to display, if there are, then display them. If you have reached the number of posts I told you to get, then stop. If you dont find any post based on what I asked for, display the message I told you to. Now seriously, stop…no more.

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM So how does it look? Blank, there is nothing there…. But the good news is, if you have a blank screen you have done nothing wrong.. So how do we make it work like we think it should?

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM Say hello to your new BFF The Template Tag What is a Template Tag? A PHP function used in your WordPress theme template to display specific pieces of data about your web site and your content. This allows you to customize how and where your content is displayed on your website. Example the_title() displays the title of your post or page inside the Loop

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM Why Use Template Tag? Saves you from learning PHP, which makes it worth the price of admission right there

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM Commonly used Template Tags - returns the URL of your post - returns the title of your post or page -returns the unique ID of your post -just the excerpt of the post displays the date/time the post was published - displays the author of the post - displays the categories assigned to the post - Displays the tags assigned to the post Link for the comments on the post

DECONSTRUCTINGTHELOOP AL DAVIS WPTEACH.COM Lets see what it looks like in action, shall we?

AL DAVIS WPTEACH.COM ? Questions

AL DAVIS WPTEACH.COM Thank You Slides are up at wpteach.com