10. comments.php
$boring = ‘writing the same conditional code
again and again and again and again’;
if ($boring) {
echo ‘<em>Facepalm!</em>’;
}
Sunday, March 1, 2009
11. OK, what was the syntax
for getting the comment
user ID and the post
author ID again?
Sunday, March 1, 2009
12. So the_author_ID() calls
get_the_author_ID()
which uses global
$authordata... HUH?
Sunday, March 1, 2009
13. Comments
á la Carrington
Sunday, March 1, 2009
23. Context Types
• COMMENT = comment & user info
(dir: comment)
Sunday, March 1, 2009
24. Context Types
• COMMENT = comment & user info
(dir: comment)
• CONTENT = individual post/page info
(dirs: content, excerpt - single)
Sunday, March 1, 2009
25. Context Types
• COMMENT = comment & user info
(dir: comment)
• CONTENT = individual post/page info
(dirs: content, excerpt - single)
• GENERAL = type of page posts)
(dirs: header, sidebar, footer, loop,
Sunday, March 1, 2009
26. Structure
Posts
Single
Page
Sunday, March 1, 2009
27. Structure
Posts
Single Header
Page
Sunday, March 1, 2009
28. Structure
Posts
Single Loop
Header
Page
Sunday, March 1, 2009
29. Structure
Posts
Content/
Single Loop
Header
Excerpt
Page
Sunday, March 1, 2009
30. Structure
Posts
Content/
Single Loop
Header
Excerpt
Comments
Page
Sunday, March 1, 2009
31. Structure
Posts
Content/
Single Loop
Header Sidebar
Excerpt
Comments
Page
Sunday, March 1, 2009
32. Structure
Posts
Content/
Single Loop
Header Sidebar Footer
Excerpt
Comments
Page
Sunday, March 1, 2009
33. League night at The
Denverer was fantastic!
I always check with – Alex King
The Denverer for
which REI to shop at.
– Alexander K.
The Denverer always
knows the best places
The Denverer has to buy sweaters.
great prime rib.
– A. Thomas King
– A. King
Sunday, March 1, 2009