<?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>MicroMedia Designs</title>
	<atom:link href="http://micromediawebsites.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://micromediawebsites.com/blog</link>
	<description>exceptional design and service</description>
	<lastBuildDate>Sun, 23 May 2010 21:59:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Connecting Hotmail To A POP3 Account</title>
		<link>http://micromediawebsites.com/blog/?p=601</link>
		<comments>http://micromediawebsites.com/blog/?p=601#comments</comments>
		<pubDate>Fri, 14 May 2010 05:03:19 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=601</guid>
		<description><![CDATA[MSN Hotmail comes with the ability to connect your account to a POP3 email inbox on your server.  By doing so all new mail will be automatically delivered to your inbox, and you&#8217;ll have the ability to send mail from that account.  Here are the steps to set that up:
First log into your [...]]]></description>
			<content:encoded><![CDATA[<p>MSN Hotmail comes with the ability to connect your account to a POP3 email inbox on your server.  By doing so all new mail will be automatically delivered to your inbox, and you&#8217;ll have the ability to send mail from that account.  Here are the steps to set that up:</p>
<p><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/05/hotmail1.png" alt="" style="float:left; margin: 0 15px 10px 0; width:170px;" />First log into your Hotmail account.  Click on the &#8220;Settings&#8221; link in the top right corner, and then press &#8220;More Options&#8221; at the bottom of the drop down menu.  </p>
<p>This will take you to a page where you can manage your account.  One of the first links reads &#8220;Send and receive mail from other e-mail accounts&#8221;.  Click on that to proceed.</p>
<p>You are going to need your email account settings to proceed.  These include your username, password, incoming and outgoing mail server names.  They will look similar to the following:<br />
<span style="font-family:Courier New; font-size:11px; line-height:14px;">Mail Server Username: contact@yourwebsite.com<br />
Incoming Mail Server: mail.yourwebsite.com IMAP: port 143, POP: port 110<br />
Incoming Mail Server: (SSL) box5.servername.com IMAP: port 993, POP: port 995<br />
Outgoing Mail Server: mail.yourwebsite.com (server requires authentication) port 26<br />
Outgoing Mail Server: (SSL) box5.servername.com (server requires authentication) port 465</span></p>
<h3>Connecting To Download New Mail</h3>
<p>Look underneath the heading &#8220;<span style="color:#f6793a;">You can receive mail from these accounts</span>&#8221; and click on the link &#8220;Add an e-mail account&#8221;.  </p>
<p>First enter your email address and password.  Then press next.  Following that you&#8217;ll need to enter your username for this account (often the same as your email address) and the incoming server name (often mail.yourdomain.com).  Un-tick both check boxes and press next.</p>
<p>Next you can choose whether you want that mail mixed in with your regular inbox mail, or if you want it sent to it&#8217;s own folder.  After your selection press &#8220;Save&#8221;.</p>
<p><b>Congratulations!</b>  Your Hotmail account should now be able to download messages from your server.  Try sending a test email to ensure it ends up in your Hotmail inbox.</p>
<h3>Sending Mail From Your New Account</h3>
<p>Next we have to connect everything so that you can send mail using your new email account.  Go back to your &#8220;Options&#8221;&#8211;>&#8221;More Options&#8221;&#8211;>&#8221;Send and receive mail from other e-mail accounts&#8221; page.    Beneath the heading &#8220;<span style="color:#f6793a;">Send and receive mail from other e-mail accounts</span> click on the link &#8220;Add another account to send mail from&#8221;.</p>
<p>First you must enter your email address and press &#8220;Verify&#8221;.  Hotmail will send an email to that account that you must open before continuing, as it needs to verify that the address belongs to you.  After clicking on that link you should be all set to send mail!</p>
<p>If you have any questions or problems with these steps you may contact me for additional help at contact [at] micromediawebsites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=601</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advanced Wordpress Theme For Authors</title>
		<link>http://micromediawebsites.com/blog/?p=556</link>
		<comments>http://micromediawebsites.com/blog/?p=556#comments</comments>
		<pubDate>Wed, 21 Apr 2010 20:38:09 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[Fun Projects]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=556</guid>
		<description><![CDATA[This was an extremely fun project that involved creating a custom theme options panel, a custom page write panel, and the integration of several useful plugins.  The result is a reusable Wordpress theme, intended for authors, structured in a way to promote their works and easy from the backend for them to modify.
The Home [...]]]></description>
			<content:encoded><![CDATA[<p>This was an extremely fun project that involved creating a custom theme options panel, a custom page write panel, and the integration of several useful plugins.  The result is a reusable Wordpress theme, intended for authors, structured in a way to promote their works and easy from the backend for them to modify.</p>
<p><strong>The Home Page</strong> (click to enlarge)<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/frontpage.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/frontpage-150x150.png" alt="" title="frontpage" width="150" height="150" class="alignleft size-thumbnail wp-image-563" style="margin: 0 20px 20px 0;" /></a>  The home page features a large slideshow, video, and four smaller images along the bottom.  All of these features can be managed through the custom Theme Options Panel, described below.  Additionally, the slideshow can be disabled and replaced with custom page content instead.  </p>
<p>There is also a widgetized area beneath the video player where custom content can be placed.</p>
<p><strong>First Inner Page</strong><br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/innerpage1.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/innerpage1-150x150.png" alt="" title="innerpage1" width="150" height="150" class="alignleft size-thumbnail wp-image-568" style="margin: 0 20px 20px 0;" /></a>  This theme also comes with a few different page templates to select from.  One such page template can display up to eight linked images in the right sidebar, as well as four links in the left sidebar.  </p>
<p>All pages come with the ability to upload and display audio files with a nifty flash audio player, and each page can have it&#8217;s own custom video and video preview image.</p>
<p>&nbsp;</p>
<p><strong>Second Inner Page</strong><br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/innerpage2.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/innerpage2-150x150.png" alt="" title="innerpage2" width="150" height="150" class="alignleft size-thumbnail wp-image-571" style="margin: 0 20px 20px 0;" /></a> Another option for some of the inner pages is to replace the eight sidebar images/links with a larger image and additional text beneath.  This modification is done fairly easily through the page editor.</p>
<p>All pages can also display a download link for files such as PDF or Word documents.</p>
<p>&nbsp;</p>
<p><strong>Third Inner Page</strong><br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/innerpage3.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/innerpage3-150x150.png" alt="" title="innerpage3" width="150" height="150" class="alignleft size-thumbnail wp-image-574" style="margin: 0 20px 20px 0;" /></a> Authors also have the option to password protect some pages, requiring that users register with their website before viewing the page.  On password protected pages only a snippet of the content is displayed, followed by a login box requesting that users login or register before viewing everything.  Making a password protected page is as easy as selecting that page template through the editor.</p>
<p>&nbsp;</p>
<h3>Now For The Fun Stuff&#8230;</h3>
<p><b>The Theme Options Panel</b></p>
<p><a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin1.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin1-150x150.png" alt="" title="admin1" width="150" height="150" class="alignleft size-thumbnail wp-image-578" style="margin: 0 10px 20px 0; border:0;"  /></a><a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin2.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin2-150x150.png" alt="" title="admin2" width="150" height="150" class="alignleft size-thumbnail wp-image-579" style="margin: 0 10px 20px 0; border:0;" /></a><a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin3.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin3-150x150.png" alt="" title="admin3" width="150" height="150" class="alignleft size-thumbnail wp-image-582" style="margin: 0 10px 20px 0; border:0;" /></a><a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin4.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin4-150x150.png" alt="" title="admin4" width="150" height="150" class="alignleft size-thumbnail wp-image-583" style="margin: 0 10px 20px 0; border:0;" /></a><a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin5.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin5-150x150.png" alt="" title="admin5" width="150" height="150" class="alignleft size-thumbnail wp-image-584" style="margin: 0 10px 20px 0; border:0;" /></a><a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin6.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin6-150x150.png" alt="" title="admin6" width="150" height="150" class="alignleft size-thumbnail wp-image-586"  style="margin: 0 10px 20px 0; border:0;" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Inside of the theme options panel the user has a great deal of control over what content is displayed on their website.  The first tab is called &#8220;General&#8221; and from here the first thing the user can do is pick a different stylesheet, which will change the background color from blue to red, yellow, green, or purple.  After that they can upload their own logo which will be automatically be placed in the header of their website.  If they are using an email subscription service such as Constant Contact, they can enter the URL to a signup page which is linked to the &#8220;Join Our Email List&#8221; link on the front end.  Leaving this field blank will hide that link.</p>
<p>In the second tab &#8220;Header&#8221; users can upload their own images to replace those in the slideshow and across the bottom.  Additionally they can specify whether or not those images link to another page.  Leaving the title blank for the slideshow images will hide that image from view, should the user want fewer than five slides.  As I was setting this area up it occurred to me that some users may not want a slideshow on the home page but rather a block of written content.  So I included the option for users to disable the slideshow completely if they wish, replacing that area with the home page copy.</p>
<p>The third tab &#8220;Video&#8221; offers only a few options.  The authors may choose to completely disable the video player on their website, which will hide it from view.  Perhaps they don&#8217;t want video, or they want to wait awhile before enabling it again.  If they do want video then they can specify a default video to be played on those pages that don&#8217;t have a custom one, and also the default preview image.</p>
<p>The last two tabs, &#8220;Right Sidebar Links&#8221; and &#8220;Left Sidebar Links&#8221; work in exactly the same way.  Give each link a title, upload an image, and specify where that link points to.  Leaving the title blank will completely hide that link from view.</p>
<p>Another feature of this theme is that the default dashboard widgets have been removed and replaced with the same eight sidebar images/links.  This is in case a visitor who logs in somehow manages to find the dashboard.  They will be presented with a welcome message and links to a few pages.  These dashboard links are also controlled through the &#8220;Right Sidebar Links&#8221; and are automatically updated to whatever the author prefers. </p>
<p><strong>Page Editor Customization</strong><br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin7.png" rel="lightbox[556]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2010/04/admin7-150x150.png" alt="" title="admin7" width="150" height="150" class="alignleft size-thumbnail wp-image-597" style="margin:0 20px 20px 0;" /></a>  A final customization I set up is the removal of a lot of unnecessary meta boxes from the page editing screen, to keep things simple and less confusing.  Then I added a custom meta box where users can add content for that particular page.  The options include specifying a custom video and preview image for that page, replacing the eight sidebar links with a large image and written content beneath, adding an audio file, and adding a download link.</p>
<p>All in all this was a wonderful project that I worked on.  I enjoy a challenge and this project certainly presented a fun one for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=556</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Quick Tricks</title>
		<link>http://micromediawebsites.com/blog/?p=450</link>
		<comments>http://micromediawebsites.com/blog/?p=450#comments</comments>
		<pubDate>Wed, 24 Feb 2010 04:59:45 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=450</guid>
		<description><![CDATA[Create a page of all categories

&#60;?php foreach ($this->getStoreCategories() as $_category): ?>
&#60;?php $open = $this->isCategoryActive($_category); ?>
&#60;?php
$cur_category=Mage::getModel('catalog/category')->load
($_category->getId());
$layer = Mage::getSingleton('catalog/layer');
$layer->setCurrentCategory($cur_category);
if ($immagine = $this->getCurrentCategory()->getImageUrl()):
?>     

&#60;div style="float: left; margin-right: 30px; text-align: center;
width:140px; border: 1px solid #ddd; padding:10px;">
                &#60;div class="linkimage">
   [...]]]></description>
			<content:encoded><![CDATA[<h3>Create a page of all categories</h3>
<pre>
&lt;?php foreach ($this->getStoreCategories() as $_category): ?>
&lt;?php $open = $this->isCategoryActive($_category); ?>
&lt;?php
$cur_category=Mage::getModel('catalog/category')->load
($_category->getId());
$layer = Mage::getSingleton('catalog/layer');
$layer->setCurrentCategory($cur_category);
if ($immagine = $this->getCurrentCategory()->getImageUrl()):
?>     

&lt;div style="float: left; margin-right: 30px; text-align: center;
width:140px; border: 1px solid #ddd; padding:10px;">
                &lt;div class="linkimage">
                    &lt;p>
                    &lt;a href="&lt;?php echo $this->
                    getCategoryUrl($_category)?>">
                    &lt;img src="<?php echo $immagine ?>"
                    alt="&lt;?php echo $this->htmlEscape($this->
                    getCurrentCategory()->getName()) ?>" width=
                    "135" height="135" />
                    &lt;?php echo $_category->getName()?>
                    &lt;/a>
                    &lt;/p>
                &lt;/div>
&lt;/div>

&lt;?php endif; ?>
&lt;?php endforeach; ?>
</pre>
<p><strong><br />
Save to catalog/category/list.phtml</strong></p>
<p>Then in the CMS page window:</p>
<pre>{{block type="catalog/navigation" name="catalog.category" template="catalog/category/list.phtml"}} </pre>
<h3>Display Category List In Sidebar</h3>
<p><a href="http://thinclay.artician.com/blog/2009/09/magento-display-categories-in-sidebar/" target="_blank">Link</a></p>
<p>1. Open layout/catalog.xml.  Find the reference name &#8220;left&#8221; and add the following line:</p>
<pre>&lt;reference name="left">
            &lt;block type="catalog/navigation" name="catalog.leftnav" template="catalog/navigation/left_nav.phtml" />
&lt;/reference></pre>
<p>2.  Create a new file and name it &#8220;left_nav.phtml&#8221;.  Save that file to <i>emplate/catalog/navigation/left_nav.phtml</i>.  The paste into that new file:</p>
<pre>&lt;h2>Browse&lt;/h2>
&lt;div class="block">
&lt;ul id="nav_category" class="nav_category">
	&lt;?php foreach ($this->getStoreCategories() as $_category): ?>
		&lt;?php echo $this->drawItem($_category) ?>
	&lt;?php endforeach ?>
&lt;/ul>
&lt;/div>
&lt;?php echo $this->getChildHtml('topLeftLinks') ?></pre>
<p><i>You have to refresh the cache before you&#8217;ll be able to see the changes!</i></p>
<h3>Categories On The Home Page (Or Any Page)</h3>
<p><a href="http://www.magentocommerce.com/boards/viewthread/14527/P0/" target="_blank">http://www.magentocommerce.com/boards/viewthread/14527/P0/</a></p>
<h3>Custom Page Templates</h3>
<p>Copy one of the original page files, such as one-column.phtml, and save it as something new.  Upload that file to your page templates folder.</p>
<p>Now open app&#8211;>code&#8211;>core&#8211;>Mage&#8211;>Page&#8211;>etc&#8211;>config.xml</p>
<p>Copy and paste one of the sections for a page template and change the names to match:</p>
<pre>
&lt;about_page module="page" translate="label">
                    &lt;label>About Page&lt;/label>
                    &lt;template>page/about.phtml&lt;/template>
                    &lt;layout_handle>about_page&lt;/layout_handle>
                &lt;/about_page></pre>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=450</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advanced Customizations &#8211; Dashboard</title>
		<link>http://micromediawebsites.com/blog/?p=523</link>
		<comments>http://micromediawebsites.com/blog/?p=523#comments</comments>
		<pubDate>Mon, 18 Jan 2010 17:36:10 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[Jess' Notes]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=523</guid>
		<description><![CDATA[There are times when you&#8217;ll want to take your Wordpress installation to the next level.  This article explains some of the advanced customizations you can make to the login page and to the dashboard.  Fun stuff!
Pretty much everything we&#8217;re going to do below will be placed in the functions.php file.
Replace The Wordpress Dashboard [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when you&#8217;ll want to take your Wordpress installation to the next level.  This article explains some of the advanced customizations you can make to the login page and to the dashboard.  Fun stuff!</p>
<p>Pretty much everything we&#8217;re going to do below will be placed in the <i>functions.php</i> file.</p>
<h3>Replace The Wordpress Dashboard Icon With Your Own</h3>
<p>Quick and easy.  Replace that little &#8220;W&#8221; icon in the wordpress dashboard with your own (30 x 30 pixels)</p>
<pre>add_action('admin_head', 'my_custom_logo');
function my_custom_logo() {
echo '&lt;style type="text/css">
#header-logo { background-image: url('.get_bloginfo
('template_directory').'/images/custom-logo.gif) !important; }&lt;/style>';
}</pre>
<h3>Place Your Own Logo On The Login Page</h3>
<pre>function my_custom_login_logo() {
echo '&lt;style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'
/images/custom-login-logo.gif) !important; }&lt;/style>'; }
add_action('login_head', 'my_custom_login_logo');
</pre>
<h3>Remove Some Of The Default Dashboard Widgets</h3>
<p>Sometimes some of those little buggers can be confusing to clients and it&#8217;s just easier to remove them</p>
<pre>function example_remove_dashboard_widgets() {
// Globalize the metaboxes array, this holds all the widgets for wp-admin
global $wp_meta_boxes;

// Remove the incomming links widget
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);	

// Remove right now
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
}
// Hoook into the 'wp_dashboard_setup' action to register our function
add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );
</pre>
<h3>Add Your Own Custom Dashboard Widget</h3>
<p>Perhaps you&#8217;d like to add a widget to the dashboard with a welcome message to your client, or pulling in a custom RSS feed.</p>
<pre>function example_dashboard_widget_function() {
	// Display whatever it is you want to show
	echo "Hello World, I'm a great Dashboard Widget";
} 

// Create the function use in the action hook
function example_add_dashboard_widgets() {
	wp_add_dashboard_widget('example_dashboard_widget', 'Example Dashboard Widget', 'example_dashboard_widget_function');
}
// Hoook into the 'wp_dashboard_setup' action to register our other functions
add_action('wp_dashboard_setup', 'example_add_dashboard_widgets' );
</pre>
<h3>Customize The Dashboard Footer</h3>
<pre>
function remove_footer_admin () {
echo "Custom Footer Text";
}

add_filter('admin_footer_text', 'remove_footer_admin');
</pre>
<h3>Theme Options Panel</h3>
<p>To create a custom theme options panel for the Wordpress dashboard, download <a href="http://micromediawebsites.com/blog/wp-content/upload/2010/01/ThemeOptions.zip">these files</a> and upload them to the theme directory.  Take caution with the functions.php file that you don&#8217;t overwrite what is there currently.</p>
<h3>Resources</h3>
<p><a href="http://www.catswhocode.com/blog/10-wordpress-dashboard-hacks" target="_blank">Wordpress Dashboard Hacks</a><br />
<a href="http://wpshout.com/10-ways-to-use-htaccess-to-speed-up-wordpress/" target="_blank">Using htaccess To Speed Up Wordpres</a></p>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=523</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Queries</title>
		<link>http://micromediawebsites.com/blog/?p=501</link>
		<comments>http://micromediawebsites.com/blog/?p=501#comments</comments>
		<pubDate>Mon, 04 Jan 2010 17:26:12 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[Jess' Notes]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=501</guid>
		<description><![CDATA[There are many ways to pull up posts through a Wordpress query, and usually the typical query is sufficient.  But more and more I&#8217;ve found it useful to use more custom queries, a list of which can be viewed below.
The Normal Loop
&#60;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
&#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>There are many ways to pull up posts through a Wordpress query, and usually the typical query is sufficient.  But more and more I&#8217;ve found it useful to use more custom queries, a list of which can be viewed below.</p>
<h3>The Normal Loop</h3>
<pre>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
&lt;?php endwhile; endif: ?></pre>
<h3>Get Posts Published Between Two Dates</h3>
<pre>&lt;?php
  function filter_where($where = '') {
        $where .= " AND post_date >= '2009-03-17' AND
        post_date <= '2009-05-03'";
    return $where;
  }
add_filter('posts_where', 'filter_where');
query_posts($query_string);
while (have_posts()) :
      the_post();
      the_content();
endwhile;
?></pre>
<h3>Paged Posts By Category</h3>
<pre>&lt;?php $paged = (get_query_var('paged')) ?
get_query_var('paged') : 1;
query_posts("category_name=articles&#038;showposts=7&#038;paged=$paged"); ?>
&lt;?php while (have_posts()) : the_post(); ?></pre>
<pre>&lt;?php if (have_posts()) :
$my_query = new WP_Query('cat=-21&#038;showposts=3'.'&#038;paged='.$paged);
while ( $my_query->have_posts() ) : $my_query->the_post();
?></pre>
<h3>Simple Query By Category</h3>
<pre>
&lt;?php query_posts('cat=1&#038;showposts=7'); ?>
&lt;?php while (have_posts()) : the_post(); ?> </pre>
<p>You can also use this query to exclude a category from the loop by adding a minus sign before the category ID</p>
<pre>
&lt;?php query_posts('cat=-7&#038;showposts=7'); ?>
&lt;?php while (have_posts()) : the_post(); ?></pre>
<h3>Custom Paged Query By Category &amp; Exluding A Category</h3>
<pre>&lt;?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=10&#038;category_name=articles
&#038;post__not_in(142)'.'&#038;paged='.$paged);
?>
&lt;?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
&lt;?php endwhile; ?>
&lt;?php $wp_query = null; $wp_query = $temp;?></pre>
<h3>Two Loops On Same Page &#8211; Don&#8217;t Repeat</h3>
<p>The First Loop:</p>
<pre>&lt;?php
query_posts('showposts=8');
$ids = array();
while (have_posts()) : the_post();
$ids[] = get_the_ID();
the_title();
the_content();
endwhile;
?></pre>
<p>The second loop</p>
<pre>&lt;?php
query_posts(array('post__not_in' => $ids));
while (have_posts()) : the_post();
the_title();
the_content();
endwhile;
?></pre>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=501</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento- How To Add New Products</title>
		<link>http://micromediawebsites.com/blog/?p=455</link>
		<comments>http://micromediawebsites.com/blog/?p=455#comments</comments>
		<pubDate>Sun, 27 Dec 2009 01:45:20 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=455</guid>
		<description><![CDATA[To get started adding products to your Magento store most likely you will want to have set up your store configuration through the admin panel and have a few categories created.  After that, here are the steps involved in listing a new product for sale, with basic settings:]]></description>
			<content:encoded><![CDATA[<p>To get started adding products to your Magento store most likely you will want to have set up your store configuration through the admin panel and have a few categories created.  After that, here are the steps involved in listing a new product for sale, with basic settings:</p>
<h3>Step One</h3>
<p>Log into your Magento system, and then look to the top menu bar.  Hover your mouse over the button &#8220;Catalog&#8221; and press &#8220;Manage Products&#8221;.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/1.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/1.png" alt="1" title="1" width="499" height="306" class="alignnone size-full wp-image-460" /></a></p>
<p>This will pull up a list of all products that you currently have listed in your system if you have any.  To add a new product look to the right of the screen and press the orange &#8220;Add Product&#8221; button.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/2.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/2.png" alt="2" title="2" width="350" height="311" class="alignnone size-full wp-image-462" /></a></p>
<p>You will be prompted first to select the attribute type and product set.  Typically you can leave them as they are and press &#8220;Continue&#8221; unless you&#8217;re offering downloadable products or other items that require these fields.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/3.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/3.png" alt="3" title="3" width="500" height="222" class="alignnone size-full wp-image-464" /></a></p>
<h3>New Product Basic Details</h3>
<p>You will be taken to a screen where you&#8217;ll fill in some basic information about the product that you&#8217;re listing.  Enter the product name, description, and short description.  Give it a sku number and weight.  If you have manufacturers and colors set up in your system then you may select one of those here.  </p>
<p>Sometimes you might want to have a page or filter on your website for users to view &#8220;New Products&#8221;.  To set an item as a new product you would do that here in the fields &#8220;Set Product As New <b>From Date</b>&#8221; and &#8220;Set Products As New <b>To Date</b>&#8220;.  Let the system know when the product will start to be considered new and select the date that the product will end being new.  </p>
<p>Make sure the status is &#8220;Enabled&#8221; if you want it visible online right away.  The URL key is where you would enter the custom url that you&#8217;d want used for this product.  For example, if your product is called &#8220;The Office DVD&#8221; then you could enter in this field &#8220;the-office-dvd&#8221;.  When viewing this product&#8217;s page on your website the url would appear as <b>http://yourwebsite.com/the-office-dvd/</b>.  Great for search engine optimization.</p>
<p>Finally select where this product will be visible- in the catalog, in the search, or both.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/4.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/4-187x300.png" alt="4" title="4" width="187" height="300" class="alignnone size-medium wp-image-466" /></a></p>
<h3>More Settings</h3>
<p><a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/5.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/5.png" alt="5" title="5" height="150" class="alignleft size-full wp-image-468" style="margin-right:20px;" /></a>  There is a lot of information that you still need to fill in, and you&#8217;ll notice a series of tabs to the left of the screen.  You&#8217;ll need to visit almost all of these.  As you go along it&#8217;s a good idea to press the &#8220;Save And Continue Edit&#8221; button to the top right to ensure that you don&#8217;t lose any information.  It isn&#8217;t necessary but a good idea.</p>
<p>&nbsp;</p>
<h3>Prices</h3>
<p>Next you have to give your product a price, found in the &#8220;Prices&#8221; tab.  There is the default &#8220;Price&#8221;, followed by a &#8220;Special Price&#8221; field.  The special price is a sale price that you might want to list your product as temporarily.  If you choose to put your product on sale you&#8217;ll want to fill in the &#8220;Special Price From Date&#8221; and &#8220;Special Price To Date&#8221; fields to tell your system how long that item will be listed for a discount.  The &#8220;Cost&#8221; field is for you to fill in how much that item costs you, not the customer, and will not show on the frontend of your website.  Select a tax class and whether or not that item is available for purchase with Google Checkout.  Save and continue edit.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/6.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/6.png" alt="6" title="6" width="501" height="514"  /></a></p>
<h3>Meta Tags For SEO</h3>
<p>Next press the &#8220;Meta Information&#8221; tab.  Here you will give this product page its own unique title, description, and keywords for the search engines to read and consider.  The title will be visible at the very very top of the browser window but the description and keywords will not.  The description should be one to two sentences long, and the keywords should be separated with commas.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/7.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/7.png" alt="7" title="7" width="500" height="492"  /></a></p>
<h3>Adding An Image</h3>
<p>From the &#8220;Images&#8221; tab is where you&#8217;ll add your product images.  First select the &#8220;Browse Files&#8221; button.  This will open a window from where you will browse through your computer for the image file that you wish to use.  Once you select your picture press &#8220;Open&#8221; and then &#8220;Upload Files&#8221;.  The image will upload but at first all you&#8217;ll see is an empty box- just swish your mouse over that empty box to see the image.  To the right are three radio buttons- Base Image, Small Image, and Thumbnail.  If you are only using one image for this product then select all three.  But you can upload different images to be used for each option.</p>
<p><a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/8.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/8-300x94.png" alt="8" title="8" width="300" height="94" class="alignnone size-medium wp-image-482" /></a></p>
<h3>Inventory</h3>
<p>Next let&#8217;s select the Inventory tab on the left.  This one is important.  First fill in the quantity that you have available.  If you leave it at zero then your system will mark that product as &#8220;out of stock&#8221;.  Then at the bottom list the item as &#8220;In Stock&#8221;.  When you sell out of an item Magento will automatically mark your product as unavailable for purchase.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/9.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/9.png" alt="9" title="9" width="499" height="476" class="alignnone size-full wp-image-486" /></a></p>
<h3>The Category</h3>
<p>You also need to file this product under one or more categories by selecting the Categories tab.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/10.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/10.png" alt="10" title="10" width="276" height="326" class="alignnone size-full wp-image-488" /></a></p>
<h3>Finishing Up</h3>
<p>Finally you have &#8220;Related Products&#8221;, &#8220;Up Sells&#8221; and &#8220;Cross Sells&#8221;.  Your website can be set up in such a way that when users are viewing a product page, related products can be suggested to them.  Additionally when they are visiting their cart and viewing what they plan to purchase you can offer them additional product ideas called &#8220;Cross Sells&#8221;.  All three are set up the same way.</p>
<p>First select the &#8220;Related Products&#8221; tab on the left.  You should be presented with a list of products that you have listed previously.  If this is your first product that you are adding to your store then you will need to come back to this step at a later date.  If you do have products added to your store but you don&#8217;t see them listed on this screen then press the &#8220;Refresh Filter&#8221; button on the top right.  Once the products are displayed simply check the boxes of the products that you wish to relate to the one that you&#8217;re currently adding- two to four is best.  </p>
<p>Rinse and repeat for Cross Sells and Upsells.<br />
<a href="http://micromediawebsites.com/blog/wp-content/upload/2009/12/11.png" rel="lightbox[455]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/12/11.png" alt="11" title="11" width="500" height="399" class="alignnone size-full wp-image-492" /></a></p>
<p>Finally when everything is filled in press the &#8220;Save&#8221; button at the top right to finish up!</p>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=455</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction To HTML/CSS</title>
		<link>http://micromediawebsites.com/blog/?p=436</link>
		<comments>http://micromediawebsites.com/blog/?p=436#comments</comments>
		<pubDate>Tue, 27 Oct 2009 23:23:06 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=436</guid>
		<description><![CDATA[HTML and CSS are the core programming languages for website creation.  There are many other programming languages as well, such as javascript and PHP, which add additional functionality to websites like slideshows and database interaction, but without HTML and CSS a website could not be (which the exception of flash, which is a horrible way [...]]]></description>
			<content:encoded><![CDATA[<p>HTML and CSS are the core programming languages for website creation.  There are many other programming languages as well, such as javascript and PHP, which add additional functionality to websites like slideshows and database interaction, but without HTML and CSS a website could not be (which the exception of flash, which is a horrible way to build a website).</p>
<p>HTML is an acronym for &#8220;hypertext markup language&#8221;.  It is used to structure the website, much like a house is structured by a frame.  CSS is an acronym for &#8220;cascading stylesheets&#8221; and it is used to style the look of your website.  Much like paint, curtains, and flooring style the look of a house.</p>
<p>What you will need: in order to write code you will need a good text editor.  I recommend <a href="http://notepad-plus.sourceforge.net/uk/site.htm" target="_blank">Notepad++</a>.  Download that to your computer and open it.</p>
<h3>Lets first take a look at the basics of HTML</h3>
<p>All HTML code is surrounded by angle brackets <b><</b> and <b>></b>.  Anything inside of these brackets are commands given to the browser.  Anything outside of these brackets are words that will be displayed on the screen.  For example:</p>
<p><b>&lt;b>The fox jumps over the fence&lt;/b></b></p>
<p>The letter b is surrounded by an opening and closing bracket.  This tells the browser that the following text will be bold.  The words outside of the brackets are what actually appear on the screen, and the type will appear in bold as we commanded.  Finally when we are finished with the bold text we must tell it to end.  We do that by repeating our opening &lt;b> and inserting a forward slash just before to let the browser know that we are now done with that command. &lt;/b>.</p>
<p>I read this as &#8220;open&#8221; and &#8220;close&#8221;.  So for me, I would read the following statement <b>&lt;b>The fox jumps&#8230;&lt;/b></b> as &#8220;Open bold. The fox jumps over&#8230; Close bold.&#8221;</p>
<p>You will always close an open tag, with only a couple of exceptions that we will get to later.</p>
<h3>Basic Markup</h3>
<p>Let&#8217;s take a look at the most basic structure of a website:</p>
<pre>&lt;html>
&lt;head>
&lt;title>My Website Title&lt;/title>
&lt;/head>
&lt;body>
Hello World!
&lt;/body>
&lt;/html>
</pre>
<p>Now lets read this line by line and explain what it means:<br />
&lt;html>  &#8212; This lets the browser know that the file is written in HTML<br />
&lt;head>  &#8212; This is a section of the file that is used for many things, mostly for linking to external CSS files and Javascript files.  We&#8217;ll go into that later.<br />
&lt;title>  &#8212; This is the title of your website, which is displayed across the very top of the browser window.  The title is always inside of the &lt;head>.<br />
&lt;/head>  &#8212; We must end the head when we are finished with it, before the start of the body<br />
&lt;body>  &#8212; After the head we begin the body.  This is the actual part of the file that is your website.<br />
&lt;/body> &#8212; We end the body when we&#8217;re finished with it<br />
&lt;/html> &#8212;  We end the HTML at the very very end.</p>
<p>I&#8217;d like to point something important out at this point.  Note that all tags are closed in the reverse order that they were opened.  First we opened the head, then we opened the title.  Then we closed the title before we closed the head.  If it helps, picture this code as a series of boxes inside of other boxes.  We must first close the inner box before we can close the containing box.</p>
<p><a href="http://micromediawebsites.com/blog/wp-content/upload/2009/10/structure.png" rel="lightbox[436]"><img src="http://micromediawebsites.com/blog/wp-content/upload/2009/10/structure.png" alt="structure" title="structure" width="400" height="220" class="alignnone size-full wp-image-447" /></a></p>
<p>Now go ahead and open your text editor and type out the example code above.  Once that&#8217;s done save the file as &#8220;index.html&#8221;.  You must remember to add the .html part to the end.  After it&#8217;s saved double click on that file in your computer to open it in your browser window.  You should see a white screen with the words &#8220;Hello World!&#8221; and the title &#8220;My Website Title&#8221; across the top of the screen.  Congratulations!  You&#8217;ve just made your first web page!</p>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=436</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Favorite Wordpress Plugins</title>
		<link>http://micromediawebsites.com/blog/?p=424</link>
		<comments>http://micromediawebsites.com/blog/?p=424#comments</comments>
		<pubDate>Mon, 28 Sep 2009 03:35:08 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[Jess' Notes]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=424</guid>
		<description><![CDATA[Wordpress plugins can add some much needed functionality to a blog installation quickly and easily.  Here are a list of my favorites.
All in One SEO Pack
This plugin will add a custom panel to each page and post write screen, enabling you to give every single one its own unique title, description, and keywords for [...]]]></description>
			<content:encoded><![CDATA[<p>Wordpress plugins can add some much needed functionality to a blog installation quickly and easily.  Here are a list of my favorites.</p>
<h3><a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">All in One SEO Pack</a></h3>
<p>This plugin will add a custom panel to each page and post write screen, enabling you to give every single one its own unique title, description, and keywords for the search engines.</p>
<h3><a href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">Google XML Sitemaps</a></h3>
<p>Auto-generates an XML sitemap of your blog every time a post is created or updated, and it sends that sitemap off to most of the major search engines such as ASK.com, Google, MSN Search and YAHOO.</p>
<h3><a href="http://wordpress.org/extend/plugins/my-page-order/" target="_blank">My Page Order</a></h3>
<p>Very handy and super easy to use.  Lets you rearrange the order of your pages as they appear in your menu by simply dragging and dropping them from a page in your admin panel.</p>
<h3><a href="http://wordpress.org/extend/plugins/exclude-pages/" target="_blank">Exclude Pages</a></h3>
<p>Adds a small checkbox to the page-editing screen giving you the option to include this page in user menus.  By default it is checked and the page will appear as a link.  However by simply unchecking that box your page will now be hidden from view.</p>
<h3><a href="http://www.deliciousdays.com/cforms-plugin" target="_blank">cforms II</a></h3>
<p>An extremely powerful plugin that generates an AJAX driven contact form for your blog.</p>
<h3><a href="http://flutter.freshout.us/" target="_blank">Flutter</a></h3>
<p>A plugin that helps turn a regular Wordpress driven site into a powerful content management system.  With it you can generate your own custom write panels and lay out your page content in almost any fashion you want.</p>
<h3><a href="http://wordpress.org/extend/plugins/members-only/" target="_blank">Members Only</a></h3>
<p>Password protect your entire blog and redirect visitors to a selected splash page unless they are logged in.  Very handy if your site is under developement.</p>
<h3><a href="http://wordpress.org/extend/plugins/wordpress-automatic-upgrade/" target="_blank">Wordpress Automatic Upgrade</a></h3>
<p>This plugin notifies you when a new version of Wordpress has been released, and upon your permission with quickly and easily upgrade your site.</p>
<h3><a href="http://wordpress.org/extend/plugins/wp-pagenavi/" target="_blank">WP-PageNavi</a></h3>
<p>Creates a &#8220;pagination&#8221; for your blog pages so that rather than selecting &#8220;previous posts&#8221; and &#8220;newer posts&#8221; your users will be provided with links to additional pages such as [Page 1 of 9] [1] [2] [3] etc.</p>
<h3><a href="http://www.mediatricks.biz/blog/2008/08/30/new-limit-posts-plugin-cuts-wp-caption" target="_blank">Viva Content Trimmer</a></h3>
<p>Rather than use the_exerpt on your index and archives pages to limit your post display, this plugin will allow you to limit how much of your article will show quickly and easily.</p>
<h3><a href="http://www.press75.com/the-simple-post-thumbnails-wordpress-plugin/" target="_blank">Simple Post Thumbnails</a></h3>
<p>Adds an image upload box to the post writing page for quickly adding a thumbnail.</p>
<p>*note: if running WP version 2.9 or higher the system provides support for this feature. <a href="http://justintadlock.com/archives/2009/11/16/everything-you-need-to-know-about-wordpress-2-9s-post-image-feature">http://justintadlock.com/archives/2009/11/16/everything-you-need-to-know-about-wordpress-2-9s-post-image-feature</a></p>
<h3><a href="http://www.wp-eventscalendar.com/" target="_blank">Events Calendar</a></h3>
<h3><a href="http://wordpress.org/extend/plugins/wplite/screenshots/" target="_blank">Selectively Hide Admin Buttons And More</a></h3>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=424</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Comments</title>
		<link>http://micromediawebsites.com/blog/?p=419</link>
		<comments>http://micromediawebsites.com/blog/?p=419#comments</comments>
		<pubDate>Fri, 11 Sep 2009 15:38:52 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[Jess' Notes]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=419</guid>
		<description><![CDATA[Here are a number of tricks and tips for spicing up Wordpress comments including custom display, author highlighting, gravatars, removing the no-follow link, and more!
Alternating Comment Colors
Adding a zebra stripe effect to even and odd numbered comments can make them easier to read.  Add the following code to your comments.php template file, under where [...]]]></description>
			<content:encoded><![CDATA[<p>Here are a number of tricks and tips for spicing up Wordpress comments including custom display, author highlighting, gravatars, removing the no-follow link, and more!</p>
<h3>Alternating Comment Colors</h3>
<p>Adding a zebra stripe effect to even and odd numbered comments can make them easier to read.  Add the following code to your comments.php template file, under where it says &lt;?php if ( $comments ) : ?></p>
<pre>&lt;ul>
&lt;?php $i = 0; ?>
&lt;?php foreach ($comments as $comment) : ?>
&lt;?php $i++; ?>
&lt;li id="comment-&lt;?php comment_ID() ?>"&lt;?php if($i&#038;1)
{ echo 'class="odd"';} else {echo 'class="even"';} ?>&lt;/ul></pre>
<p>The CSS:</p>
<pre>
.odd {
background-color: #fcf9fc; }
.even {
background-color: #616161; }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=419</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Template Tags</title>
		<link>http://micromediawebsites.com/blog/?p=357</link>
		<comments>http://micromediawebsites.com/blog/?p=357#comments</comments>
		<pubDate>Thu, 23 Jul 2009 20:38:49 +0000</pubDate>
		<dc:creator>Jess</dc:creator>
				<category><![CDATA[Jess' Notes]]></category>

		<guid isPermaLink="false">http://micromediawebsites.com/blog/?p=357</guid>
		<description><![CDATA[The core template tags for Wordpress development including main template tags, conditional tags, and post metadata.
List of conditional tags

is_home() For use on the main blog page, usually your home page.

is_page() For WordPress pages.
is_page('2') Where 2 is the page ID.
is_page('about') Where about is the page slug

is_single() To be used on single blog post pages.
is_single('About Me') Where [...]]]></description>
			<content:encoded><![CDATA[<p>The core template tags for Wordpress development including main template tags, conditional tags, and post metadata.</p>
<h3>List of conditional tags</h3>
<pre>
is_home() For use on the main blog page, usually your home page.

is_page() For WordPress pages.
is_page('2') Where 2 is the page ID.
is_page('about') Where about is the page slug

is_single() To be used on single blog post pages.
is_single('About Me') Where About Me is the page title
is_single('1') Where 1 is the post ID.
is_single('hello-world') Where hello-world is the post slug
is_single('Hello World!') Where Hello World! is the post title

is_category() - When a category page is listed
in_category('1') - When a post is in category ID 1.
is_tag() - On a tag archive page, similar to is_category().
is_archive() Any archive page including monthly, categories, tags.
is_search() For search results pages.
is_404() When a page is not found
</pre>
<h3>List of post metadata tags</h3>
<pre>&lt;?php the_permalink() ?> - This will echo the permalink of the post
    &lt;?php the_title(); ?> - This echos the post title
    &lt;?php the_time(’F jS, Y’) ?> - The date, April 4th, 2008.
    &lt;?php the_author() ?> - This will display the author’s name
    &lt;?php the_tags(’Tags: ‘, ‘, ‘, ‘’); ?> - Display the tags,
         separated by commas, followed by a line break
    &lt;?php the_category(’, ‘) ?> - This will display the categories
    &lt;?php edit_post_link(’Edit’, ”, ‘ | ‘); ?>
    &lt;?php comments_popup_link(’No Comments »’,
            ‘1 Comment »’, ‘% Comments »’); ?> </pre>
<h3>The &#8220;list pages&#8221; template tag</h3>
<pre>&lt;?php wp_list_pages( $args ); ?> </pre>
<p>List pages comes with several arguments to further customize the appearance of the listed pages.  For example, here is the way to show specific pages by ID with the heading &#8220;Pages&#8221;.</p>
<pre>&lt;ul>
  &lt;?php wp_list_pages('include=7,13,26,35&#038;title_li=&lt;h2>'
        . __('Pages') . '&lt;/h2>' ); ?>
  &lt;/ul></pre>
<p>Some common arguments include:</p>
<pre>&lt;?php $args = array(
    'depth'        => 0,
    'show_date'    => ,
    'date_format'  => get_option('date_format'),
    'child_of'     => 0,
    'exclude'      => ,
    'title_li'     => __('Pages'),
    'echo'         => 1,
    'authors'      => ,
    'sort_column'  => 'menu_order, post_title',
    'link_before'  => ,
    'link_after'   => ,
    'exclude_tree' =>  ); ?> </pre>
<h3>Retrieve a specific post/page</h3>
<p>Retrieving a specific post</p>
<pre>&lt;?php
// retrieve one post with an ID of 5
query_posts('p=5');
?></pre>
<p>Retrieving a specific page</p>
<pre>&lt;?php
query_posts('page_id=7'); //retrieves page 7 only
query_posts('pagename=about'); //retrieves the about page only
?></pre>
<h3>Organized archives page</h3>
<p>Query all posts and structure them by category, and by monthly archive.</p>
<pre>&lt;?php while(have_posts()) : the_post(); ?>
&lt;h2>&lt;?php the_title(); ?>&lt;/h2>
&lt;ul>&lt;?php wp_list_cats('sort_column=name&#038;optioncount=1') ?>&lt;/ul>
&lt;ul>&lt;?php wp_get_archives('type=monthly&#038;show_post_count=1') ?>&lt;/ul>
&lt;?php endwhile; ?></pre>
<h3>Custom Fields</h3>
<p>Here is an example of a custom field option I set up for a client.  He had an area in each post to display a video, and in most circumstances he wanted a default video displayed.  But occasionally he wanted to be able to override that video and display something else, or show nothing at all.  I created a custom field called &#8220;video&#8221;, in which he could place the embed code of a video (or anything really), and that would show in place of the default.  Or he could enter the word &#8220;none&#8221; into the video custom field to show nothing.</p>
<p>Below is the code.  Basically it says &#8220;if there is a custom field named video, if it has a value and if that value is not equal to &#8216;none&#8217;, then display the code.  Else if video has a value and that value equals &#8216;none&#8217; then display nothing.  Else just show the default.&#8221;</p>
<pre>&lt;?php $video = get_post_meta($post->ID, video, true);
if($video &#038;&#038; $video !== none){ ?>
&lt;?php echo get_post_meta($post->ID, video, true); ?>

&lt;?php }elseif($video === none ) { ?>
Do nothing here

&lt;?php }else{ ?>
Default video code here, or whatever you want shown by default
&lt;? } ?></pre>
]]></content:encoded>
			<wfw:commentRss>http://micromediawebsites.com/blog/?feed=rss2&amp;p=357</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

