<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Anthology of Ideas &#187; tips and tricks</title>
	<atom:link href="http://anthologyoi.com/tag/tips-and-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://anthologyoi.com</link>
	<description>Anthology of Ideas is an archive of thoughts and form.</description>
	<lastBuildDate>Sat, 03 Mar 2012 11:16:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The most important writing tool I own: a notebook.</title>
		<link>http://anthologyoi.com/blogish/asides/best-blogging-tool.html</link>
		<comments>http://anthologyoi.com/blogish/asides/best-blogging-tool.html#comments</comments>
		<pubDate>Sun, 24 Feb 2008 11:08:48 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[bloggers]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[moleskin]]></category>
		<category><![CDATA[notebook]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://anthologyoi.com/blogish/asides/best-blogging-tool.html</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Bloggers by definition are writers. They may not write stories, but they write enough to fill many books. It doesn&#8217;t matter whether you blog about yourself or random and esoteric topics that only matter to you (cough: guilty). You are still a writer. If you write about yourself, you are writing an autobiography. If you write about current events, you are a journalist. If you write anything at all, you are a columnist, a historian, a science writer, or whatever title you want. You may not get paid a lot, but you are still a writer &#8212; most writers out there just gasped and said, &#8220;Yah right, like I do?&#8221; If you still don&#8217;t believe me, I am the self-appointed authority and I hereby declare you a writer, so don&#8217;t argue the point.</p>
<p>As a writer, the thoughts and ideas that flit around your head are the most important things you own. Random thoughts become great works of art &#8230; or posts, and with your skill the most esoteric and specialist topic can bring knowledge to the masses. For every thought you have, there is a blog post or story to go with it. Sure you may not write a post about how it would be cool to play shuffle puck with superconductors, but it could be &#8212; and it would be such a good idea, and whoever invents it needs to invite me over to play. The worst enemy to a writer is not not having ideas, but losing them &#8212; you can always get more ideas, but there is no recycle bin in the sky where lost ideas go.</p>
<p>As a self-proclaimed writer and programmer, I always need new ideas, and as someone who has an insatiable need to know, my curiosity piques itself on the most esoteric of topics, but for years these ideas and desires would come, but they would be pushed aside if I had something more important to do; thus, countless golden ideas vaporized into the abyss as my mind moved from each &#8220;ooh shiny&#8221; thought to another. But I&#8217;m a writer, and my ideas are the most important part of me.</p>
<p>It was a losing battle for me. The evil empire of forgetfulness and sloth frequently defeated the kingdom of the idea in battle, but I decided to fight unfairly: I started carrying a notebook &#8212; specifically <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2FB00069DKVG%2F&#038;tag=anthologyofid-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=9325">a moleskin one</a> (caution: amazon referral link) &#8212; with me everywhere I go. Suddenly, I didn&#8217;t have to worry about forgetting my most ingenious ideas because I could just write them down. I no longer lay awake for hours at night just thinking about a thousand things because I can now just write them down and go to sleep secure in the knowledge that I can continue composing them in the morning.</p>
<p>	Today these notebooks have been filled several times over, and their pages are filled with everything from website designs and programs to code, topics to research, movies to watch, recipes to cook, ideas for posts on my website, and to-do lists. My notebook has never let me down &#8212; although my pen often does. Now that you are officially a writer, do what a writer does and keep your thoughts alive. It doesn&#8217;t have to be a shiny new Moleskin notebook, even a $0.30 one from a corner store will work perfectly &#8212; although it will disintegrate from use, so go buy one, and you will see what a notebook means to you, and you will find that it truly is the most important writing tool you will ever own.</p>
]]></content:encoded>
			<wfw:commentRss>http://anthologyoi.com/blogish/asides/best-blogging-tool.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Changing the hosts file in Vista</title>
		<link>http://anthologyoi.com/computers/changing-the-hosts-file-in-vista.html</link>
		<comments>http://anthologyoi.com/computers/changing-the-hosts-file-in-vista.html#comments</comments>
		<pubDate>Sun, 20 Jan 2008 21:07:47 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://anthologyoi.com/blogish/asides/changing-the-hosts-file-in-vista.html</guid>
		<description><![CDATA[In Vista, normal users are not allowed to save the hosts file, so the easiest way to edit it is to run notepad as an administrator. Go to start and either search for &#8220;notepad&#8221; or go to All Programs > &#8230; <a href="http://anthologyoi.com/computers/changing-the-hosts-file-in-vista.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In Vista, normal users are not allowed to save the hosts file, so the easiest way to edit it is to run notepad as an administrator.</p>
<ol>
<li>Go to start and either search for &#8220;notepad&#8221; or go to All Programs > Accessories</li>
<li>Right click &#8220;notepad&#8221; and select the &#8220;Run as Administrator Option.&#8221;</li>
<li>Once Notepad opens go to File > Open and browse to &#8220;C:\Windows\System32\Drivers\etc&#8221;</li>
<li>Set the file filter to &#8220;All Files&#8221;</li>
<li>Select and Open &#8220;hosts&#8221;</li>
<li>Edit it and save it.</li>
</ol>
<p>If you get an error about it being read only:</p>
<ol>
<li>Go to File > Open, right click the &#8220;hosts&#8221; file and select properties</li>
<li>Uncheck read-only at the bottom and click OK.</li>
<li>Click Cancel to go back to notepad&#8221;</li>
<li> Save it</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://anthologyoi.com/computers/changing-the-hosts-file-in-vista.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TED: Think Globally, Act Locally</title>
		<link>http://anthologyoi.com/blogish/asides/ted-think-globally-act-locally.html</link>
		<comments>http://anthologyoi.com/blogish/asides/ted-think-globally-act-locally.html#comments</comments>
		<pubDate>Tue, 08 Jan 2008 00:45:57 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[biology]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[TED]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://anthologyoi.com/blogish/asides/ted-think-globally-act-locally.html</guid>
		<description><![CDATA[I&#8217;ve linked to TED for quite a while in my sidebar and I urge everyone to subscribe to TED&#8217;s video RSS feed if you are even remotely concerned about the world and people around you. TED talks tends to focus &#8230; <a href="http://anthologyoi.com/blogish/asides/ted-think-globally-act-locally.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve linked to <a href="http://ted.com">TED</a> for quite a while in my sidebar and I urge everyone to subscribe to <a href="http://feeds.feedburner.com/TEDTalks_video">TED&#8217;s video RSS feed</a> if you are even remotely concerned about the world and people around you. </p>
<p>TED talks tends to focus on the grand scheme of things, but this talk by <a href="http://en.wikipedia.org/wiki/Yossi_Vardi">Yossi Vardi</a> talks focuses acutely on the local issues that plague many bloggers. The topic of this talk effects at least 50% of bloggers and all bloggers who care about the future of the world should not only watch this video, but also take immediate action. (If you are not in this 50% you should probably pass it on to someone who is.) Warning this video is not for the faint of heart.</p>
<p><!--cut and paste--><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="432" height="285" id="VE_Player" align="middle"><param name="movie" value="http://static.videoegg.com/ted/flash/loader.swf"><PARAM NAME="FlashVars" VALUE="bgColor=FFFFFF&#038;file=http://static.videoegg.com/ted/movies/YOSSIVARDI-2007_high.flv&#038;autoPlay=false&#038;fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&#038;forcePlay=false&#038;logo=&#038;allowFullscreen=true"><param name="quality" value="high"><param name="allowScriptAccess" value="always"><param name="bgcolor" value="#FFFFFF"><param name="scale" value="noscale"><param name="wmode" value="window"><embed src="http://static.videoegg.com/ted/flash/loader.swf" FlashVars="bgColor=FFFFFF&#038;file=http://static.videoegg.com/ted/movies/YOSSIVARDI-2007_high.flv&#038;autoPlay=false&#038;fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&#038;forcePlay=false&#038;logo=&#038;allowFullscreen=true" quality="high" allowScriptAccess="always" bgcolor="#FFFFFF" scale="noscale" wmode="window" width="432" height="285" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object></p>
<p>It&#8217;s is nice to wake up once and a while to something this amusing in your feed reader isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://anthologyoi.com/blogish/asides/ted-think-globally-act-locally.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>8 Tips for Improving the Content of Your Writing</title>
		<link>http://anthologyoi.com/english/8-tips-for-improving-the-content-of-your-writing.html</link>
		<comments>http://anthologyoi.com/english/8-tips-for-improving-the-content-of-your-writing.html#comments</comments>
		<pubDate>Wed, 14 Nov 2007 18:07:17 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[bloggers]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[Paragraphs]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://anthologyoi.com/english/8-tips-for-improving-the-content-of-your-writing.html</guid>
		<description><![CDATA[The content of writing is separate from style and structure because content is what you write not how you write. The following tips apply just as well to academic essays as to blog posts, so feel free to cherry pick &#8230; <a href="http://anthologyoi.com/english/8-tips-for-improving-the-content-of-your-writing.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The content of writing is separate from style and structure because content is what you write not how you write. The following tips apply just as well to academic essays as to blog posts, so feel free to cherry pick the suggestions that apply best to your writing.</p>
<ol>
<li><strong>Pick an an interesting, significant topic.</strong>
<p>		Too many times posts are done on something insignificant or unoriginal. It doesn&#8217;t really matter if you write a gorgeous tutorial or a powerful, inspiring and riveting essay if it just explains something most people already know about. Similarly, it doesn&#8217;t help to write about issues that very few people have an interest in unless you are writing it solely for your pleasure. </p>
<p>		The biggest problem though is when people write about general topics that they have no real knowledge of and don&#8217;t say anything new about. Most people don&#8217;t care what your position is on abortion, religion or politics if all you are going to do is repeat mainstream thoughts and party lines, so if you must rehash well-covered ground, make sure you do it better or more in-depth than what others have already done.</p>
</li>
<li><strong>Pick a topic that isn&#8217;t too general.</strong>
<p>			Unless you are writing a top 10 list, you need to make sure you don&#8217;t pick a topic that is so broad that you end up just making comments about a dozen different topics rather than a detailed discussion of one or two. The internet is full of broad and general information, so by focusing on specific topics you will be able to carve out your own niche.</p>
<p>This is not to say you can only write about one topic, but you should only write about one topic in any given essay or post.</p>
</li>
<li><strong>Once you pick a topic, stick to it.</strong>
<p>			I beat this one like a dead horse. Don&#8217;t ramble. The law of averages suggests that you are probably are not good enough at manipulating prose to do it in such a way that people will enjoy reading it. </p>
</li>
<li><strong>Introductions should suggest a purpose.</strong>
<p>		If you aren&#8217;t writing for a diary, then you are trying to say <i>something</i>. Make sure you at least allude to this in your first paragraph. Don&#8217;t forget that the introduction is a sales pitch: it is where you show what you are going to talk about and demonstrate most of the points and conclusions that you will make. If the reader is interested after reading the introduction, they will read the rest where you explain everything in greater detail. Remember you are not writing a mystery novel, so don&#8217;t make your reader guess, and don&#8217;t go too far and explain everything in the introduction. Try to find a nice balance between giving it all way and keeping some mystery.</p>
</li>
<li><strong>Each paragraph should be well developed with vivid and concrete details.</strong>
<p>		On the internet, generalities are worthless because there are lots of other places where people can get specific facts about whatever they want. See what I mean? That last sentence was worthless because it was too general and stated the obvious. </p>
<p>		For other hints for working with individual paragraphs you can read about <a href="http://anthologyoi.com/english/paragraphs/basic-paragraph-structure.html">paragraph structure</a> and <a href="http://anthologyoi.com/english/paragraphs/basic-paragraph-style.html">paragraph style</a> elsewhere on this website.</p>
</li>
<li><strong>Use supporting evidence (facts, figures, examples, illustrations, and other details) to prove both the main point and all subpoints.</strong>
<p>			Most likely you are writing for the internet, so while some people will take everything at face value, most will have learned that the internet is full of worthless and incorrect information.</p>
</li>
<li><strong>Is the supporting material appropriate and have I named all of my sources?</strong>
<p>			Never, never, never use photos, videos or quotes without attribution. It is just rude. Even if you just get pointed to something through another website is is nice to give them a little hat tip (literally just say &#8220;hat tip&#8221; and then link to the website) to show that you appreciate what they did.</p>
<p>			Also, make sure that the websites, photos and videos you link to are actually relevant to the topic and don&#8217;t &#8220;betray&#8221; any true feelings: if you are making a political post where you are taking a centrist point of view, make sure you link to both conservative and liberal sources.</p>
</li>
<li><strong>Write for a realistic goal.</strong>
<p>	<em>This only applies to writings that deal with larger widespread issues.</em> Unless your post is meant to be satirical, hyperbole will just make you sound unintelligent.</p>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://anthologyoi.com/english/8-tips-for-improving-the-content-of-your-writing.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Victory over GMail&#8211;Inline Images.</title>
		<link>http://anthologyoi.com/blogish/asides/victory-over-gmail-inline-images.html</link>
		<comments>http://anthologyoi.com/blogish/asides/victory-over-gmail-inline-images.html#comments</comments>
		<pubDate>Wed, 25 Jul 2007 18:40:25 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[GMail]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WYSIWYG]]></category>

		<guid isPermaLink="false">http://anthologyoi.com/blogish/asides/victory-over-gmail-inline-images.html</guid>
		<description><![CDATA[I&#8217;ve wanted to be able to add images to my emails inline (one that appears with the text, not as a separate attachment) for a long time, and today, thanks to WordPress I finally figured out how to do it. &#8230; <a href="http://anthologyoi.com/blogish/asides/victory-over-gmail-inline-images.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve wanted to be able to add images to my emails inline (one that appears with the text, not as a separate attachment) for a long time, and today, thanks to WordPress I finally figured out how to do it.</p>
<ol>
<li>Open GMail, go to compose mail, select the &#8220;Rich Formatting&#8221; if it isn&#8217;t your default.</li>
<li>Open your WordPress Admin Panel, go to a new post, select the Visual Editor (you may have to turn it on under your user preferences)</li>
<li>Write your email in the WordPress Visual Editor, and embed the image into the new post (or just embed the image).</li>
<li>Copy and paste the &#8220;email&#8221; from your WordPress Visual Editor to your GMail &#8220;Rich Formatting&#8221; textbox.</li>
<li>Send your email, don&#8217;t save your post.</li>
</ol>
<p>Easy as &#960;, I would probably figured this out sooner if I didn&#8217;t have a hate-fest with visual editors related to the web. (Oh and this works perfectly in Firefox on Linux, so it isn&#8217;t a Windows/IE only trick.)</p>
]]></content:encoded>
			<wfw:commentRss>http://anthologyoi.com/blogish/asides/victory-over-gmail-inline-images.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Improvements for Stattraq plugin.</title>
		<link>http://anthologyoi.com/wordpress/improvements-for-stattraq-plugin.html</link>
		<comments>http://anthologyoi.com/wordpress/improvements-for-stattraq-plugin.html#comments</comments>
		<pubDate>Thu, 29 Mar 2007 19:06:30 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[improvements]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[stattraq]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://anthologyoi.com/wordpress/improvements-for-stattraq-plugin.html</guid>
		<description><![CDATA[Ever since I originally started using Stattraq a few things bothered me about the way it worked. Here are the fixes to a few of them. Include pages with posts in your stats. Open stattraq.php Find: global $doing_rss, $p Replace &#8230; <a href="http://anthologyoi.com/wordpress/improvements-for-stattraq-plugin.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever since I originally started using Stattraq a few things bothered me about the way it worked. Here are the fixes to a few of them.</p>
<p><strong>Include pages with posts in your stats.</strong></p>
<ol>
<li>Open stattraq.php</li>
<li>Find:<br />
<span class="inline-code"> global $doing_rss, $p</span><br />
Replace With:<br />
<span class="inline-code">global $doing_rss, $p, $page_id, $pagename,</span>
</li>
<li>Find:<br />
<pre class="brush: php">if (($p != &#039;&#039;)){
	$p = intval($p);
	$article_id = $p;
}</pre><br />
Replace with:<br />
<pre class="brush: php">if (($p != &#039;&#039;)){
	$p = intval($p);
	$article_id = $p;
}elseif (($page_id != &#039;&#039;)){
	$page_id = intval($page_id);
	$article_id = $page_id;
}elseif (($pagename != &#039;&#039;)){
 $reqpage = get_page_by_path($pagename);
	if ( !empty($reqpage) )
		$article_id = $reqpage-&gt;ID;
}</pre>
</li>
</ol>
<p>To add a list of all Pages that link to your site grouped by Website (excluding Google):<br />
Open &#8220;wp-stattraq/reporter/summary.php&#8221;</p>
<p>Find:<br />
<pre class="brush: php">&lt;?php echo PrintTimestamp();?&gt;
			&lt;/div&gt;
			&lt;div id=&quot;queryTerms&quot;&gt;</pre><br />
Before Add:<br />
<pre class="brush: php">&lt;table id=&quot;referrersTable&quot;&gt;
					&lt;thead&gt;
						&lt;tr&gt;
							&lt;th&gt;#&lt;/th&gt;
							&lt;th&gt;Referrer&lt;/th&gt;
							&lt;th&gt;Pages&lt;/th&gt;
						&lt;/tr&gt;
					&lt;/thead&gt;
					&lt;tfoot&gt;
						&lt;tr&gt;
							&lt;th&gt;#&lt;/th&gt;
							&lt;th&gt;Referrer&lt;/th&gt;
							&lt;th&gt;Pages&lt;/th&gt;
						&lt;/tr&gt;
					&lt;/tfoot&gt;		
					&lt;tbody&gt;
&lt;?php
if($results){
	$i=0;
	foreach($results as $row){
		preg_match(&#039;/(http.*?\:\/\/.*?)(\/.*)/&#039;, htmlentities($row-&gt;ref), $matches);
		$ref_array[$matches[1]][] = $matches[2];
	}

				
	while( list($site, $pages) = @each($ref_array) ){
		if(strpos($site,&#039;google&#039;) ==false &amp;&amp; $site != &#039;&#039;){?&gt;

			&lt;tr class=&quot;&lt;?php echo ($i % 2 == 0 ? &#039;even&#039; : &#039;odd&#039; );?&gt;&quot;&gt;&lt;td&gt;&lt;?php echo ++$i;?&gt;&lt;/td&gt;
			&lt;td&gt;
			&lt;a href=&quot;&lt;?php echo $site;?&gt;&quot;&gt;&lt;?php echo substr($site,0,50);?&gt;&lt;/a&gt;&lt;/td&gt;
			&lt;td class=&quot;right&quot;&gt;

		&lt;?php foreach($pages as $page){?&gt;

			&lt;a href=&quot;&lt;?php echo $site.$page;?&gt;&quot;&gt;&lt;?php echo substr($page,0,50);?&gt;&lt;/a&gt;&lt;br/&gt;

		&lt;?php}?&gt;


		&lt;/td&gt;
		&lt;/tr&gt;
&lt;?php 	}
	}
}?&gt;
					&lt;/tbody&gt;
				&lt;/table&gt;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://anthologyoi.com/wordpress/improvements-for-stattraq-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A few WordPress Tricks.</title>
		<link>http://anthologyoi.com/wordpress/a-few-wordpress-tricks.html</link>
		<comments>http://anthologyoi.com/wordpress/a-few-wordpress-tricks.html#comments</comments>
		<pubDate>Fri, 09 Mar 2007 17:56:47 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://anthologyoi.com/wordpress/a-few-wordpress-tricks.html</guid>
		<description><![CDATA[Just a few little tips for WordPress: If you don&#8217;t want the titles of posts to have the &#187; character before them for SEO purposes just use: &#60; ?php echo trim(wp_title(&#039;&#38;amp;raquo;&#039;,false), &#039;&#38;amp;raquo; &#039;);?&#62; I was sick of my index.php being &#8230; <a href="http://anthologyoi.com/wordpress/a-few-wordpress-tricks.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just a few little tips for WordPress:</p>
<p>If you don&#8217;t want the titles of posts to have the &raquo; character before them for SEO purposes just use:<br />
<span class="inline-code">&lt; ?php echo trim(wp_title(&#039;&amp;amp;raquo;&#039;,false), &#039;&amp;amp;raquo; &#039;);?&gt;</span></p>
<p>I was sick of my index.php being used to display pages, so I added the following to the top of my index.php to force WordPress to use single.php for all pages:<br />
<pre class="brush: php">&lt; ?php
if(is_page()){
include(&#039;single.php&#039;);
exit;
}
?&gt;</pre></p>
<p>I wanted to be able to use javascript in some of my pages so I added the following to my header.php:<br />
<pre class="brush: php">&lt;?php
if(is_page()){
$j = get_post_meta($post-&gt;ID, &#039;header&#039;, true);
	if($j != &#039;&#039;){
		echo $j;
	}

}
?&gt;</pre><br />
Now anytime I need special style or javascript code added for a particular page I just add a custom field with the name header.</p>
<p>Have you ever tried to validate your WordPress site to use with Google Webmaster Tools? It can be a pain depending on the way your permalinks are, and even if those don&#8217;t cause a problem when Google tries to go to a random URL if the header isn&#8217;t 404 then it fails. Normally I just picked an off-time and renamed the htaccess file to the same as the validation file, validated and then changed it back. Well not anymore. Just add the following to your theme&#8217;s 404.php page and you should be all set. This will allow it to work even if Google doesn&#8217;t check it for an hour or ten.<br />
Obviously you are going to change the whole google23423423423423.html part to the filename Google gives you.<br />
<pre class="brush: php">&lt;?php if(strpos($_SERVER[&#039;REQUEST_URI&#039;],&#039;google234234234234.html&#039;) == false){
		header(&quot;HTTP/1.1 404 Not Found&quot;);
	}else{
		header(&quot;HTTP/1.1 200 OK&quot;);
	}
?&gt;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://anthologyoi.com/wordpress/a-few-wordpress-tricks.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Redirecting a large number of posts to their new WordPress permalinks.</title>
		<link>http://anthologyoi.com/wordpress/redirecting-a-large-number-of-posts-to-their-new-wordpress-permalinks.html</link>
		<comments>http://anthologyoi.com/wordpress/redirecting-a-large-number-of-posts-to-their-new-wordpress-permalinks.html#comments</comments>
		<pubDate>Thu, 25 Jan 2007 14:45:50 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[301 redirect]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://localhost/aoiv2/blogroll/redirecting-a-large-number-of-posts-to-their-new-wordpress-permalinks.html</guid>
		<description><![CDATA[Add this to the VERY top of your theme&#8217;s 404 page. Change http://localhost/wordpress to your default wordpress folder. This just does posts and possibly pages that end in the id (with or without the trailing url) Categories etc will have &#8230; <a href="http://anthologyoi.com/wordpress/redirecting-a-large-number-of-posts-to-their-new-wordpress-permalinks.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Add this to the VERY top of your theme&#8217;s 404 page.<br />
Change http://localhost/wordpress to your default wordpress folder.<br />
This just does posts and possibly pages that end in the id (with or without the trailing url) Categories etc will have to be done elsewhere or by hand.<br />
<pre class="brush: php">&lt; ?php
//Kinda obvious
$rf = $_SERVER[&#039;REQUEST_URI&#039;];
$rf = explode(&#039;/&#039;,$rf);
$last = count($rf);

//Filter out regular 404 that arn&#039;t old urls
if(is_numeric($rf[$last-1])){
	$post_id = $rf[$last-1];
}elseif(is_numeric($rf[$last-2])){
	$post_id = $rf[$last-2];
}

// No sense loading WP if there isn&#039;t an id
if ( $post_id ) {
	// Oh fine we will load wordpress
	define(&#039;WP_USE_THEMES&#039;, false);
	require(&#039;http://localhost/wordpress/wp-blog-header.php&#039;);
		$post = get_post($post_id);
	//Well hope it is the right post. If not, ohwell. We tried.
	if($post){
		//Lets get the new URL
		$new_link = get_permalink($post_id);
		//We don&#039;t want google to get angry with us.
		header(&quot;HTTP/1.1 301 Moved Permanently&quot;);
		header(&quot;Location: $new_link&quot;);
	}
}
?&gt;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://anthologyoi.com/wordpress/redirecting-a-large-number-of-posts-to-their-new-wordpress-permalinks.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

