<?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>PinkishHue.com</title>
	<atom:link href="http://pinkishhue.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pinkishhue.com</link>
	<description>Website development, design and other chatter</description>
	<lastBuildDate>Sun, 12 May 2013 20:46:37 +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>How to return the post ID in a WordPress shortcode</title>
		<link>http://pinkishhue.com/how-to-return-the-post-id-in-a-wordpress-shortcode/</link>
		<comments>http://pinkishhue.com/how-to-return-the-post-id-in-a-wordpress-shortcode/#comments</comments>
		<pubDate>Thu, 09 May 2013 16:14:08 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress plugin]]></category>
		<category><![CDATA[Wordpress shortcodes]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=403</guid>
		<description><![CDATA[This should be so simple and it was it once I found the solution! (duh) All I wanted to do is create a shortcode that will print (or echo or return &#8211; whatever you want to call it) the post &#8230; <a href="http://pinkishhue.com/how-to-return-the-post-id-in-a-wordpress-shortcode/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>This should be so simple and it was it once I found the solution! (duh)</p>
<p>All I wanted to do is <strong>create a shortcode that will print (or echo or return &#8211; whatever you want to call it) the post ID of the current post</strong>.</p>
<p>So I would type something like: [mypostid]
<p>and when the post was saved it would display just the post ID like: 1234</p>
<p>I tried using &#8216;the_ID&#8217; and &#8216;get_the_ID&#8217; and even $id, but none of those things worked.</p>
<p>I couldn&#8217;t find a straightforward answer to this question so I&#8217;m going to share the solution here. It&#8217;s really simple!</p>
<h2>How to display the post ID in a shortcode:</h2>
<p>You can put the code for this function in to the functions.php file of your theme, or <strong>preferably, add it to a plugin</strong> (details below). With a plugin you won&#8217;t lose the functionality of your shortcode if/when you change your WordPress theme.</p>
<p><em>*It&#8217;s a good idea to make a general Custom Functions plugin that is specific to your website and you can use it to house all these little extra functions that you will accumulate over time.</em></p>
<p><strong>Here&#8217;s the basic code for the post ID shortcode:</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//[thepostid]</span>
<span style="color: #000000; font-weight: bold;">function</span> thepostid_func<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$atts</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
         <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
         <span style="color: #b1b100;">return</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span>   
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'thepostid'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thepostid_func'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>And below is the code to <strong>make a plugin</strong> out of this function. You should add this code to a plain text file called something like &#8216;my-custom-functions-plugin.php&#8217;, then either upload it to &#8216;wp-content/plugins/my-custom-functions-plugin/&#8217; via FTP or, add the my-custom-functions-plugin.php file to a .zip file and upload it using the upload feature on the WordPress &#8216;Add New&#8217; plugin page.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: My Custom Functions
Plugin URI: http://yourwebsiteaddress.com
Description: A custom site functions plugin for yourwebsiteaddress.com
Version: 1.0
Author: Your Name Here
*/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//[thepostid]</span>
<span style="color: #000000; font-weight: bold;">function</span> thepostid_func<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$atts</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
         <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
         <span style="color: #b1b100;">return</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span>   
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'thepostid'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thepostid_func'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>So, once you&#8217;ve added the code to your theme or plugin, you can simply type [thepostid] in to any post or page and voila! &#8211; the post ID will be displayed.</p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/how-to-return-the-post-id-in-a-wordpress-shortcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All my posts give 404 errors!!! Scary error from WP Super Cache update</title>
		<link>http://pinkishhue.com/all-my-posts-give-404-errors-scary-error-from-wp-super-cache-update/</link>
		<comments>http://pinkishhue.com/all-my-posts-give-404-errors-scary-error-from-wp-super-cache-update/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 15:16:09 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=386</guid>
		<description><![CDATA[I just had a scary experience &#8211; I went to edit a post on a WordPress install, everything was fine in the admin panel but when I hit &#8216;preview&#8217; all I got was a 404 error! Whaaaaaat?! Thinking maybe it &#8230; <a href="http://pinkishhue.com/all-my-posts-give-404-errors-scary-error-from-wp-super-cache-update/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I just had a scary experience &#8211; I went to edit a post on a WordPress install, everything was fine in the admin panel but when I hit &#8216;preview&#8217; all I got was a 404 error! Whaaaaaat?!</p>
<p>Thinking maybe it was a one off server error I checked some other posts &#8211; they were all 404 too! Scary!</p>
<p>Assuming it might be caused by a plugin I had recently deactivated (I&#8217;ve been making an effort to clean up my plugin usage lately), I immediately went to the Plugins page and there I noticed a highlighted note about WP Super Cache being deactivated because I needed to save the settings. </p>
<p>I had recently updated WP Super Cache and I must have been in a hurry because I didn&#8217;t notice this note at the time. </p>
<p><strong>I re-configured the settings and activated WP Super Cache and thankfully &#8211; no more 404 errors!</strong></p>
<p>I think my posts were probably out of action for about a week so this could be very damaging to active blogs (luckily this was on one of my less active websites).  </p>
<p>If you&#8217;re seeing all of your posts getting 404 errors and you&#8217;ve recently updated or installed WP Super Cache, you could be seeing the same error &#8211; so go ahead and check your settings! </p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/all-my-posts-give-404-errors-scary-error-from-wp-super-cache-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress error &#8220;Unable to create directory uploads/2013/04. Is its parent directory writable by the server?&#8221;</title>
		<link>http://pinkishhue.com/wordpress-error-unable-to-create-directory-uploads201304-is-its-parent-directory-writable-by-the-server/</link>
		<comments>http://pinkishhue.com/wordpress-error-unable-to-create-directory-uploads201304-is-its-parent-directory-writable-by-the-server/#comments</comments>
		<pubDate>Mon, 01 Apr 2013 11:24:59 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=370</guid>
		<description><![CDATA[Today I was working on a WordPress site and received this error when I tried to upload an image: &#8220;Unable to create directory uploads/2013/04. Is its parent directory writable by the server?&#8221; I immediately went to my FTP program and &#8230; <a href="http://pinkishhue.com/wordpress-error-unable-to-create-directory-uploads201304-is-its-parent-directory-writable-by-the-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Today I was working on a WordPress site and received this error when I tried to upload an image:</p>
<p><strong>&#8220;Unable to create directory uploads/2013/04. Is its parent directory writable by the server?&#8221;</strong></p>
<p>I immediately went to my FTP program and changed the permissions on the uploads directory to &#8217;777&#8242; &#8211; this didn&#8217;t fix it.</p>
<p>So I started googling to see if this was a known error and how it could be fixed. Other people were having the error and it was suggested that people go (in the WordPress admin panel) to <strong>Settings > Media</strong> and change the setting so that files are not stored in date based folders.</p>
<p><strong>Doing this made me realise what the <strong>actual error</strong> was &#8211; I had changed hosting servers a few months previously so the file path was no longer right! I had forgottten about the change and expected WordPress to just keep working as normal.</strong></p>
<p>In the &#8216;Store uploads in this folder&#8217; section of the Media > Settings page I updated the setting to my new server path:</p>
<p>home/<span style="color:red">myaccount</span>/public_html/<span style="color:red">mynewpath</span>/wp-content/uploads</p>
<p>and all is well <img src='http://pinkishhue.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>(<strong>*Update:</strong> As of <strong>WordPress version 3.5</strong> there is no longer a &#8216;Store uploads in this folder&#8217; option in the admin panel. There is a handy plugin from &#8216;RVOLA&#8217; here that should do the trick: <a href="http://wordpress.org/extend/plugins/wp-original-media-path/">wp-original-media-path/</a> and some other suggestions in the comments below)</em></p>
<p>I thought I&#8217;d make a quick post about this here on my blog just in case it&#8217;s helpful to anyone else who has this problem. Hey we all forget things from time to time!</p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/wordpress-error-unable-to-create-directory-uploads201304-is-its-parent-directory-writable-by-the-server/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Dog Rescue website &#8211; Poundhounds</title>
		<link>http://pinkishhue.com/dog-rescue-website-poundhounds/</link>
		<comments>http://pinkishhue.com/dog-rescue-website-poundhounds/#comments</comments>
		<pubDate>Fri, 22 Mar 2013 17:33:14 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[animal rescue website]]></category>
		<category><![CDATA[dog rescue website]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=362</guid>
		<description><![CDATA[This website was created for a UK dog rescue who were in need of a brand new website where they could let people know about their organisation, advertise their dogs needing homes, post news and appeals and accept donations. This &#8230; <a href="http://pinkishhue.com/dog-rescue-website-poundhounds/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img src="http://pinkishhue.com/wp-content/uploads/screenie_med_poundhounds-1-300x238.png" alt="screenie_med_poundhounds-1" width="300" height="238" class="alignright size-medium wp-image-363" />This website was created for a UK dog rescue who were in need of a brand new website where they could let people know about their organisation, advertise their dogs needing homes, post news and appeals and accept donations.</p>
<div id="attachment_364" class="wp-caption alignleft" style="width: 310px"><img src="http://pinkishhue.com/wp-content/uploads/screenie_med_poundhounds-2-300x246.png" alt="Dogs for adoption" width="300" height="246" class="size-medium wp-image-364" /><p class="wp-caption-text">Dogs for adoption</p></div>This site was created back in 2009 and was in my early stages of creating websites for other people, so whilst there are aspects of the site that now look a bit dated &#8211; the layout of the main text content and lack of varying font sizes and images to really make the pages engaging &#8211; I think the general colour scheme and layout looks quite nice so I thought it&#8217;d be better to include it here in my portfolio than to have it be forgotten.</p>
<p>Although I have fond memories of working on this design, the main issue that bugs me about it now is the logo being on the right hand side of the page. This is a web rule I would be extremely hesitant to bend nowadays!</p>
<p>The site was created using <a href="http://opensolution.org/">Quick.CMS</a> software which allowed the animal rescue owner to easily update and manage all the content from the admin panel.</p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/dog-rescue-website-poundhounds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add another widget area to Twenty Twelve front page template in a child theme</title>
		<link>http://pinkishhue.com/add-another-widget-area-to-twenty-twelve-front-page-template-in-a-child-theme/</link>
		<comments>http://pinkishhue.com/add-another-widget-area-to-twenty-twelve-front-page-template-in-a-child-theme/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 11:02:21 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[sidebars]]></category>
		<category><![CDATA[twentytwelve]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=354</guid>
		<description><![CDATA[I&#8217;m having a lot of fun making child themes with Twenty Twelve now that I&#8217;ve gotten used it, however, there are some small changes I&#8217;ve made to multiple child themes now, and one of those is adding a third widget &#8230; <a href="http://pinkishhue.com/add-another-widget-area-to-twenty-twelve-front-page-template-in-a-child-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m having a lot of fun making <a href="http://codex.wordpress.org/Child_Themes">child themes</a> with Twenty Twelve now that I&#8217;ve gotten used it, however, there are some small changes I&#8217;ve made to multiple child themes now, and one of those is <strong>adding a third widget area to the Twenty Twelve front page (home page) template</strong>.</p>
<p>It&#8217;s incredibly simple to do and I&#8217;ve found for most of my recent projects it&#8217;s been much more helpful to have 3 columns of information on the home page instead of just the 2.</p>
<p>So without further ado, here&#8217;s&#8230;</p>
<h2>How to add another widget area to the Twenty Twelve front page template in a child theme</h2>
<p>You only need to add (or edit) 3 files to make this change, and they are:</p>
<p>functions.php<br />
sidebar-front.php<br />
style.css</p>
<p>First, we&#8217;ll add the following code to functions.php to register our new widget area (also known as a sidebar).</p>
<p>If you already have a functions.php file in your child theme you want to add this code anywhere between the opening <&#63;php and closing &#63;>. If you don&#8217;t already have an functions.php file in your child theme, create a new file and put the code below between an opening <&#63;php and closing &#63;> and upload it to your child theme directory.</p>
<p>*Change &#8216;my-child-theme&#8217; to your child theme directory name</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	register_sidebar<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Third Front Page Widget Area'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my-child-theme'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sidebar-front-third'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Appears when using the optional Front Page template with a page set as Static Front Page'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my-child-theme'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;aside id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/aside&gt;'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h3 class=&quot;widget-title&quot;&gt;'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h3&gt;'</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Next, we&#8217;ll add the code that displays your widget area on the front end of your site. Copy sidebar-front.php from the Twenty Twelve theme and add it to your child theme, then above this line:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;/div&gt;&lt;!-- #secondary --&gt;</pre></td></tr></table></div>

<p>add this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_active_sidebar<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'sidebar-front-third'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;div class=&quot;third front-widgets&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> dynamic_sidebar<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'sidebar-front-third'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt;&lt;!-- .third --&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Then upload your new sidebar-front.php to your child theme directory.</p>
<p>Now, we&#8217;ll add some code to the stylesheet to tell the theme how the widget area should look. In the default Twenty Twelve stylesheet we have one widget area to the left and one to the right, instead we want three in a row. </p>
<p>This code is added in the media-queries section so that it displays the three areas in a row on wide browsers but remains a single column when viewed on mobiles and other small devices (with this new third column being displayed underneath the original 2).</p>
<p><em>*Note about Internet Explorer and CSS media queries:<br />
All versions of Internet Explorer prior to version 9 <strong>DO NOT</strong> support media queries. To get around that you can use twenty twelve&#8217;s handy IE stylesheet, stored in css/ie.css &#8211; copy that folder and file to your child theme then add the CSS code below to that file, but without the first 2 lines and without the closing &#8216;}&#8217;<br />
</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Minimum width of 600 pixels. */</span>
<span style="color: #a1a100;">@media screen and (min-width: 600px) {	</span>
	<span style="color: #6666ff;">.template-front-page</span><span style="color: #6666ff;">.two-sidebars</span> <span style="color: #6666ff;">.widget-area</span> <span style="color: #6666ff;">.front-widgets</span><span style="color: #00AA00;">,</span> 
	<span style="color: #6666ff;">.template-front-page</span> <span style="color: #6666ff;">.widget-area</span> <span style="color: #6666ff;">.widget</span><span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>even<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
	<span style="color: #6666ff;">.template-front-page</span><span style="color: #6666ff;">.two-sidebars</span> <span style="color: #6666ff;">.widget-area</span> <span style="color: #6666ff;">.front-widgets</span> <span style="color: #00AA00;">+</span> <span style="color: #6666ff;">.front-widgets</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> !important<span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30.3%</span> !important<span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5%</span> !important<span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5%</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.template-front-page</span> <span style="color: #6666ff;">.widget-area</span> <span style="color: #6666ff;">.widget</span><span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>odd<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.template-front-page</span> <span style="color: #6666ff;">.widget-area</span> <span style="color: #6666ff;">.widget</span><span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;">&#40;</span>3n<span style="color: #00AA00;">+</span><span style="color: #cc66cc;">3</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>  
	<span style="color: #00AA00;">&#125;</span>	
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Now go to your widgets page in your admin panel and add some widgets to see how it looks. Have fun!</p>
<p>If you find any issues with the code or need any help do feel free to leave a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/add-another-widget-area-to-twenty-twelve-front-page-template-in-a-child-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mutiny Festival &#8211; MutinyFestival.com</title>
		<link>http://pinkishhue.com/mutiny-festival-mutinyfestival-com/</link>
		<comments>http://pinkishhue.com/mutiny-festival-mutinyfestival-com/#comments</comments>
		<pubDate>Wed, 27 Feb 2013 12:35:33 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[black and red website]]></category>
		<category><![CDATA[bridlington website]]></category>
		<category><![CDATA[festival website]]></category>
		<category><![CDATA[punk website]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=338</guid>
		<description><![CDATA[Mutiny Festival was a punk ‘one dayer’ festival that took place at The Spa in Bridlington, East Yorkshire in May 2009. I designed and developed the website, built on Quick.CMS software, and designed the promotional logo/flyers/posters etc. for the festival.]]></description>
				<content:encoded><![CDATA[<p>Mutiny Festival was a punk ‘one dayer’ festival that took place at The Spa in Bridlington, East Yorkshire in May 2009. </p>
<p>I designed and developed the website, built on <a href="http://opensolution.org/">Quick.CMS</a> software, and designed the promotional logo/flyers/posters etc. for the festival. </p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/mutiny-festival-mutinyfestival-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An alternative to TDO Mini Forms for WordPress?</title>
		<link>http://pinkishhue.com/an-alternative-to-tdo-mini-forms-for-wordpress/</link>
		<comments>http://pinkishhue.com/an-alternative-to-tdo-mini-forms-for-wordpress/#comments</comments>
		<pubDate>Sun, 26 Aug 2012 17:03:18 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[TDO Mini Forms]]></category>
		<category><![CDATA[Wordpress plugin]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=114</guid>
		<description><![CDATA[Updated May 2013 . For a while now I&#8217;ve been using the WordPress plugin TDO Mini Forms on a directory website to collect listings in the form of posts from unregistered users. It was working fine until about 6 months &#8230; <a href="http://pinkishhue.com/an-alternative-to-tdo-mini-forms-for-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><span><strong>Updated May 2013</strong></p>
<span class="symple-highlight symple-highlight-blue "><span style="font-size:140%;">(<a href="#workingsolution" style="text-decoration:underline">scroll down to see my working solution</a> with <strong>free download and instructions</strong>)</span></span>.</p>
<p>For a while now I&#8217;ve been using the WordPress plugin <a href="http://wordpress.org/tags/tdo-mini-forms">TDO Mini Forms</a> on a directory website to collect listings in the form of posts from unregistered users.</p>
<p>It <strong>was</strong> working fine until about 6 months ago when an exploit was discovered and my website (along with other TDO Mini Forms users) was hit by malicious uploads.</p>
<p>I was able to get around this by disabling image uploads from the TDO Mini Forms plugin and asking people to simply email the images to me if they&#8217;d like one included in their listing. It wasn&#8217;t a perfect solution but it worked temporarily.</p>
<p>Unfortunately I&#8217;ve recently had more problems with TDO Mini Forms &#8211; submissions simply aren&#8217;t coming through. I will receive a couple a week but I have been emailed by multiple people who&#8217;ve submitted listings via my site but have received no notifications (and neither did I), and no post appeared in my admin panel.</p>
<p>It&#8217;s such as shame as the plugin had so many great features, including:</p>
<ul>
<li>User submissions with no registration required</li>
<li>Email notifications to myself and the user submitting the post, both when they submitted it AND when it was published</li>
<li>The ability to include any number of custom fields on the form so I could add inputs for things like telephone numbers and lists of services AND the ability to have these display in the new post (without having to code the custom fields in to my template)</li>
<li>The ability to upload images via the form</li>
</ul>
<p>Whilst looking for an alternative to TDO Mini Forms I have regrettably found that my options are very limited! Most WordPress plugins that allow posting for unregistered users from the front end are either:</p>
<ul>
<li>too basic and don&#8217;t give all the options I need</li>
<li>too old and out of date to rely on</li>
<li>have too many bugs reported on the WordPress forums for me to want to try them</li>
</ul>
<p>So, I&#8217;m stumped!</p>
<p>Here&#8217;s some links to <strong>possible alternatives to TDO Mini Forms</strong> for anyone reading this:</p>
<ul>
<li><strong><a href="http://wordpress.org/extend/plugins/user-submitted-posts/">User Submitted Posts</a></strong> &#8211; wordpress.org/extend/plugins/user-submitted-posts/<em><br />
I have tested this on WordPress v3.4.1 and it seems to work great but unfortunately it doesn&#8217;t the ability to add custom fields to the form which is something I definitely need. There may also be a security issue as I believe it doesn&#8217;t include <a href="http://codex.wordpress.org/WordPress_Nonces">nonce</a></em></li>
<li><strong><a href="http://www.gravityforms.com/">Gravity Forms</a></strong> &#8211; http://www.gravityforms.com/<br />
<em>This is a premium plugin but it seems like the $39 low level version would be worth the money if that&#8217;s all you needed although you get a license for 1 year, beyond that you need to pay again for updates and support</em></li>
<li><strong><a href="http://wordpress.org/extend/plugins/post-from-site/">Post From Site</a></strong> &#8211; wordpress.org/extend/plugins/post-from-site/<br />
<em>I&#8217;ve tested this on WordPress v3.4.1 and it worked as it&#8217;s supposed to and seemed like you could incorporate custom taxonomies, but it didn&#8217;t let me choose multiple tags (no tags were added when I selected multiple) and it didn&#8217;t allow the poster to add their own tag which is something I need. Another one for the &#8216;no&#8217; pile unfortunately</em></li>
<li><strong><a href="http://wordpress.org/extend/plugins/wordpress-guest-post/">WordPress Guest Post</a></strong> &#8211; wordpress.org/extend/plugins/wordpress-guest-post/<br />
<em>This plugin had too many serious sounding bug reports in the support forum for my liking, but if you know a bit more about plugin editing you may be able to make something out of it</em></li>
<li><strong><a href="http://wordpress.org/extend/plugins/one-quick-post/">One Quick Post</a></strong> &#8211; wordpress.org/extend/plugins/one-quick-post/<br />
<em>This plugin is marked &#8216;broken&#8217; as of WordPress v3.4.1 so it should be avoided but it&#8217;s possible it will be fixed at a later date so I&#8217;ve included it in this list. I&#8217;m not sure whether it allows non-registered users to post</em></li>
</ul>
<p>I have considered paying for Gravity Forms. It provides the features I need in that unregistered users can submit a post via a form on the front end of WordPress BUT &#8211; the ability to incorporate Paypal so that users can pay for listings appears to only be available on the expensive (about $200) developers license so I&#8217;m not sure this would work in the long term as I would like to eventually make my directory a pay for listing type system.</p>
<p>I&#8217;m always reluctant to pay for plugins because often there&#8217;s a good free alternative and you never know how long the plugin is going to be supported. If I buy something now and 2 years (and multiple WordPress versions) down the line it doesn&#8217;t work &#8211; I have eaten in to my very slim or usually non-existent profit margin for nothing!</p>
<p>I&#8217;ve also considered using a specific <a href="http://wordpress.org/extend/plugins/search.php?q=directory">Directory WordPress plugin</a> and browsed through a lot of them BUT most don&#8217;t use regular WordPress posts to display the listings, they use a custom post type. I have my directory set up to use regular posts and the basic WordPress category and tag system so I&#8217;d rather stick with that than have to re-vamp everything.</p>
<p>I may try some sort of <a href="http://voodoopress.com/how-to-post-from-your-front-end-with-no-plugin/"><strong>hand coded solution</strong> to allow users to post from the front end</a> which would avoid the need to reply on plugins, but this would require users to create an account on the site which is another thing I was hoping to avoid.</p>
<span class="symple-highlight symple-highlight-blue ">(*Note &#8211; in the end I <strong>did</strong> come up with a hand coded solution and users <strong>don&#8217;t</strong> have to log in &#8211; see the code example further down the page)</span>.</p>
<p>I will continue my hunt for an alternative to TDO Mini Forms and report back here if I find anything useful <img src='http://pinkishhue.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<hr />
<p><strong>Update 27th September 2012</strong></p>
<p><span style="font-size: 3em;" id="workingsolution">It works!</span></p>
<p>After much tinkering and with huge, huge thanks to this <a href="http://voodoopress.com/review-of-posting-from-front-end-form/">&#8220;Posting from front end form&#8221; WordPress tutorial</a> and some very helpful posts at <a href="http://wordpress.stackexchange.com/">StackExchange&#8217;s WordPress community</a> &#8211; I managed to get a solution working.</p>
<p><span style="font-size:140%">This is <strong>a working alternative to TDO Mini forms</strong></span>, using a simple <a href="http://codex.wordpress.org/Page_Templates">custom page template</a> that you can put in to your theme and then assign to any page (or it should automatically assign it if you save the custom page template as page-mypagename.php, where &#8216;mypagename&#8217; is the name of the page where the form will be displayed)</p>
<p>It doesn&#8217;t include all the features that TDO Mini Forms had (see my note about future updates at the end of this post) but this form allows anyone (<strong>including guests/unregistered users</strong>) to <strong>submit a new post from the front end</strong> including:</p>
<ul>
<li>the post title</li>
<li>the post content</li>
<li>selecting a category (from existing categories)</li>
<li>adding tags</li>
<li>adding custom fields</li>
</ul>
<p><em>(*This solution also contains some code for uploading files but that feature doesn&#8217;t seem to work. I&#8217;ve left the code in but commented it out. You&#8217;re safe to remove those bits if you want to)</em></p>
<p><strong>There&#8217;s a downloadable custom page template available here &#8211; <a href="http://pinkishhue.com/?paiddownloads_id=2">Download listingsubmissionform.php</a></strong></p>
<p><strong>or you can just copy &amp; paste this code in to a new file:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #666666; font-style: italic;">/*
    Template Name: Listing Submission Form
    */</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Check if the form was submitted</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// Do some minor form validation to make sure there is content</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
                <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span>  <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> 
                <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Please enter a title'</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
                <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> <span style="color: #990000;">htmlentities</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">stripcslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Please enter the content'</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$nonce</span><span style="color: #339933;">=</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'_wpnonce'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> wp_verify_nonce<span style="color: #009900;">&#40;</span><span style="color: #000088;">$nonce</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'new-post'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Well that was naughty.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$tags</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_tags'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$customfieldone</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'customfieldone'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$customfieldtwo</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'customfieldtwo'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// You can add more custom fields by replicating the lines above and any other references to customfieldone and customfieldtwo, and changing them to your custom field values</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// Add the content of the form to $post as an array</span>
        <span style="color: #000088;">$type</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Type'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                <span style="color: #0000ff;">'post_title'</span>    <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$title</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'post_content'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$description</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'post_category'</span> <span style="color: #339933;">=&gt;</span>   <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cat'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>  <span style="color: #666666; font-style: italic;">// Usable for custom taxonomies too </span>
                <span style="color: #0000ff;">'post_status'</span>   <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'pending'</span><span style="color: #339933;">,</span>               <span style="color: #666666; font-style: italic;">// Choose: publish, preview, future, etc.</span>
                <span style="color: #0000ff;">'tags_input'</span>    <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'tax_input'</span>    <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'comment_status'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'closed'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'post_author'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'2'</span><span style="color: #339933;">,</span> 	<span style="color: #666666; font-style: italic;">// Set to 1 for the main admin account as author, provided that is user ID 1</span>
                <span style="color: #0000ff;">'customfieldone'</span>    <span style="color: #339933;">=&gt;</span>   <span style="color: #000088;">$customfieldone</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'customfieldtwo'</span>    <span style="color: #339933;">=&gt;</span>   <span style="color: #000088;">$customfieldtwo</span> 
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$post_id</span> <span style="color: #339933;">=</span> wp_insert_post<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        wp_set_post_terms<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span><span style="color: #339933;">,</span><span style="color: #000088;">$type</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Type'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'metatestcustomfieldone'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$customfieldone</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'metatestcustomfieldtwo'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$customfieldtwo</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        wp_redirect<span style="color: #009900;">&#40;</span> home_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/listing-submitted/'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// redirect to this page after submit</span>
        <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// This bit of code relates to image uploads and it's not working correctly so it's commented out for now</span>
<span style="color: #666666; font-style: italic;">//	if ($_FILES) {</span>
<span style="color: #666666; font-style: italic;">//		foreach ($_FILES as $file =&gt; $array) {</span>
<span style="color: #666666; font-style: italic;">//			$newupload = insert_attachment($file,$post_id);</span>
<span style="color: #666666; font-style: italic;">//			//$newupload returns the attachment id of the file that</span>
<span style="color: #666666; font-style: italic;">//			// was just uploaded. Do whatever you want with that now.</span>
<span style="color: #666666; font-style: italic;">//		}</span>
<span style="color: #666666; font-style: italic;">//	}</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
 <span style="color: #666666; font-style: italic;">// endIF</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
            &lt;div id=&quot;container&quot;&gt;
                &lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;
&nbsp;
		        &lt;h1 class=&quot;page-title&quot;&gt;Submit your listing&lt;/h1&gt;
&nbsp;
&lt;!--SUBMIT POST--&gt;
		        &lt;form id=&quot;new_post&quot; name=&quot;new_post&quot; class=&quot;post_work&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'new-post'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		                &lt;p&gt;&lt;label for=&quot;title&quot;&gt;Title&lt;/label&gt;&lt;br /&gt;
			                &lt;input type=&quot;text&quot; id=&quot;title&quot; class=&quot;required&quot; value=&quot;&quot; tabindex=&quot;1&quot; size=&quot;20&quot; name=&quot;title&quot; /&gt;
		                &lt;/p&gt;
		                &lt;p&gt;&lt;label for=&quot;description&quot;&gt;Description&lt;/label&gt;&lt;br /&gt;
			                &lt;textarea id=&quot;description&quot; type=&quot;text&quot; class=&quot;required&quot; tabindex=&quot;3&quot; name=&quot;description&quot; cols=&quot;50&quot; rows=&quot;6&quot;&gt;&lt;/textarea&gt;
		                &lt;/p&gt;
&nbsp;
		    		&lt;fieldset class=&quot;category&quot;&gt; 
			                &lt;label for=&quot;cat&quot;&gt;Category:&lt;/label&gt; 
			                <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_dropdown_categories<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'tab_index=10&amp;taxonomy=category&amp;hide_empty=0'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
				&lt;/fieldset&gt;
&nbsp;
&lt;!-- CustomFieldOne --&gt; 
				&lt;fieldset class=&quot;customfieldone&quot;&gt; 
					&lt;label for=&quot;customfieldone&quot;&gt;Custom Field One:&lt;/label&gt; 
			                &lt;input type=&quot;text&quot; value=&quot;&quot; id=&quot;customfieldone&quot; tabindex=&quot;20&quot; name=&quot;customfieldone&quot; /&gt; 
				&lt;/fieldset&gt;
&nbsp;
&lt;!-- CustomFieldTwo --&gt; 
				&lt;fieldset class=&quot;customfieldtwo&quot;&gt; 
					&lt;label for=&quot;customfieldtwo&quot;&gt;Custom Field Two:&lt;/label&gt; 
					&lt;input type=&quot;text&quot; value=&quot;&quot; id=&quot;customfieldtwo&quot; tabindex=&quot;20&quot; name=&quot;customfieldtwo&quot; /&gt; 
				&lt;/fieldset&gt; 
&nbsp;
&lt;!-- This bit of code relates to image uploads and it's not working correctly so it's commented out for now --&gt;
&lt;!--
				&lt;p&gt;&lt;label for=&quot;attachment&quot;&gt;Photos: &lt;/label&gt;
					&lt;input type=&quot;file&quot; id=&quot;attachment&quot;&gt;
					&lt;div id=&quot;attachment_list&quot;&gt;&lt;/div&gt;&lt;/p&gt;
--&gt;
&nbsp;
				&lt;p&gt;Tags: &lt;input type=&quot;text&quot; value=&quot;&quot; tabindex=&quot;35&quot; name=&quot;post_tags&quot; id=&quot;post_tags&quot; /&gt;&lt;/p&gt;
&nbsp;
&lt;!-- I'm not sure what domande means in the value below, but if I change it to post as you would assume it should be, the form doesn't work --&gt;
				&lt;input type=&quot;hidden&quot; name=&quot;post_type&quot; id=&quot;post_type&quot; value=&quot;domande&quot; /&gt;
				&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;post&quot; /&gt;
&nbsp;
				&lt;p style=&quot;text-align:right&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; tabindex=&quot;6&quot; id=&quot;submit&quot; name=&quot;submit&quot; /&gt;&lt;/p&gt;
&nbsp;
			&lt;/form&gt;
&nbsp;
&lt;!-- This bit of code relates to image uploads and it's not working correctly so it's commented out for now --&gt;
&lt;!--			&lt;script&gt;
			    var multi_selector = new MultiSelector( document.getElementById( 'attachment_list' ), 8 );
			    multi_selector.addElement( document.getElementById( 'attachment' ) );
			&lt;/script&gt;
--&gt;
&nbsp;
&lt;!--SUBMIT POST END--&gt;
&nbsp;
	        &lt;/div&gt;&lt;!-- .content --&gt;
	    &lt;/div&gt;&lt;!-- #container --&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Save the file linked above or copy the code in to a new file and upload it to your active WordPress theme folder, i.e. yourwebsite.com/wp-content/themes/YOUR-THEME/  You may also need to assign the custom page template to your page from the WordPress admin panel.</p>
<p><strong>About the page layout</strong></p>
<p>You will see from the code example above that the form is inside 2 div&#8217;s &#8211; &#8216;content&#8217; and &#8216;container&#8217; &#8211; you may need to change this to fit your theme. If in doubt, open some files from your theme (preferably something like page.php or single.php) in a text editor and see what code was used there. You should be able to figure out what to use in your form&#8217;s custom page template.</p>
<p><strong>Future updates</strong></p>
<p>I&#8217;d like to work on getting the file uploads working in the future and, more importantly for my needs &#8211; email notifications when a new post is submitted, preferably one to me as site admin, and one to the person submitting the post (with the email address stored via one of the custom fields in the form).</p>
<p>I will be looking in to this when I get time so stop by at a later date if this is something you need, or leave a comment below and perhaps we can work it out together.</p>
<p><strong>Ok, you&#8217;re done!</strong></p>
<p>I hope this has been of help to anyone out there panicking like I have been about TDO Mini Forms not working! It was a great plugin while it lasted but I don&#8217;t think it&#8217;s going to make a comeback.</p>
<p>This is a good alternative for TDO Mini Forms because it&#8217;s <strong>built in to your theme</strong> instead of using a plugin, so you don&#8217;t have to worry about plugins becoming outdated and not being maintained like TDO Mini Forms did.</p>
<p>Good luck with it! Give me a shout in the comments if this was helpful to you or if you have problems with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/an-alternative-to-tdo-mini-forms-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Volunteering With Animals &#8211; informational site about animal rescue volunteering</title>
		<link>http://pinkishhue.com/volunteering-with-animals-informational-site-about-animal-rescue-volunteering/</link>
		<comments>http://pinkishhue.com/volunteering-with-animals-informational-site-about-animal-rescue-volunteering/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 12:07:17 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Charity/Non-profit]]></category>
		<category><![CDATA[Web Design Projects]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=76</guid>
		<description><![CDATA[Another charity website, oh how I love to do charity projects! This one is all about volunteering with animals and it&#8217;s a &#8216;stepping-stone&#8217; site which will hopefully help to raise the profile of the target organisation &#8211; Rescue Helpers Unite. &#8230; <a href="http://pinkishhue.com/volunteering-with-animals-informational-site-about-animal-rescue-volunteering/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img src="http://pinkishhue.com/wp-content/uploads/screenie_sml_volunteeringwithanimals_1.jpg" alt="" title="screenie_sml_volunteeringwithanimals_1" width="450" height="272" class="alignright size-full wp-image-77" /><strong>Another charity website, oh how I love to do charity projects!</strong> <img src='http://pinkishhue.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This one is all about volunteering with animals and it&#8217;s a &#8216;stepping-stone&#8217; site which will hopefully help to raise the profile of the target organisation &#8211; <a href="http://rescuehelpersunite.co.uk/">Rescue Helpers Unite</a>.</p>
<h2>Blogging &#038; Search Engines</h2>
<p>By posting regularly at the <a href="http://VolunteeringWithAnimals.co.uk">VolunteeringWithAnimals.co.uk</a> blog, I hope we can ensure that we appear on the first page in google for our desired keywords and terms. It&#8217;s a tough market as there are a lot of sites out there about volunteering with animals. </p>
<p><strong>But it&#8217;s not all about search engine rankings</strong> &#8211; I also hope to make the site a valuable resource for anyone interested in volunteering, where they can find out more about animal transporting, animal fostering, homechecking, fundraising etc. Most of the pages include a comment area where people can ask questions and give us feedback too. </p>
<h2>A picture is worth a thousand words</h2>
<p>Most of the images (or perhaps all of the images now that I think about it) used on the site are <strong>genuine volunteers photo&#8217;s</strong> that have been submitted by them for use in promo materials. There are some great photo&#8217;s that I hope will really be of help in getting people interested in the subject &#8211; much more so than stock photo&#8217;s which, whilst being an invaluable resource, can sometimes give off an air of &#8216;phoney-ness&#8217; (that may be a made up word).</p>
<p>Price was also an issue when it comes to photo&#8217;s. For pro-bono charity projects, it&#8217;s much better to be able to use good quality, genuine and FREE photo&#8217;s of volunteers, rather than some boring stock photo.</p>
<h2>Design &#8211; less is more</h2>
<p>The design for <strong><a href="http://VolunteeringWithAnimals.co.uk">Volunteering With Animals</a></strong> is simple and easy to navigate, and includes some of the colours from the &#8216;Rescue Helpers Unite&#8217; palette, complementing but not completely emulating the colours used on the main website/forum.</p>
<p>The basic design on this site isn&#8217;t anything that&#8217;s going to blow people&#8217;s socks off, but that wasn&#8217;t the intention. The focus is on the content with this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/volunteering-with-animals-informational-site-about-animal-rescue-volunteering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Websites for charity &#8211; a new project giving free web advice to charities and non-profit orgs</title>
		<link>http://pinkishhue.com/websites-for-charity-a-new-project-giving-free-web-advice-to-charities-and-non-profit-orgs/</link>
		<comments>http://pinkishhue.com/websites-for-charity-a-new-project-giving-free-web-advice-to-charities-and-non-profit-orgs/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 13:34:54 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Charity/Non-profit]]></category>
		<category><![CDATA[Web Design Projects]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=29</guid>
		<description><![CDATA[So I&#8217;ve finally got a dedicated website for my free charity website advice, helping charities and non-profit organisations get more out of the web. The site will include posts about charity website designs, website hosting, domain names, free email newsletters, &#8230; <a href="http://pinkishhue.com/websites-for-charity-a-new-project-giving-free-web-advice-to-charities-and-non-profit-orgs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-33" title="screenie_sml_websitesforcharity1" src="http://pinkishhue.com/wp-content/uploads/screenie_sml_websitesforcharity1.jpg" alt="" width="450" height="385" style="border:1px solid #999;" />So I&#8217;ve finally got a dedicated website for my <a href="http://websitesforcharity.co.uk/">free charity website advice</a>, helping charities and non-profit organisations get more out of the web.</p>
<p>The site will include posts about <a href="http://websitesforcharity.co.uk/">charity website designs, website hosting, domain names, free email newsletters, free forums, social networking for charities, free photo galleries and videos</a>, plus lots of other bits and bobs.</p>
<p>After working on lots of charity website projects over the last few years I&#8217;ve come across loads of really useful, free or low cost tools and ideas, and I wanted to be able to share my experiences and suggestions with as many charities as possible.</p>
<p>Often I see organisations paying more than they need to for cost-effective websites and hosting etc. and by keeping these costs low, charities can use more of their hard-earned fundraising income for the purpose of their charity.</p>
<p><a href="http://websitesforcharity.co.uk">Websites For Charity</a> is still in the early phases but over the coming months I&#8217;ll be adding more content and I hope that over time the site will grow in to a valuable resource with a wide range of topics covered.</p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/websites-for-charity-a-new-project-giving-free-web-advice-to-charities-and-non-profit-orgs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Currently working on animal rescue charity website&#8230;</title>
		<link>http://pinkishhue.com/currently-working-on-animal-rescue-charity-website/</link>
		<comments>http://pinkishhue.com/currently-working-on-animal-rescue-charity-website/#comments</comments>
		<pubDate>Mon, 09 May 2011 13:50:59 +0000</pubDate>
		<dc:creator>Jo (pinkishhue.com)</dc:creator>
				<category><![CDATA[Charity/Non-profit]]></category>
		<category><![CDATA[Web Design Projects]]></category>

		<guid isPermaLink="false">http://pinkishhue.com/?p=20</guid>
		<description><![CDATA[I originally worked on a website for the Friends of Akitas Trust, a UK registered charity working to help &#38; rehome Akitas, back in 2008. It was in fact my very first Pro Bono charity / non-profit / animal rescue &#8230; <a href="http://pinkishhue.com/currently-working-on-animal-rescue-charity-website/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I originally worked on a website for the <a title="Friends of Akitas Trust, rescue and rehoming of Akitas" href="http://friendsofakitas.co.uk">Friends of Akitas Trust</a>, a UK registered charity working to help &amp; rehome Akitas, back in 2008. It was in fact my very first Pro Bono charity / non-profit / animal rescue web design project.</p>
<p>I was given a basic brief and some screengrabs of other sites they liked the look of and off I went. I thoroughly enjoyed working on the site and I think the finished design came out quite close to how they were hoping it would  (well it&#8217;s 3 years on and they&#8217;re still using it so hopefully that&#8217;s a good sign!).</p>
<p>It was a site built on a basic CMS (<a title="Basic CMS, no MYSQL database" href="http://opensolution.org">quick.cms</a>) with a minimal design with lots of whitespace, focusing the users attention on the content. I think it adequately fit with and portrayed their &#8216;brand&#8217; to the public.</p>
<p>So, following on from that project 3 years ago, earlier this year the Friends of Akitas Trust contacted me again to see if I&#8217;d be interested in working on an updated version of their site, something more modern and with more features.</p>
<p>Of course I jumped at the chance. I&#8217;ve volunteered for the Trust previously by transporting Akitas to their foster homes on a few occassions, so I know they are a great rescue and that makes working on their web design projects even more enjoyable to me, because I know I can produce something that will be of benefit to them and ultimately the dogs they are caring for, plus I get to incorporate images and info on dogs in to the site. As a huge dog lover myself this combines my passions &#8211; animals and web design &#8211; so I really enjoy my work.</p>
<p>The idea for the new site was again to keep the design minimal (white background) and make use of their signature colour, a striking red from their logo.</p>
<p>The site is now close to complete, built on WordPress which I consider to be the best choice for most sites due to it&#8217;s versatility and ease of use, but especially for charity sites who can really benefit from the &#8216;free&#8217; price tag.</p>
<p>After the site is up and running online I will get some screengrabs posted here for all to see (together with some more items from my portfolio which is noticeably lacking on this site), but I won&#8217;t show off until it&#8217;s &#8216;live&#8217; as I wouldn&#8217;t want to spoil the suprise <img src='http://pinkishhue.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Got an animal rescue or charity web design project you&#8217;d like me to work on? Feel free to leave me a comment or contact me. Thanks!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://pinkishhue.com/currently-working-on-animal-rescue-charity-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
