<?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>Custom Wordpress and CMS design based in the North East of England &#187; Tutorials</title>
	<atom:link href="http://balticblogdesign.com/category/tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://balticblogdesign.com</link>
	<description>Wordpress and CMS Customisation</description>
	<lastBuildDate>Thu, 15 Dec 2011 16:48:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress Code: Expire Posts to Archive using Custom Fields</title>
		<link>http://balticblogdesign.com/wordpress-code-expire-posts-to-archive-using-custom-fields</link>
		<comments>http://balticblogdesign.com/wordpress-code-expire-posts-to-archive-using-custom-fields#comments</comments>
		<pubDate>Sun, 28 Jun 2009 13:26:47 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://balticblogdesign.com/?p=59</guid>
		<description><![CDATA[<img src="http://balticblogdesign.com/wp-content/uploads/icons/tuts_h2.gif" width="166" height="21" alt="" title="Tutorials" /><br/>Recently a client requested that they wanted to put an expiry date on a blog post, so the post would be removed from the index [...]]]></description>
			<content:encoded><![CDATA[<img src="http://balticblogdesign.com/wp-content/uploads/icons/tuts_h2.gif" width="166" height="21" alt="tuts h2 Wordpress Code: Expire Posts to Archive using Custom Fields" title="Tutorials" /><br/><p>Recently a client requested that they wanted to put an expiry date on a blog post, so the post would be removed from the index and category pages after the offer expired. For SEO purposes, the post would still exist at it&#8217;s original URL and be able to be accessed through an archives page.</p>
<p>It&#8217;s a really good idea, as many affiliates offering discount codes and offers would find this added function very useful.</p>
<p>A few plugins exists that will &#8220;expire&#8221; a post, but unfortunately they either delete the post, or move it to a draught version that can only be seen in Wordpres admin. This is bad for SEO. Old links expired or not, can still bring in traffic to a website and if a customer missed the offer the first time, they still know they should bookmark the site for the next time around.</p>
<p><a href="http://snipplr.com/view/3899/wordpress-post-expiration-code/" target="_blank">SNIPPLR</a> have written a modified version of the WordPress Loop which will remove posts after a date that can be specified in the Custom Fields section of the WP text editor. The code compares an expiry date given with the date from the host server and if the date has passed, the wordpress loop will omit that post from being shown.</p>
<p>The code doesn&#8217;t show the posts in the archives however and only expires posts by date when our client needed a to expire a post at a specific time. We modified SNIPPLR&#8217;s code so it would do both and also added the ability to adjust the server time, which is handy if your website is hosted in a different timezone to the one you need to use.</p>
<p>All you need to do when writing the post, is enter a custom field with the key &#8220;expiration&#8221; and set the value in the format: &#8220;2010/01/01 18:20:00&#8243; &#8211; this would expire the post at 6.20pm on the 1st January 2010.</p>
<p></p><p></p><div class='code' style='border: 1px dotted; overflow: auto; white-space:nowrap;'>***PUT THIS INSIDE THE LOOP, FIRST THING***<br />
<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span>&nbsp; <span style="color: #808080; font-style: italic;">//to check against expiration date; </span><br />
<span style="color: #0000ff;">$timestamp</span> = <a href="http://www.php.net/strtotime"><span style="color: #000066;">strtotime</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;now + 8 hours&quot;</span><span style="color: #66cc66;">&#41;</span>;&nbsp; <br />
<span style="color: #0000ff;">$currentdate</span> = <a href="http://www.php.net/date"><span style="color: #000066;">date</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'YmdHis'</span>, <span style="color: #0000ff;">$timestamp</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0000ff;">$expirationdate</span> = get_post_custom_values<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'expiration'</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_null"><span style="color: #000066;">is_null</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$expirationdate</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$expirestring</span> = <span style="color: #ff0000;">'30005050235959'</span>; <span style="color: #808080; font-style: italic;">//MAKE UN-EXPIRING POSTS ALWAYS SHOW UP;</span><br />
<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span> <br />
&nbsp; <br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #000066;">is_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$expirationdate</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$expirestringarray</span> = <a href="http://www.php.net/implode"><span style="color: #000066;">implode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$expirationdate</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #0000ff;">$markup</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/&quot;</span>,<span style="color: #ff0000;">&quot;:&quot;</span>,<span style="color: #ff0000;">&quot; &quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0000ff;">$expirestring</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$markup</span>,<span style="color: #ff0000;">&quot;&quot;</span>,<span style="color: #0000ff;">$expirestringarray</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span> <span style="color: #808080; font-style: italic;">//else </span><br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$expirestring</span> &gt; <span style="color: #0000ff;">$currentdate</span> <span style="color: #66cc66;">&#41;</span> || <span style="color: #66cc66;">&#40;</span>is_archive<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
<br />
***THEN PUT THE FOLLOWING LINE AT THE VERY <a href="http://www.php.net/end"><span style="color: #000066;">END</span></a> OF THE LOOP*** <br />
<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #66cc66;">&#125;</span> <span style="color: #808080; font-style: italic;">//end if for expiration; ?&gt; </span></div><p></p>
]]></content:encoded>
			<wfw:commentRss>http://balticblogdesign.com/wordpress-code-expire-posts-to-archive-using-custom-fields/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Search Engine Optimisation Basics</title>
		<link>http://balticblogdesign.com/search-engine-optimisation-basics</link>
		<comments>http://balticblogdesign.com/search-engine-optimisation-basics#comments</comments>
		<pubDate>Mon, 14 Apr 2008 19:29:57 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://balticblogdesign.com/search-engine-optimisation-basics</guid>
		<description><![CDATA[<img src="http://balticblogdesign.com/wp-content/uploads/icons/tuts_h2.gif" width="166" height="21" alt="" title="Tutorials" /><br/>A lot of our work at Baltic Blog Design has been for very successful affiliates, and we think its worth sharing some tips and good [...]]]></description>
			<content:encoded><![CDATA[<img src="http://balticblogdesign.com/wp-content/uploads/icons/tuts_h2.gif" width="166" height="21" alt="tuts h2 Search Engine Optimisation Basics" title="Tutorials" /><br/><p>A lot of our work at Baltic Blog Design has been for very successful affiliates, and we think its worth sharing some tips and good SEO methodology that we’ve learnt or picked up along our merry way.</p>
<p>Search Engine Optimisation, that was first left to hard working affiliates to figure out has now becoming a key part of any company that has a significant online presence. The trouble is however, while affiliates and SEO guru’s are clear on the difference of Black Hat (Bad) and White Hat SEO, a director of a small to medium enterprise will only want results in web traffic. Often this leads to companies grabbing hold of old hearsay and web myths <a target="_blank" href="http://www.bytestart.co.uk/content/promotion/7_7/bmw-banned-by-google-for-.shtml">along with Black Hat SEO</a> in an attempt to beat their rivals to the top of search engine lists, which could be dangerous for their website.</p>
<p>We understand many affiliates will know SEO very well, but it make’s sense that we explain the basics to our customers starting out on the web with their blogs.</p>
<p><strong>SEO 101</strong></p>
<p>There are many Search Engines on the web, but only a small select few themselves control the majority of traffic. It then stands to reason why most SEO techniques have been focused on major players in the search engine business such as Google, Yahoo and MSN. In this brief article we will be focusing on Google which is generally considered to be the most popular search engine used in the UK.</p>
<p>Google’s algorithms and search criteria are on a large part, unknown to the public, but through SEO it’s possible to use what information has been made public alongside testing and <a href="http://www.validrank.com">analysis </a>to work out what will work best to gain a higher page rank and increase web traffic to a site.</p>
<p>For instance, we know that for competing websites Google’s software can analyse the content of a web page and makes decisions on the page’s relevance compared to its domain name, metadata and other competing websites. It counts web pages linking to your site (<strong>backlinks</strong> &#8211; often known as <a href="http://www.link-juice.co.uk/2007/12/what-is-link-juice.html">linkjuice</a>) and takes into consideration each websites own page rank:</p>
<p>A website (A) with links from many other reputable websites will score highly in a search compared to a site (B) with links from many lesser ranked domains, but a site with few links (C) will score the lowest. It’s worth noting however, if a website’s content is completely unique, or contains unique keywords – it will be listed first for those keywords as long as Google has indexed the site.</p>
<p>Google works this way to favour websites with original content that offer genuine products and services or deliver valuable information. In turn their software attempts to filter through and block websites created solely for underhand marketing techniques such as link farming and spam, but it must be constantly updated to keep up with the latest tricks and hacks.</p>
<p><strong>Black Hat SEO</strong></p>
<p>Unfortunately search engines cannot fully comprehend a web page as we humans do and it’s still possible to exploit flaws and loopholes in the current system. While this may at first achieve amazing results in driving traffic to a site, Google, among other search engine providers, have become increasingly aware of this and the site will likely end up being blocked from ever appearing on their pages again.</p>
<p>Black Hat SEO is generally bad for the web too. Originating from the pornography (<a href="http://en.wikipedia.org/wiki/Link_farm">link farms</a>) and spam industry, web pages full of nonsense clutter up the web. They have been generated to create backlinks to boost a domains pagerank while fooling search engines into thinking they are legitimate pages, they are often known as <a href="http://en.wikipedia.org/wiki/Spam_blog">Splogs</a>.<br />
Large corporations have in the past have fallen off the top listing when a search is carried out specifically for them, due to overenthusiastic affiliates keyword stuffing, and bidding on the companies own brand name.</p>
<p>While a nuisance to a web surfer, and somewhat a clutter in cyberspace, Black Hat SEO techniques are actually most dangerous to the websites and domains using them. If a website’s purpose is to grab money and run, when the site is inevitably blocked it will have served its purpose. Any company wishing to keep their business online and on their chosen domain name will do well to steer clear of any blatant Black Hat techniques, as any increase in traffic will probably not be worth the risk of being shut out from the major search engines.</p>
<p><strong>Good SEO</strong></p>
<p>Good SEO is about following search engine requirements, using common sense and using <a target="_blank" href="http://www.google.co.uk/webmasters/#utm_medium=et&amp;utm_source=bizsols&amp;utm_campaign=sitemaps">analytical tools</a> to increase readability by, and relevance to searchbots, browsers and people alike.</p>
<p>Search bots and spiders need to be able to read pure content, they cannot see flash animations or images and do not like to find lot’s of code between coherent sentences as they are not great at understanding our language in the first place. This is one reason web designers use CSS, as it separates design from content.</p>
<p>When building a website there are many standards to comply with that offer usability to the public and often allow accessibility to the blind and disabled. These standards in turn are used by search bots to make sense of the site – header tags are taken notice of for keywords, and alt tags provide information explaining the image.</p>
<p>Browsers need <a target="_blank" href="http://www.w3.org/">web compliant</a> code to display web pages, and bad web code will prevent a website displaying correctly. This alone could prevent a website appearing on a search engine, but more than likely if people cannot see a webpage correctly in their browser, they will not link back to the site, or visit the site again.</p>
<p>Customers surfing the web want clarity: marketing mumbo jumbo, sales patois, flashy animations or intro pages will almost always serve to annoy them. Product descriptions should be as clear and concise as possible.</p>
<p>Blogs are not new, but more and more they are being recognised as a very good way to get noticed by search engines and promoting a company’s website. We have mentioned many of the benefits of blogs on our “how we work” page; the key advantage though, is the ease of updating content on a website combined with the ease of setting up an RSS feed to syndicate your content so users can subscribe to it, and other sites can link back to it.</p>
<p>Link exchanges with relevant websites, or website directories have always made up an important part of SEO. Get in the news! Create publicity stunts! Simply getting a link from a highly popular website will work wonders for web traffic. Use <a target="_blank" href="http://digg.com/">Digg</a> and other sociable web tools such as <a target="_blank" href="http://www.addthis.com/">add this</a>. Building up links can be an arduous task but if a site offers meaningful, unique or competitive content, links to the site will grow organically.</p>
<p>Failing that; employing someone to submit a site to hundreds of web directories is a valid option if you can afford it. This is not the same as building link farms: acquire a database of web directories to submit to and instruct someone to add your site to them. If someone contacts you promoting the service, especially if they have fantastic claims of success, they will probably be charging money for nothing or utilising Black Hat SEO techniques that could put your domain in jeopardy.</p>
<p>This is just a brief outline on SEO, there are already books, plenty of <a target="_blank" href="http://www.highrankings.com/forum/">forums</a> and blogs on the subject. There are many old pieces of information that are no longer relevant and myths that we have seen companies and affiliates cling onto. A large proportion of SEO when sold to the layperson will be snakoil too, so it’s definitely worth reading up on. In the future we will be posting a few issues in SEO that we’ve came across working for our online clients, so watch this space!</p>
]]></content:encoded>
			<wfw:commentRss>http://balticblogdesign.com/search-engine-optimisation-basics/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

