<?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>Martiniboy</title>
	<atom:link href="http://www.martiniboy.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martiniboy.co.uk</link>
	<description>Mixology of code, Wordpress, HTML 5 and jQuery</description>
	<lastBuildDate>Wed, 10 Oct 2012 17:04:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>WordPress Plugin Integrates Facebook Insights</title>
		<link>http://www.martiniboy.co.uk/web-development-news/wordpress-plugin-integrates-facebook-insights/</link>
		<comments>http://www.martiniboy.co.uk/web-development-news/wordpress-plugin-integrates-facebook-insights/#comments</comments>
		<pubDate>Sun, 07 Oct 2012 18:27:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plugin development]]></category>
		<category><![CDATA[Web Development News]]></category>

		<guid isPermaLink="false">http://www.martiniboy.co.uk/?p=143</guid>
		<description><![CDATA[Jamie Social Icons V0.9.6 wordpress plugin will offer the functionality to be able to monitor your Facebook activity with Facebook Insights.   With Facebook announcing this week that it has over 1 billion users worldwide it is a great source to being able to share the content of your website with the masses. Jamie Social Icons [...]]]></description>
				<content:encoded><![CDATA[<p>Jamie Social Icons V0.9.6 wordpress plugin will offer the functionality to be able to monitor your Facebook activity with Facebook Insights.   With Facebook announcing this week that it has over 1 billion users worldwide it is a great source to being able to share the content of your website with the masses.</p>
<p>Jamie Social Icons is now an easy way to add this functionality to your WordPress website.  Facebook Insights provides reports broken down by domain and by app. These reports include rich data about users sharing content from your site within Facebook and other Facebook-enabled apps no matter where those activity originated. For example, if a user puts a URL from your site into a Facebook status message, that data is included in the analytics for your domain and of course it will monitor the Facebook likes on your site.</p>
<p style="text-align: left;"><img class="aligncenter  wp-image-144" title="facebook insights" src="http://www.martiniboy.co.uk/developer/wp-content/uploads/2012/10/facebook_insights.gif" alt="facebook insights" width="500" height="306" />To add this functionality to your WordPress website simply install <a title="Jamie Social Icons" href="http://www.martiniboy.co.uk/wordpress-plugins/jamie-social-icons/">Jamie Social Icons</a> and log into your Facebook account and go to <a href="http://www.facebook.com/insights" target="_blank">www.facebook.com/insights</a>.  Here you will see a button to saying &#8220;insights for your website&#8221; click on that and enter the domain of your website, and copy the numerical code in bottom meta tags.  See the example image above.   Add this code into the relevant box on the Jamie Social Icons Settings Page and save the settings.  It may take up to two days before you will be able to see the results on your Facebook insights page but then they will always be available.</p>
<p>Now when you visit the <a title="Facebook Insights" href="http://www.facebook.com/insights/" rel="nofollow" target="_blank">facebook insights page</a>, you will see your website listed under Websites.</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-148" title="martiniboy website in Facebook Insights" src="http://www.martiniboy.co.uk/developer/wp-content/uploads/2012/10/martiniboy.gif" alt="martiniboy website in Facebook Insights" width="459" height="238" /></p>
<p style="text-align: left;">Once you click on your site, you will be able to access all sort of insights. An example image is below:</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-145" title="Facebook Insights Martiniboy" src="http://www.martiniboy.co.uk/developer/wp-content/uploads/2012/10/fbinsights.gif" alt="Facebook Insights Martiniboy" width="520" height="195" />It is as simple as that, I think a great add on to a simple but effective wordpress plugin.  Try it out and <a title="Jamie Social Icons" href="http://www.martiniboy.co.uk/wordpress-plugins/jamie-social-icons/" target="_blank">download my plugin</a> and see how easy it is to tarck your Facebook activity, also track all your other social activity within your google analytics which was made a feature in Jamie social Icons V0.9.5.</p>
<p style="text-align: left;">Dont forget to share this post with all your friends on Facebook.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martiniboy.co.uk/web-development-news/wordpress-plugin-integrates-facebook-insights/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress wp_head and wp_footer functions and plugins</title>
		<link>http://www.martiniboy.co.uk/plugin-development/wordpress-wp_head-and-wp_footer-functions-and-plugins/</link>
		<comments>http://www.martiniboy.co.uk/plugin-development/wordpress-wp_head-and-wp_footer-functions-and-plugins/#comments</comments>
		<pubDate>Wed, 15 Aug 2012 19:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plugin development]]></category>

		<guid isPermaLink="false">http://www.martiniboy.co.uk/?p=113</guid>
		<description><![CDATA[Find out why two key things to add to a WordPress theme are the wp_head and wp_footer functions. These two functions are known as “action hooks”. In simple terms action hooks are placeholders where code is dynamically added to a theme. ]]></description>
				<content:encoded><![CDATA[<p><!--:de--></p>
<p><img class="alignright size-full wp-image-114" title="jamie social icons plugin" src="http://www.martiniboy.co.uk/developer/wp-content/uploads/2012/08/jamie_social.png" alt="jamie social icons plugin" width="300" height="182" />Recently since I updated my plugin <a title="Jamie Social Icons" href="http://www.martiniboy.co.uk/wordpress-plugins/jamie-social-icons/">Jamie social Icons</a> I have had a few complaints that my plugin stopped working, the main reason for the update was because I had inline scripts which, you probably know cause a delay in page downloads, especially as my plugins needs to make a call to the external sites of Facebook, Twitter, LinkedIn, Pinterest and Google plus which if they are having any issues will cause your page to be slow at loading, so I decided to move all the external scripts to the footer.</p>
<blockquote><p>By placing JavaScript in the footer it loads after all the rest of the DOM tree has been built. if you have inline JavaScript the DOM parser has to stop and process the JavaScript to see if it writes any more HTML code to the screen.</p></blockquote>
<p>When people first started to comment that the plugin had broken afer the update I was a little confused because I build multiple WordPress sites and al of them which i have included my plugin on all worked after the update, from looking at the source code I could see that no scripts were being pulled into the footer, so instantly Knew there was as issue with my add_action(&#8216;wp_footer&#8217;,&#8230; function, after trailing the internet I could only find similar cases of themes not having the <strong>wp_footer</strong> call in their footer.php&#8217;s, and some even with out the <strong>wp_head</strong> in the header.php.</p>
<p>When I first started developing themes, using the Kubrick theme as a basis I would always see the wp-head and wp_footer in the relating places but never really understood what they were for, only that I always need to add them.  With a mixture of my themes developing, the designer getting more adventurous and browsers capabilities developing and keeping sites looking the same in older browsers  the use of jQuery became a big part in my development. Resulting a huge headache as scripts stopped working once adding into WordPress, which I found out was scripts n conflict with each other was when I forst learnt what the wp_head and wp_footer were really for.  The WordPress Codex states that &#8220;Although this is theme-dependent, it is one of the most essential theme hooks, so it is fairly widely supported. &#8220;  So two key things to add to a WordPress theme are the <strong>wp_head</strong> and <strong>wp_footer</strong> functions. These two functions are known as “action hooks”. In simple terms<strong> action hooks are placeholders where code is dynamically added to a theme.  </strong></p>
<p>When these issues started to appear in the support forum and emails started to come in, I was starting to wonder whether I was using the function incorrectly, which I have still not ruled out as i am always on a learning curve but due to me not being able to replicate the error, without removing the wp_footer action, even to the extent of testing on different servers, I can only conclude that is the issue &#8211; although on one theme I had an issue becasue I somehow managed to miss out the starting body tag (luckily it was still in development).</p>
<p>Most modern themes will always include the two action hooks wp_head and wp_footer, but sometimes when themes are adapted to suit the users needs some tags are accidentally deleted/removed which may go unnoticed until that function is needed, I would suggest if you are going to amend a pre made theme (which is working properly) create a child theme and amend the files in that rather than the working theme so if you ever a mistake is made you still have a working copy, i will write a more detailed blog post of creating child themes later.</p>
<p>If ever you have an issue with a plugin or theme developemnt there are a couple of steps which may come in handy to check first, you have probably guessed the first step:</p>
<ul>
<li>Check the header.php that it includes the <!--?php wp_head();?--> tag, normally within and near to the closingtag and just incase you were sleeping like me while building a theme just check that there is an openingtag after the closingtag <img src='http://www.martiniboy.co.uk/developer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Check the footer.php that it includes the <!--?php wp_footer(); ?--> tag, I would recommend directly before the closing tag.</li>
</ul>
<ul>
<li>Check your site with the W3C validation service, ok because sites are not always built within strict rules of the W3C (Before you roundup the henchmen)  because of modern technologies ie.HTML5, CSS3 &#8211; these will not always validate in a regular W3c validator but you can see if/where the site is erroring, this is a useful tool, especially if you have missed a closing div.</li>
<li>Ask the plugin developer for help, mistakes are made, when I first released my Jamie Social Icons plugin because I was working in test while developing it, my call to the stylesheet was wrongly pathed when I added it to the repository so I had an update within the first 12 hours of launch.  Most developers create plugins out of enjoyment of learning new skills and sharing what they have learnt so are always happy to help, and cannot always test the plugins in all scenarios.</li>
</ul>
<p>So when you are next working on your website have a quick look in your theme files and see if you have the wp_head in the header.php and the wp_footer in the footer.php, if you don&#8217;t try adding them, this could well future proof your site to be able to use plugins which you could bnever get to work before.  But be careful changing your theme files always make a backup first.  Some times if you add these action hooks you may experience that your site does not behave the way that you are used too, it is possible that this could introduce plugin/theme conflicts if scripts have not been called before, if this is the case ask your theme developer they may be able to give you help or advice of to sort it, rather than installing that plugin further down the track and not be able to use it.</p>
<p><!--:--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.martiniboy.co.uk/plugin-development/wordpress-wp_head-and-wp_footer-functions-and-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a new sidebar widget area</title>
		<link>http://www.martiniboy.co.uk/wordpress-widgets/creating-a-new-sidebar-widget-area/</link>
		<comments>http://www.martiniboy.co.uk/wordpress-widgets/creating-a-new-sidebar-widget-area/#comments</comments>
		<pubDate>Sun, 27 May 2012 16:36:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Widgets]]></category>

		<guid isPermaLink="false">http://www.martiniboy.co.uk/?p=40</guid>
		<description><![CDATA[The widget is probably one of the most useful yet least used (especially by myself)  function of Wordpress.  These allow the user to add and remove functions on your site by simply dragging to and from. ]]></description>
				<content:encoded><![CDATA[<p>The widget is probably one of the most useful yet least used (especially by myself)  function of WordPress.  These allow the user to add and remove functions on your site by simply dragging to and from.  If you have never used the WordPress widget, log into your WordPress site and under Appearance click on Widgets.</p>
<p style="text-align: center;"><a href="http://www.martiniboy.co.uk/developer/wp-content/uploads/2012/05/widget_post.png"><img class="size-medium wp-image-62 aligncenter" title="Wordpress widget post" src="http://www.martiniboy.co.uk/developer/wp-content/uploads/2012/05/widget_post-300x181.png" alt="wordpress Widget" width="300" height="181" /></a></p>
<p>You should see a page like the image above, with all the widgets available on the left handside and in the right sidebar a list of areas that you can add the widgets to &#8211; most likely called Sidebar 1.  If you cannot see anything here not to worry, it means that your site is not widget-supported, we will soon get you up and running with your new dynamic widget sidebars/widget areas.</p>
<p>If you are seeing similar to above with just the one widget area to drag your widgets into you may be thinking how will this show different things on different pages.  I will be showing you how to create different Widget areas which you can to display in different places throughout your website.</p>
<p>To add another widget area go to your functions.php if you do not have one create it.</p>
<p>Generally the widget in the sidebar html is generated like the code below:</p>
<pre style="font-variant: normal !important; text-align: left !important; margin-top: 0px; margin-right: 0px; margin-bottom: 22px; margin-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: #000000; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f3f3f7; font-size: 12px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; font-weight: inherit; white-space: pre-wrap; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 1px; border-color: #dedee3; border-style: solid; padding: 11px;">&lt;ul id="sidebar"&gt;
&lt;li class="widget widget_categories"&gt;
&lt;h4&gt;Categories&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.martiniboy.co.uk"&gt;Example Category&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>To create the Widget Area for this within your functions.php paste the following code</p>
<pre style="font-variant: normal !important; text-align: left !important; margin-top: 0px; margin-right: 0px; margin-bottom: 22px; margin-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: #000000; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f3f3f7; font-size: 12px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; font-weight: inherit; white-space: pre-wrap; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 1px; border-color: #dedee3; border-style: solid; padding: 11px;">&lt;?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' =&gt; 'NAME OF WIDGETAREA',
'before_widget' =&gt; '&lt;li class="widget %2$s"&gt;',
'after_widget' =&gt; '&lt;/li&gt;',
'before_title' =&gt; '&lt;h4 class="title"&gt;',
'after_title' =&gt; '&lt;/h4&gt;',
));
?&gt;</pre>
<p><em>If you alrerady have code within your functions.php omit the opening and closing php tags above</em></p>
<p>Changing NAME_OF_WIDGETAREA to the name of your choice so you will recognize it within your widgets page, especially if you have lots of different widget areas.  For example if you were using one of my widget plugins &#8211; <a title="Jamie’s WP Arrow Newsletter Subscriber" href="http://www.martiniboy.co.uk/wordpress-plugins/arrow-newsletter-subscriber/">Jamie’s WP Arrow Newsletter Subscriber </a>but you wanted this to show at the bottom of every page, you can either drag the widget to the botton of every widget or create a widget area for solely for this named &#8220;Newsletter&#8221; or if you have a few different widgets that you want at the bottom of every sidebar name &#8220;Sidebar Bottom&#8221; it is entirely up to you.</p>
<p>With the before_widget and after_widget this is what will appear before and after the widget &#8211; this can be changed to any markup that you would like it could be sourrounded by a div or a span, it depends on how you want to style the widget.  For my example with categories this is internal navigation so would most likely be surrounded with the nav tag so as a rule would style within an unordered list.</p>
<p>With the before_title and after_title, yep you guessed it this is what is displayed before and after the title, in this example Categories, in many widget examples and themes you may see this as a H2 tag, because Categories or any other widget which I am likely to use within this sidebar is not a search term, that I am trying to optimize for the site, ie. I would not expect someone to search Categories within google or any other search engine and my site to appear, so I have generoulsy given this a  H4 tag, which I probably could get away with using a span tag styled as a block element.  That will be covered in a later post.</p>
<p>So you have created your New WordPress Widget Area and you have dragged the widget that you want to display into the widget area and you look at the frontend of your site and nothing has changed.   This is becuase we have only created the area to add your widgets to now we will add it into your theme.</p>
<div>
<p>Depending on what theme you have you will most likely have a sidebar.php open that up and add the following:</p>
<pre style="font-variant: normal !important; text-align: left !important; margin-top: 0px; margin-right: 0px; margin-bottom: 22px; margin-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: #000000; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f3f3f7; font-size: 12px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; font-weight: inherit; white-space: pre-wrap; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 1px; border-color: #dedee3; border-style: solid; padding: 11px;">&lt;ul id="sidebar"&gt;
&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('NAME OF WIDGETAREA') ) : ?&gt;

