{"id":6138,"date":"2011-11-27T18:10:42","date_gmt":"2011-11-27T23:10:42","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=6138"},"modified":"2015-03-29T15:08:27","modified_gmt":"2015-03-29T15:08:27","slug":"on-working-through-the-blog-coding","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=6138","title":{"rendered":"On Working Through the Blog Coding"},"content":{"rendered":"<p>No, blogging world, I have not forgotten about you.  I&#8217;ve been very, very busy, though I did squeeze in a <a href=\"http:\/\/tolkien-weekly.livejournal.com\/848845.html\"><i>Doctor Who<\/i> drabble based on <i>The Silmarillion<\/i><\/a>.  (Yes, really.  Don&#8217;t be shocked.  It works.)<\/p>\n<p>Last weekend I was in New Jersey for Philcon.  I took off Friday and Monday.  When I got back to the office on Tuesday, I had a <i>lot<\/i> of writing to knock out on Tuesday and Wednesday.  And I did, but this left me feeling mentally drained.  Then there was Thanksgiving, then there was <i>more<\/i> writing on Friday, and yesterday I went to Virginia for my niece&#8217;s birthday party.<\/p>\n<p>November is an insane little month. \ud83d\ude09<\/p>\n<p>Today, besides replacing the brake lights in my Beetle and doing my laundry on what is likely to be the last good outdoor laundry day of the year, I&#8217;ve done more work on coding my new website.<\/p>\n<p>I mentioned on Monday that <a href=\"http:\/\/www.allyngibson.com\/?p=6131\">I&#8217;m thinking about doing a podcast<\/a> when I relaunch my website in the spring.  I have the title, I know roughly what the logo will look like, that sort of thing.<\/p>\n<p>The problem was, I was <i>not<\/i> sure how to integrate a podcast into the landing page.<\/p>\n<p>And then it <i>struck<\/i> me yesterday.  I had this &#8220;spot&#8221; that I wasn&#8217;t sure how to fill, and I realized <i>that<\/i> was where it needed to go.<\/p>\n<p>This isn&#8217;t a case of &#8220;Oh, I have this spot, and I have this content, and this is obviously where it should go.&#8221;  Instead, it&#8217;s a case of, &#8220;I&#8217;ve sketched out this spot for something important, but I don&#8217;t know how something rates as important to go here.&#8221;<\/p>\n<p>It&#8217;s actually <i>three<\/i> spots I had to fill.  And what I realized was that 1) I needed a spot for a brief self-introduction and 2) I needed a spot for a bibliography introduction.  Somehow, I&#8217;d overlooked <i>both<\/i> of these things. and they&#8217;re both important for the working writer.  A podcast fits in well as the third.  Firstly, these three spots, while they use graphic headers, the graphics are sized differently than the standard post thumbnails, so they&#8217;re going to look <i>different<\/i>.  Secondly, these are essentially &#8220;static&#8221; spots; they won&#8217;t change in the way that the listing of recent posts will change with content moving down the line as newer content is added.<\/p>\n<p>This necessitated a rethink of the way the WordPress loops worked in the home.php file.  (And yes, I am fully cognizant of the fact that that sentence was as clear as mud to most of you reading this.  I&#8217;m sorry.)  I have an absurd number of loops, and they pull both pages (in other words, static content) and posts (in other words, blog content).  The first loop pulls five pages to do a scroller.  (This necessitated enabling tags on pages.)  There&#8217;s a loop that pulls three posts in the spotlight category.  There&#8217;s another loop that pulls six posts that are not in the spotlight and podcasts categories.  Oh, and it also skips Twitter archive posts; my current blog theme does that.  Finally, it runs loops that pull the &#8220;About&#8221; page, the &#8220;Bibliography&#8221; page, and the most recent podcast post.  Six loops on a single page, that&#8217;s a little absurd. \ud83d\ude42<\/p>\n<p>But I&#8217;m trying to build a magazine-styled WordPress theme and I&#8217;m thinking in CMS-terms rather than blog-platform-terms, which leads one into doing strange things like making pages taggable and putting six custom loops on a single page. \ud83d\ude09<\/p>\n<p>This leads to my next conceptual thought &mdash; I&#8217;ve widgeted the <i>hell<\/i> out of this theme.  The footer has five widgeted areas, and I&#8217;m doing some different things with the sidebar.  For one thing, instead of doing a single sidebar block, I&#8217;ve broken it up into three smaller blocks, each formatted differently.  And then I&#8217;ve done something new &mdash; I&#8217;ve created widgets for areas I can use for banners, graphics, even ads if I want.<\/p>\n<p>I&#8217;m trying to decide whether or not to use Post Formats.  It&#8217;s a new feature in WordPress, one that I&#8217;m not familiar with.  Post Formats give WordPress some <a href=\"http:\/\/www.netmagazine.com\/features\/wordpress-post-formats-made-easy\">Tumblr-like features<\/a>, allowing different formatting for different types of post content.  I&#8217;m going to study the <a href=\"http:\/\/theme.wordpress.com\/themes\/esquire\/\">Esquire theme<\/a> and its implementation of the feature.  The thing is, I&#8217;m not sure I would <i>use<\/i> this feature, so it&#8217;s possible that my studies here may be all for naught.<\/p>\n<p>I <i>knew<\/i> there was a reason I had the Esquire code around and handy&#8230; \ud83d\ude09<\/p>\n<p>Otherwise, I think I&#8217;m nearing completion of this project.  I have some CSS changes to make, and I still need to implement a &#8220;Share to Social Media&#8221; solution.  (I know what I want to do, I know how it will work.  I just haven&#8217;t sat down to do the coding necessary to make it work.)  This is the <a href=\"http:\/\/www.allyngibson.com\/?p=6072\">same ten percent<\/a> of coding that had still to do six weeks ago.  I&#8217;m still weighing the feasibility of <a href=\"http:\/\/www.allyngibson.com\/?p=6095\">the custom mobile theme<\/a>; I may leave this for a plug-in just so I don&#8217;t have to fret it.<\/p>\n<p>That&#8217;s the thing.  There are lots of things that I can implement through plug-ins.  I&#8217;m trying to avoid using plug-ins when a built-in WordPress feature will suffice.  It&#8217;s just&#8230; <i>cleaner<\/i> that way.  I&#8217;m also trying to make things easy to maintain and update by automating some things (like the featured posts display) that I currently have to handle manually.<\/p>\n<p>Then, once this is all done, I&#8217;ll hammer the hell out of the theme to make sure the code doesn&#8217;t break.  And I&#8217;m likely to migrate the current website sooner rather than later; this week, my site became <i>seriously<\/i> flaky in ways that worried me.  (And I <i>never<\/i> worry.)  Early 2012 rather than June 2012. \ud83d\ude42<\/p>\n<p>Enough about the coding.<\/p>\n<p>On tap this week, besides work, is an essay for another website on an interesting topic.<\/p>\n<p>And if you liked Peter David&#8217;s <i>Sir Apropos of Nothing<\/i> novels, give his latest <i>Fable<\/i> novel, <i>Blood Ties<\/i>, a try.  The protagonist is positively Aproposian, and it&#8217;s been a pleasant read. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No, blogging world, I have not forgotten about you. I&#8217;ve been very, very busy, though I did squeeze in a Doctor Who drabble based on The Silmarillion. (Yes, really. Don&#8217;t be shocked. It works.) Last weekend I was in New Jersey for Philcon. I took off Friday and Monday. When I got back to the<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=6138\">Continue reading <span class=\"screen-reader-text\">&#8220;On Working Through the Blog Coding&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4095],"tags":[57,58,4096],"class_list":["post-6138","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-css","tag-php","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/6138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6138"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/6138\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}