13. Main content
(dynamic content)
the loop
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.
Read: http://codex.wordpress.org/The_Loop
19. Template File Hierarchy
link to page.php
show your page detail
link to category.php
show all post in ‘news’ category
link to single.php
show your post detail
20. Post vs Page
Post Page
Posts are content entries listed in reverse
chronological order on your blog’s home
page.
Pages are meant to be static “one-off” type
content such as your about, contact, privacy
policy, legal disclaimers, etc.
Posts are timely Pages are timeless
Posts can be categorized Pages are hierarchical
Posts are included in RSS feed Pages are not
Posts do not Pages have custom template