14. How Do I Edit My WP Theme? In WP dashboard: Appearance -> Editor Click on the page you want to edit:
15.
16. Which file does what? A page file (index, single, page) calls and loads other files for specific page content areas:
17.
18.
19.
20.
21. Hacking with Conditional Tags Do “ABC” when “XYZ” Condition is met: <?php if (is_home()) { ?> Show my big block of SEO keyword-laden text <? } ?> By replacing “is_home” with “is_front_page”, “is_single”, “is_sticky”, “is_page”, “is_page_template”, “is_category”, “is_tag”, “is_author”, “is_date”, “is_archive”, or “is_attachment” to make your message show up on nearly any WordPress page.
22. Having Multiple Conditions Do “ABC” when “XYZ” Condition is met, elseif single post page do “DEF” <?php if (is_home()) { ?> Show my home page text block <?php } elseif (is_single()) { ?> Show my single post text block instead <? } ?> In this example we show custom text for the home page, or on single pages. If neither condition is met – we don't show any custom text.
23. Multiple Conditions Else Default Do “ABC” when “XYZ” Condition is met, elseif single post page do “DEF”, else show do default for all other instances <?php if (is_home()) { ?> Show my home page text block <?php } elseif (is_single()) { ?> Show my single post text block instead <?php else { ?> Show my default text for all other conditions <? } ?>
24.
25. Show Everywhere, Except... Use the concept in reverse to show everywhere except where you don't want it... <?php if (is_home()) { } Else { ?> <p>Show this everywhere!</p> <?php } ?> In this example we show nothing when the home page is shown, “ else” show it every other time.
26. Conditionally Use WP Functions Use a Conditional tag to force a WP Function <? php if (is_home()) { wp_list_bookmarks(); } ?> Use conditional statements to do things like get_tags, get_category_parents, get_page_children, get_user_meta, and many more... Reference: http://codex.wordpress.org/Function_Reference