<?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>Anne Dorko &#187; Development</title>
	<atom:link href="http://www.annedorko.com/blog/category/web/dev/feed" rel="self" type="application/rss+xml" />
	<link>http://www.annedorko.com</link>
	<description>Help for small business</description>
	<lastBuildDate>Fri, 20 Jan 2012 21:36:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting up WordPress as a dictionary site</title>
		<link>http://www.annedorko.com/blog/setting-up-wordpress-as-a-dictionary-site</link>
		<comments>http://www.annedorko.com/blog/setting-up-wordpress-as-a-dictionary-site#comments</comments>
		<pubDate>Thu, 08 Oct 2009 18:58:44 +0000</pubDate>
		<dc:creator>Anne</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.annedorko.com/?p=209</guid>
		<description><![CDATA[<p><strong>Updated on 12/05/2011</strong></p>
<strong>I just launched the <a title="WordPress dictionary" href="http://www.annedorko.com/wp-dictionary">WordPress Dictionary Plugin</a> you asked for!</strong>
<p>Check it out here:</p>
<p><a href="http://www.annedorko.com/wp-dictionary"></a></p>
<p><strong>Original Post:</strong></p>
<p>Recently, I helped launch a website that served as a silly custom dictionary.</p>
<p>The concept was simple enough: create an online dictionary using only custom definitions. At first, I did some Google searches to see if there were any open-source dictionary apps. No such luck!</p>
<p>Then it occurred to me I should try WordPress. Searching the plugins, I realized that there was no dictionary plugin there either. That&#8217;s when I realized that I could set up WordPress itself to run the dictionary entirely.</p>
Organization
<p>I laid out a plan to make sure this would all run smoothly. I would use:</p>

<strong><a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Posts</a>: </strong>for definition entries
<strong><a href="http://codex.wordpress.org/Custom_Fields" target="_blank">Custom Fields</a>: </strong>to separate definitions, emphasis, etc. (made useful in combination with the &#8220;Get Custom Field Values&#8221; plugin)
<strong><a href="http://codex.wordpress.org/First_Steps_With_WordPress#Create_Categories" ... <a href="http://www.annedorko.com/blog/setting-up-wordpress-as-a-dictionary-site">Read More &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Updated on 12/05/2011</strong></p>
<div class="superquote"><strong>I just launched the <a title="WordPress dictionary" href="http://www.annedorko.com/wp-dictionary">WordPress Dictionary Plugin</a> you asked for!</strong></div>
<p>Check it out here:</p>
<p><a href="http://www.annedorko.com/wp-dictionary"><img src="http://annedorko.com/site/wp-content/uploads/2012/01/wordpress-dictionary-plugin-banner.png" alt="" width="800" height="231" /></a></p>
<p><strong>Original Post:</strong></p>
<p>Recently, I helped launch a website that served as a silly custom dictionary.</p>
<p>The concept was simple enough: create an online dictionary using only custom definitions. At first, I did some Google searches to see if there were any open-source dictionary apps. No such luck!</p>
<p>Then it occurred to me I should try WordPress. Searching the plugins, I realized that there was no dictionary plugin there either. That&#8217;s when I realized that I could set up WordPress itself to run the dictionary entirely.</p>
<h2>Organization</h2>
<p>I laid out a plan to make sure this would all run smoothly. I would use:</p>
<ul>
<li><strong><a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Posts</a>: </strong>for definition entries</li>
<li><strong><a href="http://codex.wordpress.org/Custom_Fields" target="_blank">Custom Fields</a>: </strong>to separate definitions, emphasis, etc. (made useful in combination with the &#8220;Get Custom Field Values&#8221; plugin)</li>
<li><strong><a href="http://codex.wordpress.org/First_Steps_With_WordPress#Create_Categories" target="_blank">Categories</a>:</strong> to create letter listing pages</li>
<li><strong><a href="http://www.reflectionmedia.ro/2008/12/wp-post-sorting-plugin/" target="_blank">WP Post Sorting</a>: </strong>a plugin to list entries in alphabetical order on letter listing pages</li>
<li><strong><a href="http://codex.wordpress.org/Templates" target="_blank">Custom Template</a>:</strong> to display the information correctly, in dictionary fashion instead of like a blog</li>
</ul>
<h2>Setting Up</h2>
<p>Now that I had my game plan, it was time to prep. I installed WordPress, and set up my categories. I took advantage of nested categories in case I decide to run a blog simultaneously on the site. To do that, I created a &#8220;definitions&#8221; category, with nested categories running A-Z.</p>
<p>Next, I installed the WP Post Sorting plugin, and set it up so that under the A-Z categories, entries would be listed alphabetically instead of by the usual date order.</p>
<p>Then it was time to set up custom fields. I went over to create a new post. I put in the word to be defined as the title, and skipped the usual post box, scrolling down to the custom fields section. You can use whatever information you want but I created a different field for each of the following:</p>
<ul>
<li>Definition</li>
<li>Emphasis</li>
<li>Origin</li>
<li>Type <em>(noun/adjective/etc) </em></li>
</ul>
<p>Finally, I went to set up the permalinks. You can set it up however you choose, but I used the following settings:</p>
<ul>
<li>Custom structure:
<pre>/define/%postname%</pre>
</li>
<li>Category base:
<pre>list</pre>
</li>
<li>Tag base:
<pre>tag</pre>
</li>
</ul>
<h2>Creating a custom theme</h2>
<p>Creating the theme is pretty simple, once you get the hang of it. If you don&#8217;t know how to build a theme, I suggest you <a href="http://lmgtfy.com/?q=build+a+wordpress+theme+tutorial" target="_blank">learn how</a> first.</p>
<p>I don&#8217;t care how you style it, but here are some tips to setting this up:</p>
<ul>
<li>Install Scott Reilly&#8217;s <a href="http://coffee2code.com/wp-plugins/get-custom-field-values" target="_blank">Get Custom Field Values</a>plugin, it will make your life easier. Then, all you have to do to pull the custom field is something like the following (used within the loop):
<pre><!--?<span class="hiddenSpellError" pre=""-->php echo c2c_get_custom('definition', ''); ?&gt;</pre>
</li>
<li>Re-write the code that spits out posts. You&#8217;re not using the_content(), but we do want to show the definitions of our entries! My code looks like the following:<br />
<h2><!--?<span class="hiddenSpellError" pre=""-->php the_title(); ?&gt;</h2>
<p><!--?php echo c2c_get_custom('emphasis', ''); ?--> / <em><!--?php echo c2c_get_custom('type', ''); ?--></em></p>
<p><strong>Origin:</strong> <!--?php echo c2c_get_custom('origin', ''); ?--></p>
<p>This code should be used pretty much anywhere on the blog that would normally just display the posts.</li>
<li>You&#8217;ll probably want to have a &#8220;Browse&#8221; option showing links for the A-Z categories somewhere. To do this, I simply used the following in header.php:
<pre>Browse: &lt;ul&gt;&lt;?php wp_list_categories('child_of=3&amp;hide_empty=0&amp;title_li='); ?&gt;&lt;/ul&gt;</pre>
<p>Simply substitute the &#8220;3&#8243; after child_of with whatever the category ID &#8220;Definitions&#8221; is on your setup of WordPress, and this will display a list of the A-Z links.</li>
</ul>
<p>From there on out, you&#8217;re on your own! If you have any questions or tips of your own, feel free to leave them in the comments.</p>
<p>If you&#8217;re interested, you can check out the finished product at <a title="the dictionary for pugs" href="http://pugtionary.com/" target="_blank">Pugtionary</a> (the dictionary for pugs).</p>
<p><a href="http://www.annedorko.com/wp-dictionary"><img src="http://annedorko.com/site/wp-content/uploads/2012/01/wordpress-dictionary-plugin-banner.png" alt="" width="800" height="231" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.annedorko.com/blog/setting-up-wordpress-as-a-dictionary-site/feed</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Toggle (enable and disable) a form field with a checkbox: JavaScript 101</title>
		<link>http://www.annedorko.com/blog/toggle-enable-and-disable-a-form-field-with-a-checkbox-javascript-101</link>
		<comments>http://www.annedorko.com/blog/toggle-enable-and-disable-a-form-field-with-a-checkbox-javascript-101#comments</comments>
		<pubDate>Thu, 23 Jul 2009 23:09:09 +0000</pubDate>
		<dc:creator>Anne</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[toggle]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.annedorko.com/?p=188</guid>
		<description><![CDATA[<p><strong>EDIT</strong>: First and foremost I am a small business web consultant. If you are a small business owner or know a small business owner, be sure to check out my new blog series called <strong><a title="Small Business Website Guide for Business Owners" href="http://www.annedorko.com/blog/category/guide/the-small-business-website-guide-for-business-owners" target="_blank">The Small Business Website Guide for Small Business Owners</a></strong> or follow me on <strong><a href="http://twitter.com/annedorko" target="_blank">Twitter</a></strong> or<strong> <a href="https://www.facebook.com/pages/Anne-Dorko/210642982310861" target="_blank">Facebook</a></strong> for free updates and tips on how to create, shape and grow a small business website.</p>

<p>Today at work I was creating a form. I&#8217;m not a big JavaScript buff, but one of my tasks was to use a checkbox to toggle a form field between &#8220;enabled&#8221; and &#8220;disabled&#8221;. So, after browsing the web for a solution, I decided it would be simpler to roll up my sleeves and get dirty writing my own function.</p>
<p>Here is what I came up ... <a href="http://www.annedorko.com/blog/toggle-enable-and-disable-a-form-field-with-a-checkbox-javascript-101">Read More &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>EDIT</strong>: First and foremost I am a small business web consultant. If you are a small business owner or know a small business owner, be sure to check out my new blog series called <strong><a title="Small Business Website Guide for Business Owners" href="http://www.annedorko.com/blog/category/guide/the-small-business-website-guide-for-business-owners" target="_blank">The Small Business Website Guide for Small Business Owners</a></strong> or follow me on <strong><a href="http://twitter.com/annedorko" target="_blank">Twitter</a></strong> or<strong> <a href="https://www.facebook.com/pages/Anne-Dorko/210642982310861" target="_blank">Facebook</a></strong> for free updates and tips on how to create, shape and grow a small business website.</span></p>
<hr />
<p>Today at work I was creating a form. I&#8217;m not a big JavaScript buff, but one of my tasks was to use a checkbox to toggle a form field between &#8220;enabled&#8221; and &#8220;disabled&#8221;. So, after browsing the web for a solution, I decided it would be simpler to roll up my sleeves and get dirty writing my own function.</p>
<p>Here is what I came up with (<a href="http://www.annedorko.com/site/wp-content/uploads/2009/07/demo.html" target="_blank">view the demo</a>):</p>
<h2>JavaScript</h2>
<pre><span style="color: #003366;">function</span> <span style="color: #333333;">toggle</span>(checkboxID, toggleID) {
  <span style="color: #000080;">var</span> checkbox <span style="color: #ff00ff;">=</span> <span style="color: #ff6600;">document</span>.<span style="color: #000000;">getElementById</span>(checkboxID);
  <span style="color: #000080;">var</span> toggle <span style="color: #ff00ff;">=</span> <span style="color: #ff6600;">document</span>.<span style="color: #000000;">getElementById</span>(toggleID);
  updateToggle <span style="color: #ff00ff;">=</span> checkbox.checked ? toggle.disabled<span style="color: #ff00ff;">=</span><span style="color: #3366ff;">true</span> : toggle.disabled<span style="color: #ff00ff;">=</span><span style="color: #3366ff;">false</span>;
}</pre>
<h2>HTML</h2>
<pre>&lt;input
    id="example"
    name="example"
    onClick="toggle('example', 'disableMe')"
    type="checkbox" value="1" /&gt; When this is checked, something is disabled &lt;br /&gt;

&lt;input
    id="disableMe"
    name="disableMe"
    type="text"
    value="This input box will get disabled" /&gt;</pre>
<p>This is pretty basic.</p>
<p>What we are doing is feeding the function the ID of the checkbox field, and the ID of the form field we want to disable. When you check or uncheck the box, we call the toggle() function, which determines what action we took &#8211; if it is checked, we <em>disable</em> the form field, and if it is unchecked, we <em>enable</em> the form field.</p>
<p>If you want to accomplish the opposite (checked = enabled, unchecked = disabled), simply switch the disabled values in the function:</p>
<pre><span style="color: #003366;">function</span> <span style="color: #333333;">toggle</span>(checkboxID, toggleID) {
  <span style="color: #000080;">var</span> checkbox <span style="color: #ff00ff;">=</span> <span style="color: #ff6600;">document</span>.<span style="color: #000000;">getElementById</span>(checkboxID);
  <span style="color: #000080;">var</span> toggle <span style="color: #ff00ff;">=</span> <span style="color: #ff6600;">document</span>.<span style="color: #000000;">getElementById</span>(toggleID);
  updateToggle <span style="color: #ff00ff;">=</span> checkbox.checked ? toggle.disabled<span style="color: #ff00ff;">=</span><span style="color: #3366ff;">false</span> : toggle.disabled<span style="color: #ff00ff;">=</span><span style="color: #3366ff;">true</span>;
}</pre>
<p>I haven&#8217;t done extensive testing as to whether this works across all browsers, but it seems to be working just fine in Firefox.</p>
<p><a href="http://www.annedorko.com/site/wp-content/uploads/2009/07/demo.html">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.annedorko.com/blog/toggle-enable-and-disable-a-form-field-with-a-checkbox-javascript-101/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using WordPress to create your page-based website</title>
		<link>http://www.annedorko.com/blog/using-wordpress-to-create-your-page-based-website</link>
		<comments>http://www.annedorko.com/blog/using-wordpress-to-create-your-page-based-website#comments</comments>
		<pubDate>Wed, 01 Jul 2009 17:41:50 +0000</pubDate>
		<dc:creator>Anne</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.annedorko.com/?p=84</guid>
		<description><![CDATA[<p>You&#8217;re a web designer, and you want to create a website &#8211; and like a lot of sites these days, it will be based around the pages, yet include a blog or news section. Congratulations! I am now going to give you a quick tutorial on making a page-based site using WordPress. This will make editing the pages easy, yet make it look like the blog is a separate installation.</p>
<p>If you have never touched PHP, roll up your sleeves and get ready to get dirty. I will try to make this relatively painless.</p>
What you need!

<a href="http://wordpress.org/" target="_blank">WordPress</a>

WordPress Plugins (Optional):

<a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">All In One SEO Pack</a>
<a href="http://ideasilo.wordpress.com/2007/04/30/contact-form-7/" target="_blank">Contact Form 7</a>
<a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NexGen Gallery</a>
<a href="http://joelstarnes.co.uk/pagemash/" target="_blank">PageMash</a>
<a href="http://xavisys.com/wordpress-google-analytics-plugin/" target="_blank">WP Google Analytics</a>

Programs
<p>You&#8217;ll need to BYOP but here are the ones I use:</p>

<a href="http://macromates.com/" target="_blank">TextMate</a> <em>OR</em> any text editor
<a href="http://www.panic.com/transmit/" target="_blank">Transmit</a> <em>OR</em> any FTP program

Services

<a ... <a href="http://www.annedorko.com/blog/using-wordpress-to-create-your-page-based-website">Read More &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re a web designer, and you want to create a website &#8211; and like a lot of sites these days, it will be based around the pages, yet include a blog or news section. Congratulations! I am now going to give you a quick tutorial on making a page-based site using WordPress. This will make editing the pages easy, yet make it look like the blog is a separate installation.</p>
<p>If you have never touched PHP, roll up your sleeves and get ready to get dirty. I will try to make this relatively painless.</p>
<h2>What you need!</h2>
<ul>
<li><a href="http://wordpress.org/" target="_blank">WordPress</a></li>
</ul>
<h3>WordPress Plugins (Optional):</h3>
<ul>
<li><a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">All In One SEO Pack</a></li>
<li><a href="http://ideasilo.wordpress.com/2007/04/30/contact-form-7/" target="_blank">Contact Form 7</a></li>
<li><a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NexGen Gallery</a></li>
<li><a href="http://joelstarnes.co.uk/pagemash/" target="_blank">PageMash</a></li>
<li><a href="http://xavisys.com/wordpress-google-analytics-plugin/" target="_blank">WP Google Analytics</a></li>
</ul>
<h3>Programs</h3>
<p>You&#8217;ll need to BYOP but here are the ones I use:</p>
<ul>
<li><a href="http://macromates.com/" target="_blank">TextMate</a> <em>OR</em> any text editor</li>
<li><a href="http://www.panic.com/transmit/" target="_blank">Transmit</a> <em>OR</em> any FTP program</li>
</ul>
<h3>Services</h3>
<ul>
<li><a href="http://www.annedorko.com/godaddy" target="_blank">Domain name</a></li>
<li><a href="http://www.annedorko.com/hostgator" target="_blank">Hosting</a> &#8212; be sure to use the code &#8220;GatorTweet&#8221; for a $9.94 discount at HostGator.</li>
</ul>
<p>You are now armed and ready!</p>
<h2>Step 1: Install WordPress</h2>
<p>If you got the <a href="http://www.annedorko.com/hostgator" target="_blank">hosting I recommended</a>, all you need do is log into your control panel (yourdomain.com/cpanel) and click on &#8220;Fantistico&#8221;. From there, you can follow the instructions under &#8220;WordPress&#8221; and it will install automatically.</p>
<p>Otherwise you will need to <a href="http://codex.wordpress.org/Installing_WordPress" target="_blank">follow the directions WordPress provides</a>.</p>
<h2>Step 2: Install your plugins (Optional)</h2>
<p>WordPress now offers the nifty feature of being able to install plugins straight from the admin section. Go to yourdomain.com/wp-admin/plugin-install.php and search for the plugins I listed at the top of this article.</p>
<p>If you already downloaded them, use your FTP program to upload them into the plugins folder of WordPress (<a href="http://codex.wordpress.org/Managing_Plugins" target="_blank">directions</a>).</p>
<p>Make sure you activate them!</p>
<h2>Step 3: Download a theme</h2>
<p>You now also need to choose a theme for your site. There are probably quite literally thousands of free and paid themes to choose from, or you can create your own (which I recommend). However, the &#8220;how-to&#8221; create your own theme is an entirely different post.</p>
<p>You can download themes from the WordPress website, or use Google to search for themes to download. Install and activate your theme!</p>
<h2>Step 4: Modify your theme</h2>
<h3>4.a Creating the &#8220;Blog&#8221; page</h3>
<p>Now is the tricky part. Create a new file in your theme folder called &#8220;blog.php&#8221; &#8211; copy and paste the code from your &#8220;index.php&#8221; file into this new page.</p>
<p>At the top of this file, add the following code:</p>
<pre>&lt;?php
/**
 * @package WordPress
 * @subpackage THEME NAME
 */

 /*
 Template Name: Blog Listings
 */</pre>
<p>Make sure that you include this <em>before</em> the get_header() function, <em>inside</em> the php tags. The top of the page should be wrapped in &#8220;&lt;?php&#8221; and &#8220;?&gt;&#8221; like so -</p>
<pre>&lt;?php
/**
 * @package WordPress
 * @subpackage THEME NAME
 */

 /*
 Template Name: Blog Listings
 */

get_header(); ?&gt;</pre>
<p>Now, find the lines that look like this:</p>
<pre>&lt;?php if (have_posts()) : ?&gt;

 &lt;?php while (have_posts()) : the_post(); ?&gt;</pre>
<p>Directly in above these lines, you need to add the following&#8230;</p>
<pre>&lt;?php query_posts("order=DESC&amp;paged=$paged"); ?&gt;</pre>
<p>We are telling WordPress that when it loads this template, we don&#8217;t want to see the content of the page we created, we just want a list of posts, listing the newest first.</p>
<p>Make sure that the get_sidebar() function is being called on the page, and if it is not, use the other template files to see where you should include it.</p>
<h3>4.b Creating/editing the &#8220;Page&#8221; page</h3>
<p>Technically, you could simply modify the existing page.php file, but I like to create a new template so that I can always refer back to the original, or even use it if I want. So, create a new file called &#8220;page-simple.php&#8221; and copy and paste the contents from page.php into it and delete the get_sidebar() function.</p>
<p>Usually I make further edits to help simplify the page, but this will vary depending on your theme.</p>
<p>Add the template name to the top of the page like we did when we created the Blog page.</p>
<pre>/*
 Template Name: Simple Page
 */</pre>
<h3>4.c Creating a &#8220;Front&#8221; page (optional)</h3>
<p>If you want to get fancy, you can rinse and repeat to create a custom front page template for your theme. You should base the PHP on page.php from your theme. Don&#8217;t forget to label the template!</p>
<h3>4.d Upload!</h3>
<p>Make sure that you upload your new template files! Otherwise you won&#8217;t be able to access them on your installation.</p>
<h2>Step 5: Creating your pages</h2>
<p>We&#8217;re getting close to being finished!</p>
<h3>5.a Publish the Blog</h3>
<p>Go and create a new page called &#8220;Blog&#8221; &#8211; don&#8217;t write any content, if you do it&#8217;s not going to show up. Before you publish the page, look on the right hand side for the option to choose your template. Select the &#8220;Blog Listings&#8221; template you created earlier.</p>
<p><img title="Picture 2" src="http://annedorko.com/site/wp-content/uploads/2012/01/Picture-2.png" alt="Picture 2" width="273" height="155" /></p>
<p>Now you can publish your page. Visit it &#8211; it should be showing you a list of your blog posts just like the regular front page!</p>
<h3>5.b Publish the Home page</h3>
<p>Create another page, this one called &#8220;Home Page&#8221; or &#8220;Front Page&#8221; (it doesn&#8217;t really matter). Put the content you want to show up on your front page. If you created a special template for your front page, make sure to select it when you save it!</p>
<h2>Step 6: Setting up WordPress to play nice</h2>
<h3>6.a Setting the permalinks</h3>
<p>Log into your WordPress dashboard. Go to Settings &gt; Permalinks. Now, I don&#8217;t care what format you want to take when making these permalinks, and you can get the WordPress permalink tags from their site, I recommend something like /year/month/name-of-post.</p>
<p>The thing I need you to do though, is add &#8220;/blog/&#8221; to the beginning of whatever you choose.</p>
<ul>
<li>/blog/%postname%</li>
<li>/blog/%year%/%postname%</li>
<li>/blog/%year%/%monthnum%/%postname%</li>
</ul>
<p>Those are all fine examples. I hope you get the idea. So choose your permalink structure and enter it into the &#8220;Custom Structure&#8221; option and hit save. Here&#8217;s a screenshot of my settings:<img class="alignnone size-full wp-image-109" title="Picture 1" src="http://annedorko.com/site/wp-content/uploads/2012/01/Picture-1.png" alt="Picture 1" width="575" height="245" /></p>
<h3>6.b Setting the front page</h3>
<p>Now, go to Settings &gt; Reading.</p>
<p>Switch the first radio button from &#8220;Your latest posts&#8221; to &#8220;A static page&#8221; &#8211; and in the drop down menu, choose the Home page you created in the previous step.</p>
<p><img class="alignnone size-full wp-image-114" title="Picture 3" src="http://annedorko.com/site/wp-content/uploads/2012/01/Picture-3.png" alt="Picture 3" width="473" height="124" /></p>
<h2>Step 7: Cleaning up and optimizing your site</h2>
<p>Now it&#8217;s time to tame the beast.</p>
<ul>
<li>Use PageMash to hide/show pages you want to be seen or not seen in the main navigation (such as your new &#8220;Home Page&#8221;).</li>
<li>Use the All In One SEO package to create custom titles and meta tags.</li>
<li>If you need a contact form, Contact Form 7 is your man.</li>
<li>If you need to show images, use the NexGen Gallery &#8211; it includes different methods of displaying these, using JavaScript and/or Flash.</li>
<li>I highly recommend getting a Google Analytics account and using the WP Google Analytics plugin to stick it into your site.</li>
</ul>
<p>While these plugins may be more or less optional, they will probably come in handy for almost any kind of website you are creating.</p>
<h2>What have we created?</h2>
<p>You now have a website that is more focused on pages than posts.</p>
<p>One of your pages is the &#8220;Blog&#8221; page, which displays your posts. The link to the blog looks like &#8220;<em>yourdomain.com/blog</em>&#8221; and your post links will follow suit and look like &#8220;<em>yourdomain.com/blog/permalink/structure/your-post</em>&#8220;, but your pages will maintain links like &#8220;<em>yourdomain.com/about</em>&#8221; or &#8220;<em>yourdomain.com/contact</em>&#8220;.</p>
<p>Leave any comments, tips, questions or concerns in the comments! Especially if you found this to be useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.annedorko.com/blog/using-wordpress-to-create-your-page-based-website/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Tutorial: How to display short blog title in WordPress</title>
		<link>http://www.annedorko.com/blog/tutorial-how-to-display-short-blog-title-in-wordpress</link>
		<comments>http://www.annedorko.com/blog/tutorial-how-to-display-short-blog-title-in-wordpress#comments</comments>
		<pubDate>Mon, 24 Dec 2007 20:07:27 +0000</pubDate>
		<dc:creator>Anne</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.annedorko.com/?p=69</guid>
		<description><![CDATA[<p>As was recently pointed out to me by Andy in the comments, this post was quite out of date. I was fairly new to WordPress and had found a hacked way to modify the core of WordPress to return a short version of wp_title(); &#8212; but this is a method far from necessary and will always get removed when you update WordPress.</p>
<p>I opted to delete the out-of-date method, so that you only get the stuff that makes sense!</p>
<p>There is a simple script you can use to implement a short blog title without modifying the base WordPress code. Open up your functions.php file within your theme and add the following:</p>
<p>[php]function short_title() {
 $title = get_the_title();
 $count = strlen($title);
 if ($count &#62;= 25) {
 $title = substr($title, 0, 25);
 $title .= &#8216;&#8230;&#8217;;
 }
 echo $title;
}[/php]</p>
<p>You can now reference short_title(); anywhere within the ... <a href="http://www.annedorko.com/blog/tutorial-how-to-display-short-blog-title-in-wordpress">Read More &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>As was recently pointed out to me by Andy in the comments, this post was quite out of date. I was fairly new to WordPress and had found a hacked way to modify the core of WordPress to return a short version of wp_title(); &#8212; but this is a method far from necessary and will always get removed when you update WordPress.</p>
<p>I opted to delete the out-of-date method, so that you only get the stuff that makes sense!</p>
<p>There is a simple script you can use to implement a short blog title without modifying the base WordPress code. Open up your functions.php file within your theme and add the following:</p>
<p>[php]function short_title() {<br />
 $title = get_the_title();<br />
 $count = strlen($title);<br />
 if ($count &gt;= 25) {<br />
 $title = substr($title, 0, 25);<br />
 $title .= &#8216;&#8230;&#8217;;<br />
 }<br />
 echo $title;<br />
}[/php]</p>
<p>You can now reference short_title(); anywhere within the loop and call your short title. You can adjust how long your title is by changing the number &#8220;25&#8243; to however many characters you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.annedorko.com/blog/tutorial-how-to-display-short-blog-title-in-wordpress/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