&lt;?php endif; ?&gt;
&lt;/ul&gt;</pre>
<p>And that is it, so if you wanted to create lots of diiferent widget areas for example one for you Blog page and one for you internal pages and one to show on both with your newsletter subscription widget in you would create as follows:</p>
<p>In the functions.php</p>
<pre style="font-variant: normal !important; text-align: left !important; margin-top: 0px; margin-right: 0px; margin-bottom: 22px; margin-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: #000000; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f3f3f7; font-size: 12px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; font-weight: inherit; white-space: pre-wrap; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 1px; border-color: #dedee3; border-style: solid; padding: 11px;">&lt;?php if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' =&gt; 'Blog page',
'before_widget' =&gt; '&lt;li&gt;',
'after_widget' =&gt; '&lt;/li&gt;',
'before_title' =&gt; '&lt;h4&gt;',
'after_title' =&gt; '&lt;/h4&gt;'),

register_sidebar(array(
'name' =&gt; 'Newsletter',
'before_widget' =&gt; '&lt;li&gt;',
'after_widget' =&gt; '&lt;/li&gt;',
'before_title' =&gt; '&lt;h4&gt;',
'after_title' =&gt; '&lt;/h4&gt;'),

register_sidebar(array(
'name' =&gt; 'Non Blog Pages',
'before_widget' =&gt; '&lt;li&gt;',
'after_widget' =&gt; '&lt;/li&gt;',
'before_title' =&gt; '&lt;h4&gt;',
'after_title' =&gt; '&lt;/h4&gt;',)
) ) );  ?&gt;</pre>
<p>For the sidebar.php</p>
<pre style="font-variant: normal !important; text-align: left !important; margin-top: 0px; margin-right: 0px; margin-bottom: 22px; margin-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: #000000; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f3f3f7; font-size: 12px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; font-weight: inherit; white-space: pre-wrap; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 1px; border-color: #dedee3; border-style: solid; padding: 11px;">&lt;ul id="sidebar"&gt;
&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Blog page') ) : ?&gt;
&lt;?php endif;?&gt;
&lt;?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('Newsletter') ):?&gt;
&lt;?php endif; ?&gt;
 &lt;/ul&gt;</pre>
