<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>chinocharles.com &#187; Wordpress</title>
	<atom:link href="http://blog.chinocharles.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chinocharles.com</link>
	<description>Building castles in the air</description>
	<lastBuildDate>Mon, 14 Sep 2009 16:31:07 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adapting Wordpress for Newspapers and Publications</title>
		<link>http://blog.chinocharles.com/2009/07/adapting-wordpress-for-newspapers-and-publications/</link>
		<comments>http://blog.chinocharles.com/2009/07/adapting-wordpress-for-newspapers-and-publications/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 15:48:32 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Hudson Monthly]]></category>
		<category><![CDATA[INDenver Times]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[Rocky Mountain Independent]]></category>
		<category><![CDATA[Stabroek News]]></category>
		<category><![CDATA[Tablet Magazine]]></category>
		<category><![CDATA[WP_Query();]]></category>
		<category><![CDATA[WYSIWYG]]></category>

		<guid isPermaLink="false">http://blog.chinocharles.com/?p=79</guid>
		<description><![CDATA[I was charged with the task of redoing the web site for Hudson Monthly.  If you look at the current iteration, you can see it needed some love in a big way.

I wanted to use Wordpress because it was a good way to provide the editor with an easy-to-use WYSIWYG interface without sucking up a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I was charged with the task of redoing the web site for <a href="http://www.hudsonmonthly.com" target="_blank">Hudson Monthly</a>.  If you look at the current iteration, you can see it needed some love in a big way.</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 1px solid black; margin: 5px; text-align: center;" title="1" src="http://blog.chinocharles.com/wp-content/uploads/2009/07/11-1024x459.jpg" alt="1" width="589" height="264" /></p>
<p style="text-align: left;">I wanted to use <a href="http://www.wordpress.org">Wordpress</a> because it was a good way to provide the editor with an easy-to-use WYSIWYG interface without sucking up a ton of dev time.  We have dozens of sites like this one and without Wordpress mods I would likely spend most of my time working on them.  This web site had to accomplish a few things:</p>
<ol style="text-align: left;">
<li>It couldn&#8217;t feel too much like a blog.</li>
<li>It had to provide a way of archiving old posts.</li>
<li>It had to provide a reliable, intuitive way for readers to access these archives.</li>
</ol>
<p style="text-align: left;">Because archiving was important, I didn&#8217;t want to use pages to display the information in this publication.  <a href="http://codex.wordpress.org/Pages" target="_blank">One of the major limitations of pages in Wordpress is that a page, although technically a post, doesn&#8217;t allow for logical scalability.</a> You create a page called &#8220;Recipes&#8221; and you add a bunch of recipes to it.  Say down the line you want to add a bunch more.  In a page situation, you would edit the original and add more recipes.  What happens when you have 3,000 recipes?  Your page is enormous, it probably won&#8217;t load, and you&#8217;ll probably run into problems editing it.  Fixing this down the line can be a real pain in the butt.</p>
<p style="text-align: left;">The best way to do it is using <a href="http://codex.wordpress.org/Category_Templates" target="_blank">categories</a> and a little Wordpress fancy dancing using the <a href="http://codex.wordpress.org/Function_Reference/WP_Query" target="_blank">WP_Query(); function</a>.  I&#8217;ll use an example from this publication.  Hudson Monthly has a &#8220;Making the Scene&#8221; section every month where a photographer goes to a local event and shoots pictures of the event and the people involved.  There is one of these per issue and it is monthly.  Knowing this, my objectives were as follows:</p>
<ol style="text-align: left;">
<li>Show an excerpt of the latest &#8220;Making the Scene&#8221; story on the main page with a link to the full version.</li>
<li>Link to the latest &#8220;Making the Scene&#8221; story from every page on the site.</li>
<li>Link to a list of stories from this section from the main page.</li>
</ol>
<p style="text-align: left;">For the sake of archiving everything on the site, every single entry had to be a blog post.  The only page on the site would be the contact page because that would rarely (if ever) change and needed no archive.  Therefore, I set up a bunch of new categories, one of which was Making the Scene.  I also went into the <a href="http://codex.wordpress.org/Using_Permalinks" target="_blank">permalink</a> settings and set my category permalinks to be /section/category-name to be more indicative of a print product and not a blog.</p>
<p style="text-align: left;">For each of my objectives, I needed a query.  Luckily, the wonderful Wordpress API has a function to handle this baked in.</p>
<pre style="text-align: left;">&lt;?php $mts_single = new WP_Query('category_name=making-the-scene&amp;showposts=1'); ?&gt;</pre>
<p style="text-align: left;">This line of code drags only the latest post from the making-the-scene category.  Creating a loop with this query is easy, too.</p>
<pre style="text-align: left;">&lt;?php while ($mts_single-&gt;have_posts()) : $mts_single-&gt;the_post(); ?&gt;
  &lt;!-- All of your stuff goes in here --&gt;
&lt;?php endwhile; ?&gt;</pre>
<p style="text-align: left;">Placing this on the index page gave me the ability to drag the title, excerpt and permalink from the post.</p>
<pre style="text-align: left;">&lt;?php while ($mts_single-&gt;have_posts()) : $mts_single-&gt;the_post(); ?&gt;
  &lt;h2&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
  &lt;p&gt;&lt;?php the_excerpt(); ?&gt;
&lt;?php endwhile; ?&gt;</pre>
<p style="text-align: left;">Objective one complete.  For objective two, I used the same query on the header.php page to make a dynamic nav button using the permalink.</p>
<pre style="text-align: left;">&lt;?php while ($mts_single-&gt;have_posts()) : $mts_single-&gt;the_post(); ?&gt;
  &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;Making The Scene&lt;/a&gt;
&lt;?php endwhile; ?&gt;</pre>
<p style="text-align: left;">Objective two was complete.  Objective three was a piece of cake.  Because these are all categories, there is a page set up to display posts from those categories.  Remember, I changed the permalink structure to display section in the URL path, so in order to link to all of the Making the Scene posts, I had to add a link on the main page to http://www.hudsonmonthly.com/section/making-the-scene.  Google will love that URL, too.</p>
<p style="text-align: left;">Looking back on all of this, it becomes clear how you can use Wordpress to create a newspaper web site quickly and easily.  You can use categories to and the WP_Query(); function to segregate content by category on your site and manipulate it in an almost countless number of ways.  With web development being such an expensive venture, I wouldn&#8217;t be surprised if you begin to see more and more newspapers moving to Wordpress as a CMS.  These ones already have.</p>
<p style="text-align: left;"><a href="http://www.rockymountainindependent.com/" target="_blank">http://www.rockymountainindependent.com/</a><br />
<a href="http://www.stabroeknews.com/" target="_blank">http://www.stabroeknews.com/</a><br />
<a href="http://www.tabletmag.com/" target="_blank">http://www.tabletmag.com/</a><br />
<a href="http://www.indenvertimes.com/" target="_blank">http://www.indenvertimes.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chinocharles.com/2009/07/adapting-wordpress-for-newspapers-and-publications/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Wrap-up: July 12th</title>
		<link>http://blog.chinocharles.com/2009/07/wrap-up-july-12th/</link>
		<comments>http://blog.chinocharles.com/2009/07/wrap-up-july-12th/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 02:09:06 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[Wrap-up]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[gym]]></category>
		<category><![CDATA[house]]></category>
		<category><![CDATA[Import Alliance]]></category>
		<category><![CDATA[Kent]]></category>
		<category><![CDATA[lifecenter plus]]></category>
		<category><![CDATA[turbo]]></category>
		<category><![CDATA[volleyball]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.chinocharles.com/?p=56</guid>
		<description><![CDATA[It never feels like there is enough time in a week, you know?
Wednesday was volleyball playoffs.  In my team&#8217;s first session, we came in 4th place in the league.  It was good enough to get us a first round bye in the playoffs, which was pretty cool if you ask me.  Well, problem is we [...]]]></description>
			<content:encoded><![CDATA[<p>It never feels like there is enough time in a week, you know?</p>
<p>Wednesday was volleyball playoffs.  In my team&#8217;s first session, we came in 4th place in the league.  It was good enough to get us a first round bye in the playoffs, which was pretty cool if you ask me.  Well, problem is we lost in the second round.  Double elimination.  This week is a big one.</p>
<p>Friday I had my &#8220;personal training&#8221; appointment at <a href="http://www.lifecenterplus.com" target="_blank">my new gym</a>.    I use the term personal training loosely because all he really did was walk me around the gym, show me where stuff is and briefly discuss how to lift weights properly.  That is my favorite at a gym.  You&#8217;ll see some dispropotional kid pumping dumbells like a rabbit on methamphetamines and giving you that eye like &#8220;I just lifted more than you.&#8221;  Sure dude.  I could slam a plane into the ground and survive, but it doesn&#8217;t mean I know how to land.  Anyway, it isn&#8217;t a competition, and that is the mindset I&#8217;m trying to keep as I move forward.  Don&#8217;t look at what everyone else is lifting.  Look in the mirror.  If you&#8217;re happy with that, nothing else matters.  That isn&#8217;t to say I&#8217;m unhappy with the way I am now, but making the transition from a physically demanding 50+ hour/week kitchen job to a sedentary desk job had just started to show on my gut.  Figured I&#8217;d nip that one in the bud before I woke up 30 and overweight.</p>
<p>Saturday was house hunting.  I&#8217;ll spare you the details because I could write for 36 hours about how that went.  Here are the bulletpoints:</p>
<ol>
<li>Most of the houses we looked at were overpriced.  I&#8217;m getting used to the fact that negotiations might involve brass knuckles.</li>
<li>People in Kent are messy.</li>
<li>Often times people that attempt to make changes to a home have no clue what they are doing.</li>
<li>It is rare where you find a house that is exactly as you&#8217;d want it.</li>
</ol>
<p>&#8216;Nuff said.</p>
<p>Today was a lazy day.  Did a little cardio, worked on the Wordpress store and went to dinner with the family.</p>
<p>This week&#8217;s goals:</p>
<ol>
<li>Start prepping the car for Import Alliance
<ul>
<li>Full interior detail</li>
<li>Clean door jambs</li>
<li>Fix sound system wiring</li>
<li>Buy t-bolt clamps for turbo piping</li>
<li>Purchase any other hardware that may be necessary</li>
</ul>
</li>
<li>Finish new Dixcom.com site</li>
<li>Finish Wordpress Store
<ul>
<li>Posts in header on pages</li>
<li>Graphic fixes</li>
<li>Finish footer</li>
<li>Finalize CSS</li>
<li>Test, test, test, test, test</li>
</ul>
</li>
</ol>
<p>Have a good week!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chinocharles.com/2009/07/wrap-up-july-12th/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Wordpress Store Status: July 10</title>
		<link>http://blog.chinocharles.com/2009/07/wordpress-store-status-july-10/</link>
		<comments>http://blog.chinocharles.com/2009/07/wordpress-store-status-july-10/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 06:47:53 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[custom loop]]></category>
		<category><![CDATA[filter by category]]></category>
		<category><![CDATA[Starkers]]></category>
		<category><![CDATA[the loop]]></category>
		<category><![CDATA[WP Framework]]></category>
		<category><![CDATA[wp-e-commerce]]></category>

		<guid isPermaLink="false">http://blog.chinocharles.com/?p=15</guid>
		<description><![CDATA[
Progress: 35% Complete
This is my first foray into modding the WP Framework theme. This is also my first attempt at making use of the wp-e-commerce plugin and my first attempt at adding another loop to the mix. Lots of firsts in this project. Oh, and don&#8217;t go thinking that the pixelated logo is a failed [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-large wp-image-16" style="border: 1px solid black; margin: 5px;" title="Untitled-3" src="http://blog.chinocharles.com/wp-content/uploads/2009/07/Untitled-3-1024x522.jpg" alt="Untitled-3" width="598" height="310" /></p>
<h2 style="text-align: left;"><span style="color: #800000;"><span style="color: #000000;">Progress:</span> 35% Complete</span></h2>
<p style="text-align: left;">This is my first foray into modding the <a href="http://wpframework.com/" target="_blank">WP Framework</a> theme. This is also my first attempt at making use of the <a href="http://wordpress.org/extend/plugins/wp-e-commerce/" target="_blank">wp-e-commerce</a> plugin and my first attempt at adding <a href="http://codex.wordpress.org/The_Loop" target="_blank">another loop</a> to the mix. Lots of firsts in this project. Oh, and don&#8217;t go thinking that the pixelated logo is a failed attempt at being a trailblazer. I&#8217;m trying to keep it neutral until launch.</p>
<p style="text-align: left;">Thus far WP Framework has proven to be a bit more complicated than <a href="http://elliotjaystocks.com/blog/archive/2008/starkers-for-wordpress-262/" target="_blank">Starkers</a>, but it may very well be for good reason. It seems like the packaged CSS files that come with the theme account for a lot of the discrepencies between IE and Firefox. I have run into very few issues thus far with browser compatibility. Before it was a nightmare, but my novice-level CSS skills play into that, I&#8217;m sure. I also think it is awesome that it came with a container-style div. No more <a href="http://code.google.com/p/blueprintcss/" target="_blank">Blueprint</a> implementation. Rock!</p>
<p style="text-align: left;">The WP E-commerce plugin breaks the drag-and-drop widget interface in Wordpress 2.8.1, which is a real bummer. I&#8217;m hoping they iron that kink out before this site is ready to launch. I haven&#8217;t had much of a chance to play with the interface itself as of yet, but from what I can see in the admin portion of the site it all looks quite intuitive and easy to use, which is exactly what you&#8217;re looking for with a site like this. I&#8217;m not sure I&#8217;d be comfortable using it for a company with a large catalog and a lot of traffic, but for something like a botique tuning shop its lightweight, cost-effective&#8230; a good choice all around.</p>
<p style="text-align: left;">As for the loop, I&#8217;ll first say that Wordpress calls the while statement that pulls posts from the database &#8220;The Loop.&#8221; The goal was to split the blog entries in two. The top of the page was to have three boxes with an image and a line of text. These had to be dynamic (they could be changed without any hard coding). Because of the nature of the project it was unnecessary to display categories on the site. I am actually using categories to filter blog posts and change CSS instead. First, I wrote the CSS for the top boxes.</p>
<blockquote>
<pre>.topbox {
display: inline-block;
background-color: white;
vertical-align: top;
border: 1px dotted black;
margin: 18px 5px 5px 5px;
font-family: Helvetica, sans-serif;
font-weight: bold;
font-size: 0.9em;
}

.topbox p {
margin: 5px;
}

.topbox p img {
margin: 0px 0px 5px 0px;
border: 1px dotted red;
}</pre>
</blockquote>
<p>Not the best look, but its something to work with. Now it was time to add the loop and the HTML to header.php. I consulted <a href="http://codex.wordpress.org/The_Loop" target="_blank">Wordpress&#8217;s documentation</a> to get this piece of code to start a basic loop.</p>
<blockquote>
<pre>&lt;?php if (have_posts()) : ?&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
&lt;!-- do stuff ... --&gt;
&lt;?php endwhile; ?&gt;</pre>
</blockquote>
<p>Turns out that the documentation left out an endif after that endwhile statement.  It should read&#8230;</p>
<blockquote>
<pre>&lt;?php if (have_posts()) : ?&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
&lt;!-- do stuff ... --&gt;
&lt;?php endwhile; endif; ?&gt;</pre>
</blockquote>
<p>Now, I wanted to filter by category.  The way to do this is to throw an extra line of code in after the second line&#8230;</p>
<blockquote>
<pre>&lt;?php if (!in_category('TopBox')) continue; ?&gt;</pre>
</blockquote>
<p style="text-align: left;">This says &#8220;if the post isn&#8217;t in the TopBox category, skip it and cycle back through the loop.&#8221;  The end user can make a new post, insert a 190&#215;110 pixel image and a line of text and as long as the category is set to TopBox it will automatically kick into rotation at the top of the site.  Good way to add a type of feature section to your blog.  Now, this doesn&#8217;t account for the situation in which you have 4 posts in that category.  That would blow my page up.  I&#8217;ll jump that hurdle in the next session.</p>
<p style="text-align: left;">Next steps: kill the white borders on those nav buttons, figure out my mouseover CSS issues, figure out how to get those top boxes to appear on pages, figure a way to place the shopping cart widget on the sidebar.  Figure, figure, figure.</p>
<p style="text-align: left;"><span style="text-decoration: underline;"><a href="http://www.imdb.com/title/tt0066206/" target="_blank">Patton</a></span> and <span style="text-decoration: underline;"><a href="http://www.imdb.com/title/tt0431197/" target="_blank">The Kingdom</a></span> come from Netflix tomorrow, so it may be a couple days before I do any more work on it. Can you believe I&#8217;ve never seen <span style="text-decoration: underline;">Patton</span>?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chinocharles.com/2009/07/wordpress-store-status-july-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
