<?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>416 Studios &#187; Wordpress</title>
	<atom:link href="http://www.416studios.co.uk/journal/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.416studios.co.uk/journal</link>
	<description>Web design Articles, Tips and Musings</description>
	<lastBuildDate>Thu, 12 Jan 2012 12:12:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPress how to: Change post dates</title>
		<link>http://www.416studios.co.uk/journal/2011/wordpress-how-to-change-post-date</link>
		<comments>http://www.416studios.co.uk/journal/2011/wordpress-how-to-change-post-date#comments</comments>
		<pubDate>Wed, 12 Jan 2011 12:59:14 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.416studios.co.uk/journal/?p=216</guid>
		<description><![CDATA[Whether you need to schedule a post for future publishing, or backdate a post. Wordpress provides the tools to manipulate the date of your posts.]]></description>
			<content:encoded><![CDATA[<p>Sometimes we can miss the most trivial of things, and even though changing the date stamp of a WordPress post is fairly straightforward, this was a problem that someone actually faced and to that person the solution was not so obvious.</p>
<p>You see having written several articles over the years, a client wanted to upload some to his new wordpress site. However he found that once he published those articles they would take on the current date, when what he wanted was the date those articles were originally written.</p>
<p>So how do we get wordpress to show the dates he wants and not the date it was actually posted on?</p>
<p>That&#8217;s where the post publish box comes in to play.</p>
<p><img class="aligncenter size-full wp-image-221" title="publish-box" src="http://www.416studios.co.uk/journal/wp-content/uploads/2011/02/publish-box.png" alt="" width="280" height="194" /></p>
<p>The buttons in the post publish box are self explanatory, however it&#8217;s pretty easy for new wordpress users to miss the <strong>edit</strong> links next to Status, Visibility and Publish. Even if they do see the link it is not immediately obvious what those links actually do.</p>
<p><img class="aligncenter size-full wp-image-225" title="publish-dates" src="http://www.416studios.co.uk/journal/wp-content/uploads/2011/02/publish-dates.png" alt="" width="280" height="259" /></p>
<p>For the purposes of this post we are interested in editing the publish date. Clicking on the edit link next to the <strong>Publish immediately </strong>text will bring up date fields which we can change to reflect the post date we want show on the blog, providing that the blog is set up to show post dates. This also allows you to schedule posts for future publication.</p>
<p>As with most things wordpress is pretty well thought out, and changing the date on your post is as simple as you would think.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.416studios.co.uk/journal/2011/wordpress-how-to-change-post-date/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use the javascript libraries included with WordPress.</title>
		<link>http://www.416studios.co.uk/journal/2009/how-to-use-the-javascript-libraries-included-with-wordpress</link>
		<comments>http://www.416studios.co.uk/journal/2009/how-to-use-the-javascript-libraries-included-with-wordpress#comments</comments>
		<pubDate>Mon, 07 Dec 2009 20:29:06 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[wordpress functions]]></category>

		<guid isPermaLink="false">http://www.416studios.co.uk/journal/?p=106</guid>
		<description><![CDATA[There is a better safer way to include you javascript files in your wordpress themes. Using the <code>wp_enqueue()</code> function will prevent problems and script clashes, you can even use it to automatically load your scripts at the bottom of your page.]]></description>
			<content:encoded><![CDATA[<p>In order to use the wonderful jQuery library with your wordpress installation you could simply grab a copy put it on your server and link to it. However this could lead to trouble, when plugins need to use the jQuery library they will try to load it as well causing script collisions.</p>
<p>A better way or as the wordpress codec says a safer way to use the jQuery libraries or any of the included scripts is to use <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script"><code>wp_register_script</code></a> or <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script"><code>wp_enqueue_script</code></a>.</p>
<p><a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Default_scripts_included_with_WordPress">WordPress comes loaded with several libraries and scripts</a> for your enjoyment, including:</p>
<ul>
<li>Scriptalicious</li>
<li>jQuery</li>
<li>Prototype</li>
<li>Thickbox</li>
<li>jQuery UI</li>
</ul>
<p>The easiest way to load the jQuery library for would be to add the following code before the <code>wp_head()</code> function,</p>
<p><code>wp_enqueue_script('jquery');</code></p>
<p>It&#8217;s important to note that the wordpress loads the internal version of the jQuery library in <a href="http://docs.jquery.com/Using_jQuery_with_Other_Libraries">&#8220;no-conflict&#8221;</a> mode which means the “$” shortcut will not work. You could use “jQuery” instead of “$”, however if you really want to use that dollar sign then in your jQuery scripts use the following code. </p>
<p><code>jQuery(document).ready(function($) {<br />
// do jQuery stuff using $<br />
});</code></p>
<p>You can also specify the source of the script if it is not included with wordpress and load dependencies using <code>wp_enqueue_script</code>, the path to the script should be relative to the root directory of wordpress. The following example loads <code>candy.js</code> which depends on “scriptalicious” and “scriptalicious-slider”.</p>
<p><code> wp_enqueue_script('candy', WP_CONTENT_URL. '/themes/name-of-theme/js/candy.js', array('scriptalicious, scriptalicious-slider'), false, true);</code></p>
<p>The first paramenter is the script name, the second is the path to the script, the third parameter <code>array()</code> will load the files that <code>candy.js</code> needs. The names in this array are not the filenames but rather the <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Default_scripts_included_with_WordPress">handles</a>, these will be loaded before <code>candy.js</code></p>
<p>After the dependencies parameter comes the version option, it&#8217;s a string specifying the version number of the script used if there are more than one version of the script.</p>
<p>The last parameter is the <code>wp_enqueue()</code> function is an option to load your script wherever the <code>wp_footer()</code> hook is located, it should be in the, uh —footer. </p>
<p>If this post helps you better understand the wp_enqueue function, let me know in the comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.416studios.co.uk/journal/2009/how-to-use-the-javascript-libraries-included-with-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

