<?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>elektroelch.net &#187; pagebar</title>
	<atom:link href="http://elektroelch.net/blog/category/pagebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://elektroelch.net</link>
	<description></description>
	<lastBuildDate>Thu, 15 Jul 2010 18:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Updated pagebar v2.58</title>
		<link>http://elektroelch.net/blog/updated-pagebar-v2-58/</link>
		<comments>http://elektroelch.net/blog/updated-pagebar-v2-58/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 11:45:03 +0000</pubDate>
		<dc:creator>Latz</dc:creator>
				<category><![CDATA[pagebar]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://elektroelch.net/?p=38</guid>
		<description><![CDATA[Some days I was happy that pagebar v2.57 does seem to work with the new WordPress v3.0 flawlessly but I laughed too soon. Mark (no link given) pointed out that custom taxonomies are disrupted when using pagebar v2.57. The reason was some code I borrows from the &#8220;Multi Page Toolkit&#8220;: add_action&#40;'init', 'pb_allpage_permalink', -1&#41;; function pb_allpage_permalink&#40;&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>Some days I was happy that pagebar v2.57 does seem to work with the new WordPress v3.0 flawlessly but I laughed too soon. Mark (no link given) pointed out that <a href="http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28">custom taxonomies</a> are disrupted when using pagebar v2.57. </p>
<p>The reason was some code I borrows from the &#8220;<a href="http://wordpress.org/extend/plugins/multi-page-toolkit/">Multi Page Toolkit</a>&#8220;:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pb_allpage_permalink'</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> pb_allpage_permalink<span style="color: #009900;">&#40;</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;">$wp_rewrite</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">add_endpoint</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;all&quot;</span><span style="color: #339933;">,</span> EP_ALL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">flush_rules</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>This code enables pagebar to display all parts of a page which is splitted into multiple parts. As you might see the code adds a new rule to the permalink structure. Unfortunately it corrupted the permalinks in a way that custom taxonomies stopped to worked. </p>
<p>The solution to this problem was to fire the action much, much later and to to update the rules transient (soft flush):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pb_allpage_permalink'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">99</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> pb_allpage_permalink<span style="color: #009900;">&#40;</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;">$wp_rewrite</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">add_endpoint</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;all&quot;</span><span style="color: #339933;">,</span> EP_ALL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">flush_rules</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Hopefully this will solve the problems with custom taxonomies completely.</p>
<p>Download:</p>
<ul>
<li>
<a href="http://downloads.wordpress.org/plugin/pagebar.zip">pagebar258.zip</a>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://elektroelch.net/blog/updated-pagebar-v2-58/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pagebar v2.55</title>
		<link>http://elektroelch.net/blog/pagebar-v2-55/</link>
		<comments>http://elektroelch.net/blog/pagebar-v2-55/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 16:27:31 +0000</pubDate>
		<dc:creator>Latz</dc:creator>
				<category><![CDATA[pagebar]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://elektroelch.net/?p=4</guid>
		<description><![CDATA[Fixed: function name collision with YARPP. Fixed: $_POST parameter collision with FireStat. Added: contextual help Download: pagebar v2.55 (ZIP) pagebar v2.55 (RAR)]]></description>
			<content:encoded><![CDATA[<ul>
<li>Fixed: function name collision with <a href="http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/">YARPP</a>.</li>
<li>Fixed: $_POST parameter collision with <a href="http://firestats.cc/">FireStat</a>.</li>
<li>Added: contextual help</li>
</ul>
<p><u>Download:</u></p>
<ul>
<li><a href="http://www.elektroelch.de/hacks/wp/pagebar/files/pagebar255.zip">pagebar v2.55 (ZIP)</a></li>
<li><a href="http://www.elektroelch.de/hacks/wp/pagebar/files/pagebar255.rar">pagebar v2.55 (RAR)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://elektroelch.net/blog/pagebar-v2-55/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
