<?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>Alex Mansfield &#187; General</title>
	<atom:link href="http://alexmansfield.com/category/general/feed" rel="self" type="application/rss+xml" />
	<link>http://alexmansfield.com</link>
	<description>WordPress Developer</description>
	<lastBuildDate>Sat, 21 Jan 2012 23:27:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Sackcloth Studios Redesign</title>
		<link>http://alexmansfield.com/general/sackcloth-redesign</link>
		<comments>http://alexmansfield.com/general/sackcloth-redesign#comments</comments>
		<pubDate>Thu, 24 Feb 2011 01:39:02 +0000</pubDate>
		<dc:creator>alexmansfield</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://alexmansfield.com/?p=422</guid>
		<description><![CDATA[It&#8217;s been a few years since I first launched sackclothstudios.com (my business site) and it was beginning to show it&#8217;s age. The newest post on the blog was over a year old and the site just needed a little love. I figured while I was at it, I might as well document the process. Planning [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a few years since I first launched <a href="http://sackclothstudios.com">sackclothstudios.com</a> (my business site) and it was beginning to show it&#8217;s age. The newest post on the blog was over a year old and the site just needed a little love. I figured while I was at it, I might as well document the process.</p>
<p><span id="more-422"></span><br />
<h3>Planning</h3>
<p>I knew that I wanted something at least a little more unique. My previous design was nice enough, but it wasn&#8217;t really that different from any number of other sites floating around cyberspace. One of the first design elements I settled on was a bottom aligned header. Rather than place my logo and navigation at the top of the page, I would fix it to the bottom of the browser window. It seems to work well in all browsers except embedded Safari.</p>
<p>The other thing I knew I wanted to change was the blog. Since I started <a href="http://alexmansfield.com">alexmansfield.com</a>, I didn&#8217;t have much use for the Sackcloth Studios blog. So with the new site design, the blog is replaced by my portfolio. I might add a more traditional blog again in the future, but for the moment I think the portfolio will be just fine. I only had a couple posts on the old blog that got many links, so I re-published them here and redirected the old pages here.</p>
<h3>Design</h3>
<p>I already mentioned the bottom aligned header. After that I decided to make extensive use of the @font-face css property. I chose to use the <a href="http://www.josbuivenga.demon.nl/museo.html">Museo</a> font by <a href="http://www.josbuivenga.demon.nl/index.html">Jos Buivenga</a>, which I had already used sparingly in my first design. Next I decided to use a small background image in the lower right hand corner. As I started to build the site, I realized I didn&#8217;t need a sidebar. This left more room for the background image even at smaller screen sizes. The footer was also unnecessary. Finally, I found a nicely drawn <a href="http://icons.mysitemyway.com/category/magic-marker-icons/">Magic Marker</a> icon set with more icons than I could ever dream of using. Part way through the design process I changed the background color from white to light gray, which really helped give the site the look I was going for.</p>
<h3>Development</h3>
<p>When I first started building the theme, I planned on using the new custom post types feature for the portfolio. However, the more I worked with it, the more I realized that old fashioned categories were the best tool for the job. For the portfolio posts, I decided to display the screenshots by looping through all the images associated with the post. That makes adding an image as simple as can be. I can just go to the post, upload an image, and it will automatically show up on the page. However, this became a problem when I decided to use thumbnails on the portfolio category page. If I uploaded a thumbnail, it would automatically show up on the post page, even if I didn&#8217;t want it to be displayed there. To solve this problem, I used this handy little piece of code.</p>
<pre class="brush: php; title: ; notranslate">$attachments = get_posts($args);
if ($attachments) {&lt;br /&gt;   foreach ($attachments as $attachment) {
      if ($attachment-&gt;ID != get_post_thumbnail_id()){
         $image = get_image_by_id($attachment-&gt;ID);
         echo '&lt;img src=&quot;' . $image-&gt;src . '&quot; alt=&quot;'. $image-&gt;alt . '&quot;&gt;';
      }
   }
}</pre>
<p>As it&#8217;s looping through the images, it checks to make sure it&#8217;s not the thumbnail image before displaying it. Problem solved! The last little touch was adding support for custom background images. My face is on the home page, but I really didn&#8217;t want it on every page, so I added a custom field where I could specify the location of an image to be used for individual posts.</p>
<h3>Plugins</h3>
<p>Gravity Forms<br /> &#8211; <a href="https://www.e-junkie.com/ecom/gb.php?cl=54585&amp;c=ib&amp;aff=123038">http://gravityforms.com</a></p>
<p>I decided to use the Gravity Forms plugin to handle the contact form. It was a snap to set up and it does everything I could ask for (and probably quite a bit more).</p>
<p>Limit Login Attempts<br /> &#8211; <a href="http://devel.kostdoktorn.se/limit-login-attempts/">http://devel.kostdoktorn.se/limit-login-attempts/</a><br /> &#8211; <a href="http://wordpress.org/extend/plugins/limit-login-attempts/">http://wordpress.org/extend/plugins/limit-login-attempts/</a></p>
<p>This simply limits the number of failed login attempts that can happen before blocking a user. This prevents trial and error attempts at compromising the login.</p>
<p>Google Analytics for WordPress<br /> &#8211; <a href="http://yoast.com/wordpress/google-analytics/">http://yoast.com/wordpress/google-analytics/</a><br /> &#8211; <a href="http://wordpress.org/extend/plugins/google-analytics-for-wordpress/">http://wordpress.org/extend/plugins/google-analytics-for-wordpress/</a></p>
<p>A great plugin from Joost de Valk that handles everything imaginable relating to Google Analytics and WordPress.</p>
<p>W3 Total Cache<br /> &#8211; <a href="http://www.w3-edge.com/wordpress-plugins/w3-total-cache/">http://www.w3-edge.com/wordpress-plugins/w3-total-cache<br /> </a>- <a href="http://wordpress.org/extend/plugins/w3-total-cache/">http://wordpress.org/extend/plugins/w3-total-cache/</a></p>
<p>Simply the best caching plugin I&#8217;ve come across so far.</p>
<h3>Implementation</h3>
<p>I didn&#8217;t do too much out of the ordinary here. I had a few posts that I wanted to keep for future reference, but I didn&#8217;t want to publish theme here, so I tried using the <a href="http://wordpress.org/extend/plugins/pdf24-post-to-pdf/">PDF24 Article To PDF</a> plugin to create PDF documents of the posts. It worked great, but it left out all the code blocks, so I ended up backing them up manually. I thought about using the <a href="http://wordpress.org/extend/plugins/development-theme-test/">Development Theme Test</a> plugin to test the new theme on the old WordPress installation, but in the end I decided to just start from scratch. So from there all I had to do was install WordPress (3.0 RC) in a subdirectory (see <a href="http://alexmansfield.com/wordpress/wordpress-in-a-subdirectory">Installing WordPress in a Subdirectory</a>), upload the theme, add content, and set the new installation to take over for the old one.</p>
<p>If you have any questions about the process, feel free to <a href="http://alexmansfield.com/contact/">contact me</a> or post a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexmansfield.com/general/sackcloth-redesign/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom WordPress Theme</title>
		<link>http://alexmansfield.com/general/custom-wordpress-theme</link>
		<comments>http://alexmansfield.com/general/custom-wordpress-theme#comments</comments>
		<pubDate>Sat, 20 Jun 2009 03:50:51 +0000</pubDate>
		<dc:creator>alexmansfield</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://alexmansfield.com/?p=212</guid>
		<description><![CDATA[This theme is barely usable, but I&#8217;m tired of using someone else&#8217;s theme, so I figured I&#8217;d upload it. I built it on top of my Sanitary WordPress theme this afternoon. It really has no features at all, and I&#8217;m not super excited about it, but at least my blog doesn&#8217;t look exactly the same [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-216" href="http://alexmansfield.com/general/custom-wordpress-theme/attachment/custom-wordpress-theme/"><img class="aligncenter size-full wp-image-216" title="custom-wordpress-theme" src="http://alexmansfield.com/wpress/wp-content/uploads/2009/06/custom-wordpress-theme.jpg" alt="custom-wordpress-theme" width="560" height="215" /></a></p>
<p>This theme is barely usable, but I&#8217;m tired of using someone else&#8217;s theme, so I figured I&#8217;d upload it. I built it on top of my <a href="http://alexmansfield.com/themes/sanitary">Sanitary WordPress theme</a> this afternoon. It really has no features at all, and I&#8217;m not super excited about it, but at least my blog doesn&#8217;t look exactly the same as 30,000 other blogs now. I&#8217;m sure it will evolve over time.</p>
<p>Have any comments or suggestions regarding the design? Comment below!</p>
]]></content:encoded>
			<wfw:commentRss>http://alexmansfield.com/general/custom-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Name is Alex Mansfield</title>
		<link>http://alexmansfield.com/general/my-name-is-alex-mansfield</link>
		<comments>http://alexmansfield.com/general/my-name-is-alex-mansfield#comments</comments>
		<pubDate>Mon, 01 Jun 2009 15:00:09 +0000</pubDate>
		<dc:creator>alexmansfield</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Progress]]></category>

		<guid isPermaLink="false">http://alexmansfield.com/cms/?p=3</guid>
		<description><![CDATA[Today is June first. No one knows I am writing this here. It will probably be a few days before anyone reads this at all. It will probably be quite a few more days before anyone cares. I am a web designer and developer and this is my personal experiment. There are so many blogs [...]]]></description>
			<content:encoded><![CDATA[<p>Today is June first. No one knows I am writing this here. It will probably be a few days before anyone reads this at all. It will probably be quite a few more days before anyone cares.</p>
<p>I am a web designer and developer and this is my personal experiment. There are so many blogs floating around with instructions on creating a successful blog. I plan to test their theories and write about what happens. I will share the steps I&#8217;m taking, why I&#8217;m taking them, and how it turns out.</p>
<p>I want this to be a helpful place. Please ask questions (as soon as I create a contact form). I&#8217;d love to help you find the answer. On the other hand, if you have a successful blog of your own, I&#8217;d love to hear how you did it.</p>
<p>That&#8217;s all for tonight. More to come tomorrow&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://alexmansfield.com/general/my-name-is-alex-mansfield/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