<p>For the sidebar-page.php</p>
<pre style="font-variant: normal !important; text-align: left !important; margin-top: 0px; margin-right: 0px; margin-bottom: 22px; margin-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; color: #000000; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f3f3f7; font-size: 12px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; font-weight: inherit; white-space: pre-wrap; word-wrap: break-word; background-position: initial initial; background-repeat: initial initial; border-width: 1px; border-color: #dedee3; border-style: solid; padding: 11px;">&lt;ul id="sidebar"&gt;
&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Non Blog Pages') ) : ?&gt;
&lt;?php endif;?&gt;
&lt;?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('Newsletter') ):?&gt;
&lt;?php endif; ?&gt;
 &lt;/ul&gt;</pre>
<p>To create new sidebars or to show different content dependent on page come back and check my post on conditional statements.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.martiniboy.co.uk/wordpress-widgets/creating-a-new-sidebar-widget-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Martiniboy launches website</title>
		<link>http://www.martiniboy.co.uk/web-development-news/martiniboy-launches-website/</link>
		<comments>http://www.martiniboy.co.uk/web-development-news/martiniboy-launches-website/#comments</comments>
		<pubDate>Sun, 20 May 2012 19:29:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development News]]></category>

		<guid isPermaLink="false">http://www.martiniboy.co.uk/?p=23</guid>
		<description><![CDATA[I am pleased to announce the release of martiniboy.co.uk, although the design is not finalised and the site looks a little sticky plastered, I thought that I would make the site live and start writing and sort the design over the next few months. I will be using the site to showcase my WordPress plugins [...]]]></description>
				<content:encoded><![CDATA[<p>I am pleased to announce the release of martiniboy.co.uk, although the design is not finalised and the site looks a little sticky plastered, I thought that I would make the site live and start writing and sort the design over the next few months.</p>
<p>I will be using the site to showcase my WordPress plugins and share my journey of developing my skills and share any useful snippets that I use.</p>
<p>My passion is with WordPress, HTML, CSS and jQuery so these are the areas that I will concentrate on.  I am particularly interested in mobile development so I will be testing out a lot of different scenarios for different screen sizes.</p>
<p>Keep checking back for updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martiniboy.co.uk/web-development-news/martiniboy-launches-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
