{"id":286,"date":"2007-06-30T14:24:24","date_gmt":"2007-06-30T06:24:24","guid":{"rendered":"https:\/\/librariansmatter.com\/blog\/2007\/06\/30\/perth-barcamp-2007-wordpress-loop-gary-barber\/"},"modified":"2007-06-30T14:24:24","modified_gmt":"2007-06-30T06:24:24","slug":"perth-barcamp-2007-wordpress-loop-gary-barber","status":"publish","type":"post","link":"https:\/\/librariansmatter.com\/blog\/2007\/06\/30\/perth-barcamp-2007-wordpress-loop-gary-barber\/","title":{"rendered":"Perth barcamp 2007 &#8211; WordPress loop &#8211; Gary Barber"},"content":{"rendered":"<p>Gary Barber is the <a href=\"http:\/\/www.manwithnoblog.com\/\" target=\"_blank\">Man with no blog<\/a> and his slides are on slideshare, <a href=\"http:\/\/www.slideshare.net\/CannedTuna\/the-loop\">Doin&#8217; da Loop with da WordPrez<\/a><\/p>\n<ul>\n<li>He promised not to be too technical<\/li>\n<\/ul>\n<ul>\n<li>Was going to do it all in lolcat speak<\/li>\n<li>Presuming know plugins, widgets, can alter source code of WP blog, know what php is, not happy coding, not pulled template apart<\/li>\n<li>What is the loop\n<ul>\n<li>Core of WordPress<\/li>\n<li>PHP code distributed thoughout the system<\/li>\n<li>Lets you display comments, posts, rest of blog<\/li>\n<li>Loop is the single central control point<\/li>\n<li>index.php<\/li>\n<li>remove index.php &#8211; goes back to default theme. Remove default theme after that, then deadibones.<\/li>\n<\/ul>\n<p>How does the Loop works:<\/p>\n<ul>\n<li>in index.php  &#8211; middle bit btw header and end<\/li>\n<li>1. If have posts<\/li>\n<li>2. Gets the posts plus post meta data<\/li>\n<li>3. Gets it in the right format<\/li>\n<li>4. Does it over and over.<\/li>\n<\/ul>\n<p>Looking at default template<\/p>\n<ul>\n<li>If want to make changes to happen after every post &#8211; then put it just after the &lt;div&gt; and before the &lt;endwhile&gt;<\/li>\n<li>Look at where you add title and permalink<\/li>\n<\/ul>\n<p>Then in template div class align..<\/li>\n<li>The loop is all through wordpress<\/li>\n<li>Archive, comments<\/li>\n<li>What can you do with the loop?\n<ul>\n<li>Customise the loop -display excerpt only<\/li>\n<li>Customise CSS for different dates, times, catergories, authors, days of the week (Eg. Things written Tuesday have a blue background)<\/li>\n<li>Change home page to static one<\/li>\n<li>Can place items between blog posts &#8211; put it before the end while<\/li>\n<\/ul>\n<p>Before start hacking the code<\/p>\n<ul>\n<li>Backup<\/li>\n<li>Check to see whether there is a plugin or widget that does the same thing<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Gary Barber is the Man with no blog and his slides are on slideshare, Doin&#8217; da Loop with da WordPrez He promised not to be too technical Was going to do it all in lolcat speak Presuming know plugins, widgets, can alter source code of WP blog, know what php is, not happy coding, not&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[33,35,436],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-barcamp","tag-barcampperth07","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p3BXdd-4C","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/comments?post=286"}],"version-history":[{"count":0,"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/posts\/286\/revisions"}],"wp:attachment":[{"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/media?parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/categories?post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/librariansmatter.com\/blog\/wp-json\/wp\/v2\/tags?post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}