<?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>Sun, 04 Mar 2012 01:23:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress Training Courses in Dublin</title>
		<link>http://www.logon.ie/wordpress-training-dublin/</link>
		<comments>http://www.logon.ie/wordpress-training-dublin/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 10:15:05 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[dublin]]></category>
		<category><![CDATA[learn wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress training]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=836</guid>
		<description><![CDATA[We&#8217;re considering running some WordPress training courses in Dublin and trying to find out what kind of interest there is out there. We&#8217;re particularly interested in getting answers to some or all of the following: What time of day and week would suit you best? What level of WordPress knowledge do you have? What level [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re considering running some <strong>WordPress training courses in Dublin</strong> and trying to find out what kind of interest there is out there. We&#8217;re particularly interested in getting answers to some or all of the following:</p>
<ul>
<li>What time of day and week would suit you best?</li>
<li>What level of WordPress knowledge do you have?</li>
<li>What level of computer knowledge do you have?</li>
<li>How long should each class be?</li>
<li>How many classes should we run per course?</li>
<li>Would you bring your own laptop if that was required?</li>
<li>What would you consider a fair price ?</li>
</ul>
<p>If you&#8217;d like to attend a live classes somewhere in Dublin on learning  WordPress, please leave a comment below with a real email address so we  can contact you if it goes ahead.<br />
<strong><br />
If you&#8217;re interested in <a href="http://www.selfassemblysites.com">online WordPress training</a>, check out <a href="http://www.selfassemblysites.com">SelfAssemblySites.com</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/wordpress-training-dublin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fix For SimpleFolio Portfolio Not Displaying</title>
		<link>http://www.logon.ie/simplefolio-portfolio-not-displaying/</link>
		<comments>http://www.logon.ie/simplefolio-portfolio-not-displaying/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 09:58:48 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[simplefolio]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=779</guid>
		<description><![CDATA[I&#8217;m a fan of the SimpleFolio theme &#8211; that&#8217;s the WordPress theme we currently (March 2011) use here on LogOn. SimpleFolio was designed by Omar E. Corrales and released under GPL, meaning you can modify and use it for any project for free, without any restrictions (read the GPL for the fine print). Recently, just [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a fan of the SimpleFolio theme &#8211; that&#8217;s the WordPress theme we currently (March 2011) use here on LogOn. SimpleFolio was designed by <a href="http://www.slimmity.com/">Omar E. Corrales</a> and released under GPL, meaning you can modify and use it for any project for free, without any restrictions (read the GPL for the fine print).</p>
<p>Recently, just after a WordPress upgrade, the portfolio slider items stopped displaying on the homepage. I believe that <a href="http://www.slimmity.com/2010/08/slimmity-simplefolio-and-wordpress-3/">Omar is working on a WordPress 3 update for SimpleFolio</a>, but in the meantime there is a simple fix that you can apply to get your portfolio working if it&#8217;s broken.<br />
<span id="more-779"></span><br />
First, find out your portfolio category ID.</p>
<ol>
<li>To do this, go to your Categories page in WordPress admin (located at <strong>http://www.YourSite.tld/wp-admin/edit-tags.php?taxonomy=category</strong>).</li>
<li>Click the <strong>Edit</strong> link under the category that you use for your portfolio
<ul>
<li>Aside: if you don&#8217;t know which category it is go here and scroll down to &#8220;Portfolio Category&#8221; to find out: http://www.YourSite.tld/wp-admin/admin.php?page=sf-options)</li>
</ul>
</li>
<li>Look at the address bar of your browser to find the category ID &#8211; it will be the number just after &#8220;tag_ID=&#8221; in the address, like this where it is <strong>17</strong>: <code><strong>http://www.YourSite.tld/wp-admin/edit-tags.php?action=edit&amp;taxonomy=category&amp;tag_ID=17&amp;post_type=post</strong></code>.</li>
</ol>
<p>Now we need to edit some code. Go to http://www.YourSite.tld/wp-admin/theme-editor.php and click <strong>Home Page Template (template-home.php)</strong> on the right-hand side. (You should see an &#8220;Update File&#8221; button at the bottom left &#8211; if it&#8217;s not there, you need to make your theme files writable by the server, or use FTP. <a href="http://codex.wordpress.org/Changing_File_Permissions">See here for more info</a>. You can also just edit the files and FTP up if you prefer that &#8211; I do)</p>
<p>Look for the following code:</p>
<p><code>$my_query = new WP_Query('showposts='.$slide_count.'&amp;category_name='.$category);</code></p>
<p>You need to change that to:<br />
<code>$my_query = new WP_Query('showposts='.$slide_count.'&amp;<strong>cat=<em>n</em></strong>');</code></p>
<p>where <code><em><strong>n</strong></em></code> is the category ID number e.g.</p>
<p><code>$my_query = new WP_Query('showposts='.$slide_count.'&amp;cat=17');</code></p>
<p>Note there are 2 changes:</p>
<ol>
<li>Change <code>category_name</code> to <code>cat</code></li>
<li>Replace <code>'.$category</code> with <code><strong><em>n'</em></strong></code></li>
</ol>
<p>Make those changes so that line looks just like this (note: it is essential you get the single quotes correct):</p>
<p><code>$my_query = new WP_Query('showposts='.$slide_count.'&amp;cat=17');</code></p>
<p>Then hit Update File (or upload manually if you&#8217;ve used FTP) and your change will be made. Refresh your homepage to verify.</p>
<p>For the record, here&#8217;s what the block of code looks like in its entirety:</p>
<p><code>&lt;ul id="sliderContent"&gt;<br />
&lt;?php<br />
$category = get_option('sf_portfolio_category');<br />
$slide_count = (get_option('sf_slider_slides')) ? get_option('sf_slider_slides') : 5;<br />
$text_count = (get_option('sf_slider_chars')) ? get_option('sf_slider_chars') : 100;<br />
$my_query = new WP_Query('showposts='.$slide_count.'&amp;cat=17');<br />
while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();<br />
$do_not_duplicate = $post-&gt;ID;<br />
$thumb = get_post_meta($post-&gt;ID, 'thumb-large', true);<br />
?&gt;<br />
&lt;li&gt;<br />
&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;img src="&lt;?php echo $thumb; ?&gt;" alt="&lt;?php the_title() ?&gt;" /&gt;&lt;/a&gt;<br />
&lt;span&gt;&lt;h3&gt;&lt;?php the_title() ?&gt;&lt;/h3&gt; &lt;?php the_content_limit($text_count, ''); ?&gt;&lt;/span&gt;<br />
&lt;/li&gt;<br />
&lt;?php<br />
endwhile;<br />
?&gt;<br />
&lt;div&gt;&lt;/div&gt;<br />
&lt;/ul&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/simplefolio-portfolio-not-displaying/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Why I Recommend WordPress As CMS</title>
		<link>http://www.logon.ie/why-wordpress/</link>
		<comments>http://www.logon.ie/why-wordpress/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 16:13:57 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=699</guid>
		<description><![CDATA[I&#8217;m sometimes asked why I use and recommend WordPress as a CMS, instead of one of the other options like Joomla, Drupal, Expression Engine, etc. Here are some of the many reasons why I choose and recommend WordPress as CMS for many organisation&#8217;s web needs. WordPress is free for personal and commercial use. WordPress is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sometimes asked why I use and recommend WordPress as a CMS, instead of one of the other options like Joomla, Drupal, Expression Engine, etc. Here are some of the many reasons why I choose and recommend WordPress as CMS for many organisation&#8217;s web needs.<span id="more-699"></span></p>
<ol>
<li>WordPress is <strong>free</strong> for personal and commercial use.</li>
<li>WordPress is <strong>very</strong> <strong>popular</strong> &#8211; lots more people use it in comparison to every other system.  This means there are:
<ul>
<li>more design templates (called Themes) &#8211; both free and commercial &#8211; available for WordPress than for other systems</li>
<li>more add-ons (called Plugins) available which allow you to do almost anything you need with a WordPress site</li>
<li>more WordPress programmers and designers all around the world</li>
<li>more documentation, help files and how-to videos</li>
</ul>
</li>
<li>WordPress is<strong> easy for non-technical users</strong>. One of the most important things for me is that non-techies can log in and edit their website quickly and easily, and because of WordPress&#8217;s quite intuitive admin screen, the support requirements are easier.</li>
<li>WordPress is a <strong>very powerful Content Management System</strong> (CMS). Despite still (at least in v3) being configured &#8221;out of the box&#8221; as a blogging solution, it has almost every CMS feature you may need:
<ul>
<li>Parent and Child Pages and Posts</li>
<li>Categories and Page Templates</li>
<li>Multiple Users and different User levels (Roles)</li>
<li>Advanced Menu editing system</li>
<li>WYSIWYG Visual and HTML Editors</li>
<li>Plugins and Themes (templates)</li>
<li>XML import and export</li>
<li>loads more &#8211; there&#8217;s almost nothing it can&#8217;t do</li>
</ul>
</li>
<li>WordPress is <strong>open source</strong>, which means bugs and security issues are fixed quickly, and website owners can customise the system as much as they want themselves. It also means new features are available on a regular basis, and those updates can be applied within seconds using the easy update tools within the system.</li>
<li>WordPress is the<strong> market leading Open Source CMS</strong>, according to the <a href="http://www.waterandstone.com/book/2010-open-source-cms-market-share-report">2010 Open Source CMS Market Share Report</a>:</li>
</ol>
<blockquote><p>When we add all this up, we reach the conclusion that for 2010, WordPress has moved into market leader role in the Open Source CMS space. We conclude that the system leads in key metrics for both rate of adoption and brand strength. What accounts for the surge in WordPress brand strength this year? There is likely no single factor explaining the change, but we would attribute the success at least in part to the following:</p>
<ul>
<li>The success of WordPress 3. The newest major version release occurred in June of 2010.</li>
<li>The continuing popularity of the WordPress hosted blogging service.</li>
<li>A growing awareness in the market that WordPress is suitable for more than blogging.</li>
</ul>
</blockquote>
<h2><strong>But what about&#8230;</strong></h2>
<p><strong>Security</strong></p>
<p>Security is often leveled as a criticism against WordPress, and maybe deservedly so back in the day, but since 2007 or so WordPress has been very quick to roll out security fixes when found, and it hasn&#8217;t been any more often than other systems lately.</p>
<p>Other security issues with sites running WordPress are often caused by bad web server configurations or loose file permissions, i.e. not WordPress-specific, these are issues that can apply to any CMS (particularly those on shared hosting services).</p>
<p><strong>Updates too often </strong></p>
<p>The flip side of the security coin &#8211; and again this was very much the case in the past. Looking at the <a href="http://wordpress.org/news/category/releases/">release history</a> there were 5 updates in 2006, 16 updates in 2007, 7  in 2008, 9 in 2009 and 7 (up to 11 December) in 2010. Clearly 16 in 2007 felt excessive. However, with the easy update from the dashboard, you can update quickly and easily in 30 seconds or less.</p>
<p><strong>Performance</strong></p>
<p>WordPress is often accused of having poor performance, and I&#8217;m sure that some optimisation can be done, but out of the box on a good webserver with fast database, it&#8217;s quite good. Add caching  (<a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> or <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a>) and you can serve static pages when you&#8217;ve got intense traffic. For extreme traffic use a fast webserver like <a href="http://www.lighttpd.net/">Lighttd</a> instead of <a href="http://httpd.apache.org/">Apache</a> on dedicated server with caching enabled, <a href="http://sourceforge.net/projects/mod-gzip/">gzip</a> and <a href="http://www.minifycss.com/css-compressor/">minify</a> your scripts and use a <a href="http://en.wikipedia.org/wiki/Content_delivery_network#Content_delivery_service_providers">CDN</a> and you&#8217;ll handle anything the web can throw at you.</p>
<p><strong>Specialised Tasks </strong></p>
<p>There are still certain specialised tasks that I wouldn&#8217;t use WordPress for, even though it&#8217;s possible and there are many plugins available to allow it to do almost anything</p>
<p><strong>Ecommerce</strong>: I wouldn&#8217;t use WordPress as the main platform for an ecommerce store &#8211; I&#8217;d use something more specialised like <a href="http://www.magentocommerce.com/">Magento</a>, <a href="http://www.zen-cart.com/">ZenCart</a>, <a href="http://www.oscommerce.com/">OScommerce</a>, <a href="http://www.cubecart.com/">CubeCart</a> if going self-hosted, or <a href="http://www.shopify.com/ ">Shopify</a>, <a href="http://www.1shoppingcart.com/">1ShoppingCart</a> etc if going hosted.</p>
<p><strong>HelpDesk Ticketing</strong>: I&#8217;d use something specifically for ticketing (like <a href="http://osticket.com/">osTicket</a>), but I have seen <a href="http://wordpress.org/extend/plugins/wats/">many</a> <a href="http://wordpress.org/extend/plugins/support-tickets/">WordPress</a> <a href="http://wordpress.org/extend/plugins/technical-support/">plugins</a> for this.</p>
<p><strong>Project Management Task Tracking</strong>: I currently use BaseCamp, and there are other <a href="http://pm-sherpa.com/features/basecamp-alternatives/">open source alternatives</a> which are more suitable than configuring WordPress, although again, there are <a href="http://developdaly.com/wordpress/wordpress-for-project-management/">plugins</a> and <a href="http://wpcandy.com/teaches/how-to-manage-projects-with-wordpress">themes</a> available for that.</p>
<h2><strong>Your Thoughts</strong></h2>
<p>What about you? What types of sites would you <strong>not</strong> recommend using WordPress for? Have you any comments or suggestions?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/why-wordpress/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Aligning Images In WordPress</title>
		<link>http://www.logon.ie/aligning-images-in-wordpress/</link>
		<comments>http://www.logon.ie/aligning-images-in-wordpress/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 15:35:56 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=697</guid>
		<description><![CDATA[Sometimes you&#8217;ll find that images are not aligning to the left or right in your WordPress Page or Post, or image wrapping doesn&#8217;t occur properly, even though you se them aligned correctly in the visual editor. This is usually caused by missing CSS (&#8220;cascading style sheet&#8221;) code which WordPress expects to be in every theme. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="border: 1px solid grey; margin: 4px;" title="This image is right aligned with text wrapping" src="/images/missing-css3.png" alt="Screenshot of CSS code" />Sometimes you&#8217;ll find that images are not aligning to the left or right in your WordPress Page or Post, or image wrapping doesn&#8217;t occur properly, even though you se them aligned correctly in the visual editor.</p>
<p>This is usually caused by<span id="more-697"></span> <strong>missing CSS (&#8220;cascading style sheet&#8221;) code</strong> which WordPress expects to be in every theme. The solution is simple, add the following code into your /wp-content/ThemeName/style.css file:<br />
<code>img.alignright {float:right; margin:0 0 1em 1em}<br />
img.alignleft {float:left; margin:0 1em 1em 0}<br />
img.aligncenter {display: block; margin-left: auto; margin-right: auto}<br />
a img.alignright {float:right; margin:0 0 1em 1em}<br />
a img.alignleft {float:left; margin:0 1em 1em 0}<br />
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}</code></p>
<p><strong>Another cause of this and similar errors is use of a CSS reset style sheet without manually setting styles afterwards</strong> (e.g. bullet lists with no bullets, strong text that doesn&#8217;t show as bold, etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/aligning-images-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Edit Link To WordPress Posts and Pages</title>
		<link>http://www.logon.ie/wordpress-add-edit-link/</link>
		<comments>http://www.logon.ie/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/wordpress-add-edit-link/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Add Custom Menu Support To WordPress Theme</title>
		<link>http://www.logon.ie/add-custom-menu-to-theme/</link>
		<comments>http://www.logon.ie/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. For this example I&#8217;m going to setup two menus: a header menu for the top of the page, and a footer menu for the bottom. First, we need [...]]]></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>For this example I&#8217;m going to setup two menus: a header menu for the top of the page, and a footer menu for the bottom. </p>
<p>First, we need to register the menus with the theme. To do that, open the <strong>/wp-content/themes/YourThemeName/functions.php</strong> file and add this code to the bottom (before the closing &#8220;?&gt;&#8221;):</p>
<p><code><br />
/* Register Menus*/<br />
function register_my_menus() {<br />
  register_nav_menus(<br />
	array( 'header-menu' => __( 'Header Menu' ), 'footer-menu' => __( 'Footer Menu' ))<br />
  );<br />
}<br />
add_action( 'init', 'register_my_menus' );<br />
</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 header, which only contains the main pages of the site and doesn&#8217;t change when new pages are added. Then for the footer (or sometimes 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;header-menu&#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;header-menu-class&#8217;</strong> bit is what creates the<strong> class=&#8221;header-menu&#8221;</strong> bit so you can style each menu invidually within CSS.</p>
<p><code><br />
&lt;!--header.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; 'header-menu-class', 'menu' =&gt; 'header-menu') ); ?&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/add-custom-menu-to-theme/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Test Syndication Feature</title>
		<link>http://www.logon.ie/test-syndication-feature/</link>
		<comments>http://www.logon.ie/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/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/basics-custom-fields-wordpress/</link>
		<comments>http://www.logon.ie/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/basics-custom-fields-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress Code Snippets</title>
		<link>http://www.logon.ie/wordpress-code-snippets/</link>
		<comments>http://www.logon.ie/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 post some great code snippets, for some simple but very useful functions, here on the blog. Stay tuned :)]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re planning to post some great code snippets, for some simple but very useful functions, here on the blog. Stay tuned :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/wordpress-code-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SpiritWise: Brand Identity, Customise Theme Design</title>
		<link>http://www.logon.ie/spiritwise/</link>
		<comments>http://www.logon.ie/spiritwise/#comments</comments>
		<pubDate>Mon, 31 May 2010 18:31:51 +0000</pubDate>
		<dc:creator>Alastair McDermott</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.logon.ie/?p=250</guid>
		<description><![CDATA[Spiritwise is a custom design built on top of an existing Wordpress framework.  ]]></description>
			<content:encoded><![CDATA[<p>SpiritWise was an interesting challenge &#8211; to create a professional website with a very precise colour scheme and imagery. Dimitar, our lead designer and logo expert, created a fantastic logo for SpiritWise, around which we based the homepage design.</p>
<p>For the WordPress Theme, we found a suitable premium theme on Themeforest and disassembled. We put a completely new design on top of the theme framework and added in some <a href="/">custom WordPress programming</a> for several features. The result is one of our best designs to date.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logon.ie/spiritwise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

