<?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>thedeadone.net &#187; How To</title>
	<atom:link href="http://thedeadone.net/tag/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://thedeadone.net</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 13:04:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Tutorial Video for TDO Mini Forms!</title>
		<link>http://thedeadone.net/blog/tutorial-video-for-tdo-mini-forms/</link>
		<comments>http://thedeadone.net/blog/tutorial-video-for-tdo-mini-forms/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 08:58:15 +0000</pubDate>
		<dc:creator>Mark Cunningham</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[tdo-mini-forms]]></category>
		<category><![CDATA[TDOMF]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://thedeadone.net/?p=787</guid>
		<description><![CDATA[A guy called Court has put together a video tutorial and article on using TDO Mini Forms, my free WordPress plugin. The video is pretty good too as it shows you how to create a submission form and an edit form. I think I may be adding a link to this on the FAQ! As [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<!--INFOLINKS_ON-->
<p><p>A guy called <a href="http://indilean.com/">Court</a> has put together <a href="http://sustainableonlinesolutions.com/wordpress-wiki">a video tutorial and article on using TDO Mini Forms</a>, my free WordPress plugin.</p>
<p>The video is pretty good too as it shows you how to create a submission form and an edit form. I think I may be adding a link to this on the FAQ! <img src='http://thedeadone.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="420" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/U2Hu-lH9gME&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="440" height="344" src="http://www.youtube.com/v/U2Hu-lH9gME&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>As a footnote to the video, the latest version 0.13.7 does include Custom Field editing and the compare view for edit posts is now working. <img src='http://thedeadone.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also check out his <a href="http://indilean.com/">site for indie musicians called indilean</a> that uses TDO Mini Forms too.<br />
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li><a href='http://thedeadone.net/blog/a-new-version-of-tdo-mini-forms-is-released-0-13-6/' title='A new version of TDO Mini Forms is released: 0.13.6'>A new version of TDO Mini Forms is released: 0.13.6</a></li>
<li><a href='http://thedeadone.net/blog/ahhhh-v013-escapes-with-editing-functionality/' title='Ahhhh! v0.13 escapes with editing functionality!'>Ahhhh! v0.13 escapes with editing functionality!</a></li>
<li><a href='http://thedeadone.net/blog/where-has-tdo-mini-forms-plugin-gone/' title='Where has TDO Mini Forms plugin gone?'>Where has TDO Mini Forms plugin gone?</a></li>
<li><a href='http://thedeadone.net/blog/pet-projects-tdo-mini-forms-and-forums/' title='Pet Projects, TDO-Mini-Forms and Forums'>Pet Projects, TDO-Mini-Forms and Forums</a></li>
<li><a href='http://thedeadone.net/blog/working-on-a-taxonomy-widget-for-tdo-mini-forms/' title='Working on a Taxonomy Widget for TDO Mini Forms'>Working on a Taxonomy Widget for TDO Mini Forms</a></li>
</ul>

<!--INFOLINKS_OFF-->
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://thedeadone.net/blog/tutorial-video-for-tdo-mini-forms/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Modifying the WordPress query in your theme without breaking plugins</title>
		<link>http://thedeadone.net/how-to/modifying-the-wordpress-query-in-your-theme-without-breaking-plugins/</link>
		<comments>http://thedeadone.net/how-to/modifying-the-wordpress-query-in-your-theme-without-breaking-plugins/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 08:25:46 +0000</pubDate>
		<dc:creator>Mark Cunningham</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[tdo-tag-fixes]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wp_query]]></category>

		<guid isPermaLink="false">http://thedeadone.net/?p=556</guid>
		<description><![CDATA[In the WordPress codex, it explains how to modify what posts are in the loop by modifying the WordPress Query object. However there is a catch with this, because by using rewind_posts() for example, you are generating a brand new query to the database that doesn&#8217;t trigger plugins. Specifically this came up when creating the [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<!--INFOLINKS_ON-->
<p><p>In the <a href="http://codex.wordpress.org/">WordPress codex</a>, it explains <a href="http://codex.wordpress.org/The_Loop">how to modify what posts are in the loop by modifying the WordPress Query object</a>. However there is a catch with this, because by using <span class="code">rewind_posts()</span> for example, you are generating a brand new query to the database that doesn&#8217;t trigger plugins.</p>
<p>Specifically this came up when creating the current theme for my webpage. I wanted to use <a href="http://thedeadone.net/download/tdo-tag-fixes-wordpress-plugin/">my tdo-tag-fixes plugin</a> that filters posts on a category template based on a tag. This initially worked fine, but I wanted to tweak the theme so that some category pages displayed<em> all </em>posts from that category but yet could be filtered by tags. (Check out <a href="http://thedeadone.net/category/download/">my download section where you can filter downloads by clicking on the tag cloud on the left</a>). Apparently other people are suffering similar problems too when they use the tdo-tag-fixes plugin while trying to modify the query within their theme. </p>
<p>To list all the posts in a category template isn&#8217;t hard at all. I just had to set the query var &#8220;<span class="code">nopaging</span>&#8221; to true and do a <span class="code">rewind_posts()</span>. (You also have to set the category_name again). Once I had implemented this in my category template, the tag filtering stopped working. What was happening was that r<span class="code">rewind_posts()</span> created a brand new query, overwriting any previous set query vars and basically going around my tdo-tag-fixes plugin.</p>
<p>However there is a solution to this (basically how tdo-tag-fixes is implemented in fact). So what you need to do is modify the query before it gets to the template. This way it should be in addition to any other plugins that modify the query (unless your theme overwrites them).</p>
<p>So in my functions.php I did something like this:</p>
<pre><code>
add_action('parse_request','show_all_entries_in_category');

function show_all_entries_in_category(
    $args
)
{
    $categories_list = array( 1, 3, 4 );

    // this if checks if it's for a category template
    //
    if(isset($args->query_vars['category_name']))
    {

        $cat = get_category_by_path($args->query_vars['category_name']);

        // if one of the special categories, disable paging
        //
        if(in_array($cat->term_id,$categories_list))
        {
            // make sure all posts are displayed in this category
            //
            $args->set_query_var('nopaging',true);
        }
    }
}
</code></pre>
<p>This piece of code will check set the &#8220;<span class="code">nopaging</span>&#8221; query var on the wp_query for categories with ids 1, 3 or 4, which means that for those category pages all posts will be listed with no previous and next page links.</p>
<p>You can of course alter the code with in <span class="code">show_all_entries_in_category()</span> with what ever query modifications you need to do.<br />
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li><a href='http://thedeadone.net/blog/tutorial-video-for-tdo-mini-forms/' title='Tutorial Video for TDO Mini Forms!'>Tutorial Video for TDO Mini Forms!</a></li>
<li><a href='http://thedeadone.net/blog/where-has-tdo-mini-forms-plugin-gone/' title='Where has TDO Mini Forms plugin gone?'>Where has TDO Mini Forms plugin gone?</a></li>
<li><a href='http://thedeadone.net/blog/pet-projects-tdo-mini-forms-and-forums/' title='Pet Projects, TDO-Mini-Forms and Forums'>Pet Projects, TDO-Mini-Forms and Forums</a></li>
<li><a href='http://thedeadone.net/blog/working-on-a-taxonomy-widget-for-tdo-mini-forms/' title='Working on a Taxonomy Widget for TDO Mini Forms'>Working on a Taxonomy Widget for TDO Mini Forms</a></li>
<li><a href='http://thedeadone.net/blog/an-alternative-to-tdo-mini-forms/' title='An alternative to TDO Mini Forms?'>An alternative to TDO Mini Forms?</a></li>
</ul>

<!--INFOLINKS_OFF-->
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://thedeadone.net/how-to/modifying-the-wordpress-query-in-your-theme-without-breaking-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

