<?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>LogOn</title>
	<atom:link href="http://www.logon.ie/feed" rel="self" type="application/rss+xml" />
	<link>http://www.logon.ie</link>
	<description>Simple But Powerful Websites For Small Business</description>
	<lastBuildDate>Tue, 27 Jul 2010 18:47:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Add Edit Link To WordPress Posts and Pages</title>
		<link>http://www.logon.ie/blog/wordpress-add-edit-link</link>
		<comments>http://www.logon.ie/blog/wordpress-add-edit-link#comments</comments>
		<pubDate>Mon, 26 Jul 2010 10:16:06 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=662</guid>
		<description><![CDATA[This is a WordPress Quick Tip: How to add an &#8220;Edit this page&#8221; link to your WordPress posts and pages that will only be displayed if you are logged in. First, find the location where you want to display the link. A good place to put it is either just before, or just after the [...]]]></description>
			<content:encoded><![CDATA[<p>This is a WordPress Quick Tip: <strong>How to add an &#8220;Edit this page&#8221; link to your WordPress posts and pages that will only be displayed if you are logged in.</strong></p>
<p>First, find the location where you want to display the link. A good place to put it is either just before, or just after the main content of the page.<br />
<span id="more-662"></span><br />
I look for the following code in the <strong>/wp-content/YourThemeName/page.php</strong> (or <strong>single.php</strong>) file:</p>
<p><code>&lt;?php the_content(); ?&gt;</code></p>
<p>and place the following code just after it:</p>
<p><code>&lt;?php edit_post_link('[edit this page]', '&lt;p&gt;', '&lt;/p&gt;'); ?&gt;</code></p>
<p>That displays <a href="#">[edit this page]</a> in it&#8217;s own paragraph so it shouldn&#8217;t mess up your page formatting on you! Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/blog/wordpress-add-edit-link/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Add Custom Menu Support To WordPress Theme</title>
		<link>http://www.logon.ie/blog/add-custom-menu-to-theme</link>
		<comments>http://www.logon.ie/blog/add-custom-menu-to-theme#comments</comments>
		<pubDate>Sun, 25 Jul 2010 18:07:13 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=637</guid>
		<description><![CDATA[This is a quick blog tip on how to add support for the new custom menus in WordPress 3 into a theme that doesn&#8217;t already support them. First, we need to enable support within the theme. To do that, open the /wp-content/themes/YourThemeName/functions.php file and add this line of code to the bottom (before the closing [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick blog tip on how to add support for the new custom menus in WordPress 3 into a theme that doesn&#8217;t already support them.</p>
<p>First, we need to enable support within the theme. To do that, open the <strong>/wp-content/themes/YourThemeName/functions.php</strong> file and add this line of code to the bottom (before the closing &#8220;?&gt;&#8221;):</p>
<p><code>add_theme_support( 'menus' );</code></p>
<p>Now the theme knows it can support custom menus. Next we need to tell the theme where it can put them &#8211; we do this by placing calls to the <strong>wp_nav_menu() function where we want the menus to appear</strong>.<span id="more-637"></span></p>
<p>Usual locations for menus are in the header near the top of the page, in a sidebar, and in the page footer. What I normally do for smaller sites is put a limited menu in the banner, which only contains the main pages of the site and doesn&#8217;t change when new pages are added. Then for the sidebar I add a full list of all pages, which grows as pages are added. Depending on the site, sometimes you want to show child pages, on others parent pages only.</p>
<p>Let&#8217;s get to the code already! Here&#8217;s a typical menu. Note the<strong> &#8216;menu&#8217; =&gt; &#8216;menu-sidebar&#8217;</strong> code is what identifies the menu by name within the WordPress 3 menu system, and the <strong>&#8216;container_class&#8217; =&gt; &#8216;menu-sidebar&#8217;</strong> bit is what creates the<strong> class=&#8221;menu-sidebar&#8221;</strong> bit so you can style each menu invidually within CSS.</p>
<p><code><br />
&lt;!--sidebar.php--&gt;<br />
&lt;h2&gt;Site Navigation&lt;/h2&gt;<br />
&lt;?php wp_nav_menu( array( 'sort_column' =&gt; 'menu_order', 'container_class' =&gt; 'menu-sidebar', 'menu' =&gt; 'menu-sidebar') ); ?&gt;<br />
</code></p>
<p>And here&#8217;s a header menu &#8211; I&#8217;ve left in the h1 header for context, but the  <strong>wp_nav_menu()</strong> is the relevant bit for us.</p>
<p><code><br />
&lt;div id="header"&gt;<br />
&lt;h1&gt;&lt;a href="&lt;?php echo get_settings('home'); ?&gt;/"&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt;&lt;/h1&gt;<br />
&lt;h2&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/h2&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div id="menudiv"&gt;<br />
&lt;?php wp_nav_menu( array( 'sort_column' =&gt; 'menu_order', 'container_class' =&gt; 'menu-header', 'menu' =&gt; 'menu-header' ) ); ?&gt;<br />
&lt;/div&gt;<br />
</code></p>
<p>That&#8217;s it &#8211; adding custom menu support to your WordPress theme is pretty easy, eh? Your suggestions or questions are very welcome in the comments section below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/blog/add-custom-menu-to-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Syndication Feature</title>
		<link>http://www.logon.ie/blog/test-syndication-feature</link>
		<comments>http://www.logon.ie/blog/test-syndication-feature#comments</comments>
		<pubDate>Wed, 21 Jul 2010 22:10:19 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=631</guid>
		<description><![CDATA[This post is to test the syndication feature over on my personal website at AlastairMcDermott.com. I&#8217;ve set it up to syndicate posts from all of the different blogs that I write, so that I can continue to keep each in it&#8217;s own location, but have an up to date personal site. I&#8217;ll write up a [...]]]></description>
			<content:encoded><![CDATA[<p>This post is to test the syndication feature over on my personal website at <a href="http://www.alastairmcdermott.com">AlastairMcDermott.com</a>. I&#8217;ve set it up to syndicate posts from all of the different blogs that I write, so that I can continue to keep each in it&#8217;s own location, but have an up to date personal site.</p>
<p>I&#8217;ll write up a post sometime detailing how the whole thing works, I think it&#8217;s pretty cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/blog/test-syndication-feature/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basics of Custom Fields In WordPress</title>
		<link>http://www.logon.ie/blog/basics-custom-fields-wordpress</link>
		<comments>http://www.logon.ie/blog/basics-custom-fields-wordpress#comments</comments>
		<pubDate>Mon, 14 Jun 2010 18:07:15 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[customise]]></category>
		<category><![CDATA[fields]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=583</guid>
		<description><![CDATA[I was recently asked about using custom fields in WordPress and I thought it was worthy of a quick blog post. I&#8217;ve seen custom fields used for many different things from review ratings (e.g &#8220;3/5 stars&#8220;) to mood messages (&#8220;Today I feel like listening to  loud metal and shouting at my housemates&#8220;), etc. For this [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="margin: 9px;" src="http://farm3.static.flickr.com/2660/3715569167_7e978e8319.jpg" alt="Beautiful Field - by flickr's KevinLallier " width="320" height="213" /></p>
<p>I was recently asked about using custom fields in WordPress and I thought it was worthy of a quick blog post. I&#8217;ve seen custom fields used for many different things from review ratings (e.g &#8220;<em>3/5 stars</em>&#8220;) to mood messages (&#8220;<em>Today I feel like listening to  loud metal and shouting at my housemates</em>&#8220;), etc. For this example, let&#8217;s use a very simple real case we recently dealt with.</p>
<p>We wanted to have an image appear at the top of the WordPress Page or Post, under the headline but above the text. We wanted the image to be shown whenever we supplied one. Here&#8217;s how we implemented it.<span id="more-583"></span></p>
<p>First off, we want to put it after the header, but before the title. We did a &#8220;View Source&#8221; on one of the pages and saw code that looked like this for the headline and content:</p>
<pre id="line137">&lt;div class="content"&gt;
&lt;h2 class="title"&gt;Case Studies&lt;/h2&gt;
&lt;p&gt;What follows are real life examples of recent work we carried our. We have chosen 3 examples representing vastly different business verticals and company age. If you would like to ask us more about these please contact us.&lt;/p&gt;
&lt;p&gt;&lt;a class="post-edit-link" href="http://www.oursite.tld/wp-admin/post.php?post=476&amp;amp;action=edit" title="Edit Page"&gt;Edit this entry.&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</pre>
<p>So we now roughly what the code that we want to find in the theme looks like. We found it in the page.php file (www.oursite.tld/wp-content/themes/our-theme-name/page.php). Here&#8217;s what it looked like:</p>
<pre>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
&lt;?php the_content('&lt;p&gt;Read the rest of this page &amp;raquo;&lt;/p&gt;'); ?&gt;
&lt;?php wp_link_pages(array('before' =&gt; '&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; ', 'after' =&gt; '&lt;/p&gt;', 'next_or_number' =&gt; 'number')); ?&gt;
&lt;?php endwhile; endif; ?&gt;
&lt;?php edit_post_link('Edit this entry.', '&lt;p&gt;', '&lt;/p&gt;'); ?&gt;</pre>
<p>Now we&#8217;re getting places &#8211; we want to add our custom image after the &lt;h2&gt;&#8221;the_title()&#8221;&lt;/h2&gt; header, and before the call to &#8220;the_content()&#8221;. Let&#8217;s build the code we want to add.</p>
<p>First of all, we&#8217;ve decided to call our custom field &#8220;&#8216;custom-post-image&#8221; to reflect its usage. We need to check the custom fields array to find out if that exists using the <a href="http://codex.wordpress.org/Function_Reference/get_post_meta">get_post_meta()</a> function like so:</p>
<pre>$themeta = get_post_meta($post-&gt;ID, $customfieldkey, TRUE);</pre>
<p>Now all we want to do is check if it&#8217;s empty (or rather, if it&#8217;s not):</p>
<pre>if($themeta != '') {}</pre>
<p>And finally, if it&#8217;s not empty, build the &lt;img&gt; tag based on the custom field contents:</p>
<pre>echo '&lt;img class= "custom-post-image" src="';
echo $themeta;
echo'" /&gt;  ';</pre>
<p>Here&#8217;s the complete code &#8211; rather simple really!</p>
<pre>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
&lt;?php
/*     check if custom-post-image custom field exists,
if it does, display an image, if not, do nothing */
$customfieldkey = 'custom-post-image';
$themeta = get_post_meta($post-&gt;ID, $customfieldkey, TRUE);
if($themeta != '') {
echo '&lt;img class= "custom-post-image" src="';
echo $themeta;
echo'" /&gt;  ';
}
?&gt;
&lt;?php the_content('&lt;p&gt;Read the rest of this page &amp;raquo;&lt;/p&gt;'); ?&gt;</pre>
<p style="text-align: left;">That&#8217;s the code all done! Now all we need to do is add the custom field, and populate it. That&#8217;s very easy to do also. From under the edit box in your Write Page scroll down to the Custom Fields box. Click on &#8220;Enter new&#8221; (highlighted below):<br />
<img class="aligncenter" title="Add WordPress Custom Field " src="/images/wordpress-custom-field0.png" alt="Add a WordPress Custom Field " width="682" height="277" /><br />
Now add your custom field using the same name that you used in your code &#8211; above we used &#8220;custom-post-image&#8221;. Select it from the drop-down, then fill in a value for the image location &#8211; e.g. &#8220;/images/our-example-image.png&#8221;:</p>
<p><img class="aligncenter" style="margin: 9px;" title="Add WordPress Custom Field Value" src="/images/wordpress-custom-field1.png" alt="Add a WordPress Custom Field value" width="716" height="264" /></p>
<p style="text-align: left;">You&#8217;re done:<br />
<img class="aligncenter" style="margin: 4px; border: 1px solid grey;" src="/images/AboutLogOn_1276543285275.png" alt="" width="600" height="211" /><br />
Enjoy playing with WordPress custom fields!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/blog/basics-custom-fields-wordpress/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress v3 Changes</title>
		<link>http://www.logon.ie/blog/wordpress-v3-changes</link>
		<comments>http://www.logon.ie/blog/wordpress-v3-changes#comments</comments>
		<pubDate>Fri, 04 Jun 2010 04:13:38 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=503</guid>
		<description><![CDATA[I&#8217;ve been using the WordPress v3 beta (nightly build) for a few weeks now, here are some thoughts on the new and improved features&#8230;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the WordPress v3 beta (nightly build) for a few weeks now, here are some thoughts on the new and improved features&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/blog/wordpress-v3-changes/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Code Snippets</title>
		<link>http://www.logon.ie/blog/wordpress-code-snippets</link>
		<comments>http://www.logon.ie/blog/wordpress-code-snippets#comments</comments>
		<pubDate>Thu, 03 Jun 2010 20:35:33 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=447</guid>
		<description><![CDATA[We&#8217;re planning to have WordPress Code Snippets for some simple but incredibly useful functions here on the blog. Stay tuned. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id mi risus. In hac habitasse platea dictumst. Praesent molestie, nibh eu vulputate mattis, libero eros bibendum velit, et congue massa quam id odio. Donec eros [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re planning to have WordPress Code Snippets for some simple but incredibly useful functions here on the blog.</p>
<p>Stay tuned.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id mi  risus. In hac habitasse platea dictumst. Praesent molestie, nibh eu  vulputate mattis, libero eros bibendum velit, et congue massa quam id  odio. Donec eros mi, auctor nec porta non, venenatis sodales elit.  Aliquam tellus nisl, sagittis vel bibendum in, mattis in arcu. <span id="more-447"></span> Pellentesque cursus, enim et laoreet pharetra, turpis quam vulputate  diam, a ornare dolor lacus vitae nulla. In hac habitasse platea  dictumst. Aenean in tellus ipsum, in vulputate tortor. Aliquam  condimentum libero vel orci aliquet lobortis. Maecenas commodo diam at  ipsum pellentesque dignissim convallis lacus faucibus. Suspendisse  hendrerit placerat dolor at iaculis. Aenean vitae odio odio. Phasellus  viverra, magna vitae porta pellentesque, sapien purus tristique enim,  quis aliquam nisl nisl a neque. Mauris laoreet orci at erat pretium  sodales. Proin mi diam, tempus et dictum et, ultrices a lorem. Nullam  pharetra, nunc nec eleifend suscipit, tellus urna pulvinar dolor,  commodo placerat nibh tellus eu magna. Praesent dapibus pretium  ullamcorper. Duis nec bibendum purus. Cum sociis natoque penatibus et  magnis dis parturient montes, nascetur ridiculus mus. Maecenas et metus a  magna ullamcorper mollis et congue tortor.</p>
<p>Aenean sed ipsum tortor. Mauris interdum vestibulum neque dictum  scelerisque. In volutpat, enim vel pharetra vestibulum, metus eros  porttitor felis, quis euismod nisl erat vel lorem. Aliquam nec sapien  sodales orci dapibus feugiat eget at magna. Mauris id libero turpis, sed  facilisis odio. Cras gravida purus in mauris placerat interdum. Fusce  quis rhoncus ligula. Integer lacinia sagittis quam varius posuere. Nam a  sapien sed quam sodales posuere. Cras egestas blandit enim, et  ultricies ipsum aliquet in.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada  fames ac turpis egestas. Maecenas auctor est at dolor ornare quis congue  libero mollis. Phasellus posuere dictum augue, sed tempor nisi  elementum sit amet. Fusce auctor urna sed odio iaculis ac malesuada mi  ultricies. Pellentesque habitant morbi tristique senectus et netus et  malesuada fames ac turpis egestas. Ut commodo justo posuere diam  eleifend scelerisque. Fusce dictum consequat consequat. Fusce nisl nisl,  aliquet nec vestibulum sit amet, convallis vel risus. Nulla ultricies  luctus nisi quis pretium. Cras vel dolor orci, id feugiat neque. Lorem  ipsum dolor sit amet, consectetur adipiscing elit. Nulla sed velit nisl.  Vivamus magna neque, blandit nec ultricies pretium, ultricies quis  nunc. Quisque sit amet diam urna. Sed tempor pharetra mauris id  imperdiet. Cras gravida, eros non sagittis ullamcorper, nibh neque  lobortis mauris, sit amet lacinia magna tellus sit amet purus.</p>
<p>Proin bibendum, dolor vel vestibulum sagittis, purus magna laoreet sem,  eu mollis est nisl sed nunc. Nunc eu erat vitae sapien laoreet semper.  Duis at tortor odio. Donec eleifend lobortis nisi, vitae molestie tortor  feugiat et. Nullam risus odio, ornare nec interdum ac, luctus eget  tellus. Cras mattis est et lorem elementum quis pulvinar lacus  consectetur. Vivamus tempor pretium orci id consectetur. Vivamus dictum  interdum ante, a eleifend tellus eleifend ut. Suspendisse est mauris,  mollis ac tempus quis, malesuada in libero. Curabitur posuere lacus eu  nisl sagittis fermentum quis vitae justo. Aenean ultrices elementum  odio, sed porta mauris placerat hendrerit. Lorem ipsum dolor sit amet,  consectetur adipiscing elit. Proin et mi tortor, id blandit massa. Donec  posuere posuere sem, sit amet rutrum ipsum pulvinar ut. Nulla  hendrerit, nulla vitae ullamcorper iaculis, nibh turpis malesuada  turpis, quis dictum sapien velit in metus. Aenean eu nisi non dui  sodales vehicula. Aliquam erat volutpat. Vestibulum ante ipsum primis in  faucibus orci luctus et ultrices posuere cubilia Curae; Mauris vehicula  dui orci.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/blog/wordpress-code-snippets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
