<?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</title>
	<atom:link href="http://elektroelch.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://elektroelch.de/net</link>
	<description>WordPress and stuff.</description>
	<lastBuildDate>Thu, 15 Nov 2012 13:19:56 +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>
	<atom:link rel='hub' href='http://elektroelch.de/net/?pushpress=hub'/>
		<item>
		<title>New ideas for pagebar v3 – Part 2: Customization by Drag&#8217;n Drop</title>
		<link>http://elektroelch.de/net/new-ideas-for-pagebar-v3-part-2-customization-by-dragn-drop/</link>
		<comments>http://elektroelch.de/net/new-ideas-for-pagebar-v3-part-2-customization-by-dragn-drop/#comments</comments>
		<pubDate>Thu, 15 Nov 2012 13:19:56 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[pagebar]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=809</guid>
		<description><![CDATA[<p>Though pagebar is quite customizable you can&#8217;t define the overall look. &#8220;Previous page&#8221; is always on the most left, followed by &#8220;First&#8221; and so on but maybe you want the elements in a different order. I&#8217;m not aware that any of the paging plugins provide this feature, pagebar hopefully will do so in the next<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/new-ideas-for-pagebar-v3-part-2-customization-by-dragn-drop/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/new-ideas-for-pagebar-v3-part-2-customization-by-dragn-drop/">New ideas for pagebar v3 – Part 2: Customization by Drag&#8217;n Drop</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Though <em>pagebar</em> is quite customizable you can&#8217;t define the overall look. &#8220;Previous page&#8221; is always on the most left, followed by &#8220;First&#8221; and so on but maybe you want the elements in a different order. I&#8217;m not aware that any of the paging plugins provide this feature, <em>pagebar </em>hopefully will do so in the next major version.<span id="more-809"></span></p>
<p>My first idea was to create a textarea where the user can define the pagebar via text tokens:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/11/textarea_customization.png" alt="" title="textarea_customization" width="553" height="51" class="aligncenter size-full wp-image-811" /></p>
<p>The individual parts of the <em>pagebar </em>would be enclosed in curly braces, e.g. {prev}, {left} or {last} The preferences would be separated with a vertical bar, if there is more than one preference these are divided by commas.<br />
At first glance this looked like a idea for a simple solution to allow the user to customize <em>pagebar </em>more to his needs than it&#8217;s possible with the current version. After elaborating this idea for some time I came to the conclusion that it would end in an ugly unreadable long string that&#8217;s almost unable to maintain. There has to be a better solution.</p>
<p><strong><u>Customization by Drag’n Drop</u></strong></p>
<p>We&#8217;re living in the era of the Web 2.0 (or is it 3.0 already?), so I thought a Drag&#8217;n Drop interface could solve the problem that new users should be able to modify their pagebar easily but experienced users should not dismiss it as childish.<br />
Let&#8217;s take a look at a mockup I made:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/11/dragndrop_en.png" alt="" title="dragndrop_en" width="683" height="512" class="aligncenter size-full wp-image-810" /></p>
<p>Overall the settings should work as the &#8220;Widgets&#8221; setting page of WordPress itself. You have an <em>Elements</em> container with all the available <em>pagebar</em> components which can be dropped into the <em>Drop area</em>. In this area you can re-arrange or delete the elements. </p>
<p>Below this area you will always have a preview of the complete <em>pagebar</em> so you&#8217;re not left to your imagination.<br />
Finally you should be able to set the preferences for each element. To do so you (right) click on an element in the drop area and a <em>Preferences</em> window will appear allowing you to change the settings. The image above reveals another detail I wanted to build into <em>pagebar</em> for ages: images. </p>
<p>I&#8217;ve never done drag and drop programming in jQuery but there are so many plugins with GPL, BSD, MIT or similar licenses that I should be able create a decent interface.</p>
<p><strong><u>Far future plans</u></strong><br />
Of course I have ideas which are a bit more &#8220;advanced&#8221; and that I don&#8217;t plan to include in v3.0 or v3.1 (or even before 4.0 <img src='http://elektroelch.de/net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ). One is to make <em>pagebar</em> extensible. Maybe someone wants to have buttons like &#8220;+10 pages&#8221; and &#8220;-10 pages&#8221; or (as one user requests since ages) an &#8220;I&#8217;m feeling lucky&#8221; button that sends the user to a random page. These are features that individuals may want to have in their <em>pagebar</em> but the majority of users would never use. Just like in WordPress itself plugins could solve this dilemma.</p>
<p>The post <a href="http://elektroelch.de/net/new-ideas-for-pagebar-v3-part-2-customization-by-dragn-drop/">New ideas for pagebar v3 – Part 2: Customization by Drag&#8217;n Drop</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/new-ideas-for-pagebar-v3-part-2-customization-by-dragn-drop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ideas for pagebar v3 &#8211; Part 1: Direct page access</title>
		<link>http://elektroelch.de/net/ideas-for-pagebar-v3-part-1-direct-page-access/</link>
		<comments>http://elektroelch.de/net/ideas-for-pagebar-v3-part-1-direct-page-access/#comments</comments>
		<pubDate>Fri, 09 Nov 2012 17:09:46 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[pagebar]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=780</guid>
		<description><![CDATA[<p>It&#8217;s time to think about version 3 of pagebar. In this series I try to explain what I am planning for this new major version and invite you to discuss my plans. Part 1: Direct page access I always wanted to add a fast and direct page selection. The easiest way would be to add<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/ideas-for-pagebar-v3-part-1-direct-page-access/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/ideas-for-pagebar-v3-part-1-direct-page-access/">Ideas for pagebar v3 &#8211; Part 1: Direct page access</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s time to think about version 3 of <a href="https://wordpress.org/extend/plugins/pagebar/">pagebar</a>. In this series I try to explain what I am planning for this new major version and invite you to discuss my plans.<br />
<h3>Part 1: Direct page access</h3>
<p>I always wanted to add a fast and direct page selection. The easiest way would be to add a selection box containing all page numbers. This might work if you&#8217;re having about 10 pages but if your blog is really, really large, say about 300 pages, a select box with 300 numbers would be quite clumsy: <span id="more-780"></span><br />
<img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/11/dropdown1.png" alt="" title="dropdown" width="497" height="253" class="aligncenter size-full wp-image-799" /></p>
<p>There has to be a better way. Here are mockups of my suggestions of a fast page selection UI.</p>
<p><strong><u>Hierarchical dropdown menus</u></strong></p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/11/pagebar31.png" alt="" title="pagebar31" width="610" height="301" class="aligncenter size-full wp-image-781" /></p>
<p>The idea is a hierarchical representation of the pages in steps of 10 pages. If you select such a range you will get another popup displaying the the actual pages you can select. This selection requires three clicks but is much more accessible than an almost endless list of numbers.<br />
What happens if you click the &#8220;100 &#8211; 199&#8243; link? Will there be a list of 100 pages? No, of course not, this wouldn&#8217;t be much better than the simple approach mentioned before. Instead it will display an additional popup:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/11/pagebar-31-mit-Hundertern.png" alt="" title="pagebar 31 mit Hundertern" width="695" height="366" class="aligncenter size-full wp-image-782" /></p>
<p>I tweeted that the algorithm might be somewhat tricky but I stripped the idea down to the necessary so that the code itself should not be the problem. There might be some less important problems like what happens if the pagebar is at the bottom of the browser window (not too unlikely) and the popups would open outside the window but I think this can be handled with a little jquery code.</p>
<p>With many pages it is quite expensive to create the list over and over again so it would be a good idea to cache the list in a transient which is deleted and recalculated upon adding or removal of posts.</p>
<p><strong>Direct keyboard input</strong><br />
If you don&#8217;t like the dropdown menus pagebar v3 could contain a simple direct input of the page number using the keyboard. I&#8217;m thinking of two versions. The first is expanding the button and containing a textinput inside (a) the other is opening a small popup above or below the pagebar (b). I&#8217;m not sure which to take:<br />
<img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/11/pagebar-31-mit-direkter-Tastatureingabe.png" alt="" title="pagebar 31 mit direkter Tastatureingabe" width="546" height="290" class="aligncenter size-full wp-image-783" /></p>
<h3>Other methods</h3>
<p>Are there any other good methods of jumping directly to a page that is not available in the main pagebar? If there is, don&#8217;t hesitate and enlighten me in the comment section. Thanks.</p>
<p>The post <a href="http://elektroelch.de/net/ideas-for-pagebar-v3-part-1-direct-page-access/">Ideas for pagebar v3 &#8211; Part 1: Direct page access</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/ideas-for-pagebar-v3-part-1-direct-page-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide the password hiding stars</title>
		<link>http://elektroelch.de/net/firefox-hide-the-password-hiding-stars/</link>
		<comments>http://elektroelch.de/net/firefox-hide-the-password-hiding-stars/#comments</comments>
		<pubDate>Mon, 17 Sep 2012 15:11:24 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[addons]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=740</guid>
		<description><![CDATA[<p>As far as I can remember web browsers replace the characters of a password field with stars (did Mosaic already do this?) but this feature is not always helpful. Fortunately you can change this! When I sit in my home office there is no one around who&#8217;s a thread to my passwords. Nevertheless my browser<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/firefox-hide-the-password-hiding-stars/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/firefox-hide-the-password-hiding-stars/">Hide the password hiding stars</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://elektroelch.de/net/files/2012/09/unhide_passwords.png"><img style=' float: left; padding: 4px; margin: 0 7px 2px 0;'  class="alignleft size-full wp-image-741" title="unhide_passwords" src="http://elektroelch.de/net/files/2012/09/unhide_passwords.png" alt="" width="200" height="150" /></a>As far as I can remember web browsers replace the characters of a password field with stars (did Mosaic already do this?) but this feature is not always helpful. Fortunately you can change this!<span id="more-740"></span><br />
When I sit in my home office there is no one around who&#8217;s a thread to my passwords. Nevertheless my browser hides the characters in the password input fields. I hate that since it would be easier to enter the password and possibly correct it if I could see what I type.</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/09/login_en1.png" alt="" title="login_en" width="370" height="324" class="aligncenter size-full wp-image-765" /><br />
There are add-ons for various browsers to do this simple task:</p>
<ul>
<li><a href="https://addons.mozilla.org/en-us/firefox/addon/unhide-passwords/">Firefox &#8211; Unhide passwords</a></li>
<li><a href="Opera: https://addons.opera.com/en/extensions/details/show-hide-passwords/">Opera &#8211; Show/Hide passwords</a></li>
<li><a href="https://chrome.google.com/webstore/detail/ogjaejebjmifpkiaafdnnpkkjnmopmhn">Chrome &#8211; Show password on focus</a></li>
<li><a href="http://www.macupdate.com/app/mac/35240/showpass-safari-extension">Safari &#8211; ShowPass</a></li>
<li>There does not seem to be any extension for the Internet Explorer.</li>
</ul>
<p>So if you&#8217;re not more paranoid than the average nerd give one of the add-ons a try. You might not want to un-install it again.</p>
<p>The post <a href="http://elektroelch.de/net/firefox-hide-the-password-hiding-stars/">Hide the password hiding stars</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/firefox-hide-the-password-hiding-stars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why you should use pagebar for your blog</title>
		<link>http://elektroelch.de/net/why-you-should-use-pagebar-for-your-blog/</link>
		<comments>http://elektroelch.de/net/why-you-should-use-pagebar-for-your-blog/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 15:20:16 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=702</guid>
		<description><![CDATA[<p>You may ask yourself &#8220;Why should I use pagebar, the newer versions of the WordPress default themes already contain page navigation.&#8221; Here an example that may convince you that pagebar is the better choice. Let&#8217;s take a look at a multi paged post with many, really many pages: Twenty-Ten Twenty-Ten is my all-time favourite, seems<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/why-you-should-use-pagebar-for-your-blog/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/why-you-should-use-pagebar-for-your-blog/">Why you should use pagebar for your blog</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>You may ask yourself &#8220;Why should I use <em>pagebar</em>, the newer versions of the WordPress default themes already contain page navigation.&#8221; Here an example that may convince you that <em>pagebar</em> is the better choice.<br />
<span id="more-702"></span><br />
Let&#8217;s take a look at a multi paged post with many, really many pages:</p>
<h3>Twenty-Ten</h3>
<p>Twenty-Ten is my all-time favourite, seems nobody ever thought that there may be a post with more than 12 pages:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/09/2010.png" alt="" title="2010" width="623" height="427" class="aligncenter size-full wp-image-703" /></p>
<h3>Twenty-Eleven</h3>
<p>Next year the layout was much better:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/09/2011.png" alt="" title="2011" width="561" height="341" class="aligncenter size-full wp-image-704" /></p>
<h3>Twenty-Twelve</h3>
<p>The latest default theme seems to have no layout for paged posts at all (though there is a bit CSS used for the list):</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/09/2012.png" alt="" title="2012" width="612" height="322" class="aligncenter size-full wp-image-705" /></p>
<p>Despite the layout mayhem: does a user really wants to go to page 73, or 99? (OK, maybe the user got an email &#8220;Look at page 73&#8243;). Isn&#8217;t it more likely that the user wants to go to the next or previous page, skip two pages or go to the last page? </p>
<h3>Change!</h3>
<p>Here&#8217;s the same post with the default settings of <em>pagebar</em>:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/09/pagebar_multipage_default.png" alt="" title="pagebar_multipage_default" width="621" height="261" class="aligncenter size-full wp-image-714" /></p>
<p>This looks much better, even for posts with many pages. Of course you can change many aspects of the layout of the <em>pagebar</em> in the settings. As a bonus you get a button for displaying <b>all</b> parts of the post, WordPress does not contain this by default.<br />
For those who want to allow the user to select a specific page, <em>pagebar</em> v3 will contain a hierarchical dropdown list for easy access.</p>
<p>Use <em>pagebar</em>! You can <a href="http://wordpress.org/extend/plugins/pagebar/" title="pagebar" target="_blank">download</a> it from the WordPress repository.</p>
<p>The post <a href="http://elektroelch.de/net/why-you-should-use-pagebar-for-your-blog/">Why you should use pagebar for your blog</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/why-you-should-use-pagebar-for-your-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New version of pagebar released (v2.60)</title>
		<link>http://elektroelch.de/net/new-version-of-pagebar-released-v2-60/</link>
		<comments>http://elektroelch.de/net/new-version-of-pagebar-released-v2-60/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 14:00:32 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=668</guid>
		<description><![CDATA[<p>As you can see in the title the new version of pagebar is not version 3.0 that I anticipated to release by this summer. Procrastination at its best! 1. Instead I created another minor version with some features which are quite easy to implement. First there is a new default theme based on CSS3: To<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/new-version-of-pagebar-released-v2-60/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/new-version-of-pagebar-released-v2-60/">New version of pagebar released (v2.60)</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>As you can see in the title the new version of pagebar is <b>not</b> version 3.0 that I anticipated to release by this summer. Procrastination at its best!</p>
<h3>1.</h3>
<p>Instead I created another minor version with some features which are quite easy to implement. First there is a new default theme based on CSS3:</p>
<p><a href="http://elektroelch.de/net/files/2012/09/pagebar260_1.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/09/pagebar260_1.png" alt="" title="pagebar260_1" width="623" height="79" class="aligncenter size-full wp-image-688" /></a>To activate the new layout you have to copy the included file <code>pagebar.css</code> to your current theme.</p>
<h3>2.</h3>
<p>I took the <a href="http://pippinsplugins.com/lets-talk-extensible-code/" title="Let's talk extensible code">advice of Pippin</a> and added some actions:</p>
<ul>
<li>pagebar_before/pagebar_after (This action is executed before and after <b>every</b> kind of pagebar)</li>
</ul>
<p>Additionally every bar has an action of its own:</p>
<ul>
<li>postbar_before/postbar_after, commentbar_before/commentbar_after, multipagebar_before/multipagebar_after</li>
</ul>
<h3>3.</h3>
<p>One of the main problems of the automagic insertion of postbbar was a second query in the sidebar displaying &#8220;Recent posts&#8221; that is used by many themes. Version 3.3 introduced a new function called &#8220;<code>is_main_query</code>&#8221; which enables the plugins to display the postbar only after the main main query. I hope this works for all themes because <a href="twitter.com/toscho">@toscho</a> thinks that the function has some issues.</p>
<h3>4.</h3>
<p>Finally there is a new translation for pagebar: Romanian (ro_RO). I received the translation ages ago, excuses go to <a href="webhostinggeeks.com">Web Geek Science</a></p>
<h3>Links:</h3>
<ul>
<li><a href="http://wordpress.org/extend/plugins/pagebar/">pagebar plugin page</a></li>
</ul>
<p>The post <a href="http://elektroelch.de/net/new-version-of-pagebar-released-v2-60/">New version of pagebar released (v2.60)</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/new-version-of-pagebar-released-v2-60/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Publishing posts in the past</title>
		<link>http://elektroelch.de/net/wordpress-publishing-posts-in-the-past/</link>
		<comments>http://elektroelch.de/net/wordpress-publishing-posts-in-the-past/#comments</comments>
		<pubDate>Fri, 13 Jul 2012 09:37:15 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=643</guid>
		<description><![CDATA[<p>There may be situations where you want to publish a post with a date in the past. On first sight WordPress does not have such a function. If you look closer you find on the page &#8220;Add new post&#8221; in the metabox &#8220;Publish&#8221; the following entry: If you click on Edit a field appears in<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/wordpress-publishing-posts-in-the-past/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/wordpress-publishing-posts-in-the-past/">WordPress: Publishing posts in the past</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>There may be situations where you want to publish a post with a date in the past. On first sight WordPress does not have such a function. If you look closer you find on the page &#8220;Add new post&#8221; in the metabox &#8220;Publish&#8221; the following entry:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/07/13-07-2012-11-14-37.png" alt="" title="13-07-2012 11-14-37" width="295" height="234" class="aligncenter size-full wp-image-651" /></p>
<p>If you click on <strong>Edit</strong> a field appears in which you can enter the desired publishing date:</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/07/13-07-2012-11-17-16.png" alt="" title="13-07-2012 11-17-16" width="295" height="299" class="aligncenter size-full wp-image-652" /></p>
<p>You can not only choose a date in the future but also a date in the past. After you have entered the date you should not forget to <strong>OK</strong> because otherwise the new date isn&#8217;t used when you publish the post:</p>
<p><a href="http://elektroelch.de/net/files/2012/07/13-07-2012-11-20-33.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/07/13-07-2012-11-20-33.png" alt="" title="13-07-2012 11-20-33" width="295" height="234" class="aligncenter size-full wp-image-653" /></a></p>
<p>If you press <strong>Publish</strong> the post will be published with the date set above:</p>
<p><strong>Update:</strong>  <a href="http://www.webdesign-in.de/" target="_blank">Monika Thon-Soun</a> advised me that this practice may not be suitable if you&#8217;re focusing on search engine ranking since the subsequent entry may confuse Google et al. </p>
<p>The post <a href="http://elektroelch.de/net/wordpress-publishing-posts-in-the-past/">WordPress: Publishing posts in the past</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/wordpress-publishing-posts-in-the-past/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Get IDs of *ALL* post tags</title>
		<link>http://elektroelch.de/net/wordpress-get-ids-of-all-post-tags/</link>
		<comments>http://elektroelch.de/net/wordpress-get-ids-of-all-post-tags/#comments</comments>
		<pubDate>Fri, 01 Jun 2012 14:12:00 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=635</guid>
		<description><![CDATA[<p>WordPress contains a function for getting the tags associated with a post (get_the_tags) but none for retrieving the IDs of all site wide available tags. The solution to this problem is quite easy if you remember that post tags are nothing else but pre-defined taxonomies and that you can use the function get_terms to retrieve<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/wordpress-get-ids-of-all-post-tags/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/wordpress-get-ids-of-all-post-tags/">WordPress: Get IDs of *ALL* post tags</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>WordPress contains a function for getting the tags associated with a post (<code><a href="http://codex.wordpress.org/Function_Reference/get_the_tags">get_the_tags</a></code>) but none for retrieving the IDs of all site wide available tags.</p>
<p>The solution to this problem is quite easy if you remember that post tags are nothing else but pre-defined taxonomies and that you can use the function <a href="http://codex.wordpress.org/Function_Reference/get_terms">get_terms</a></code> to retrieve the terms of a taxonomy:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$tag_ids</span> <span style="color: #339933;">=</span> get_terms<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post_tag'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fields'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ids'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'get'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'all'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Funny enough there is a function for getting all category IDs (<a href="http://codex.wordpress.org/Function_Reference/get_all_category_ids">get_all_category_ids</a>).</p>
<p>The post <a href="http://elektroelch.de/net/wordpress-get-ids-of-all-post-tags/">WordPress: Get IDs of *ALL* post tags</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/wordpress-get-ids-of-all-post-tags/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Yet another rant about bad WordPress plugin programming habits</title>
		<link>http://elektroelch.de/net/yet-another-rant-about-bad-wordpress-plugin-programming-habits/</link>
		<comments>http://elektroelch.de/net/yet-another-rant-about-bad-wordpress-plugin-programming-habits/#comments</comments>
		<pubDate>Thu, 10 May 2012 16:21:47 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=551</guid>
		<description><![CDATA[<p>The other day I came across a plugin that provided some useful functions to WordPress but is so badly coded that I can&#8217;t recommend it to anyone to use it. Though there are a lot of blog posts ranting about people &#8220;doing it wrong&#8221; this not be named plugin does so many things wrong in<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/yet-another-rant-about-bad-wordpress-plugin-programming-habits/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/yet-another-rant-about-bad-wordpress-plugin-programming-habits/">Yet another rant about bad WordPress plugin programming habits</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>The other day I came across a plugin that provided some useful functions to WordPress but is so badly coded that I can&#8217;t recommend it to anyone to use it. Though there are a lot of blog posts ranting about people &#8220;doing it wrong&#8221; this not be named plugin does so many things wrong in one place that I&#8217;m simply feeling the urge to write about a few of them.<br />
<span id="more-551"></span></p>
<h3>Creating tables in the database</h3>
<p>WordPress provides tables and, yet even better, functions to store the data of your plugin. There is for example <code>wp_postmeta</code> to store data applying to a post, repectively <code>wp_usermeta</code> for user data.<br />
To store general data of your plugin you can use the </code>wp_options</code> table. You don&#8217;t even need to create a new row for every single piece of data but you can combine all your data into an array and use the <code>serialize()</code> function to store it into a single set.<br />
(<b>Edit</b>: Since version 2.0.1 it&#8217;s not necessary to seialize the data yourself because the update_* take care of it themselves.)<br />
As you see, there is no need to create your own tables or to use your own SQL statements.</p>
<h3>Always requesting &#8220;fresh&#8221; data</h3>
<p>You do not need to pull data from external sources or aggregate data from the database every time your plugin is executed. There are good chances that the data you need does not change over a longer period of time. You can use some sophisticated WordPress functions to cache the data using the &#8220;<a href="https://codex.wordpress.org/Transients_API">Transient API</a>&#8221;. It provides function to temporary store data (<code><a href="https://codex.wordpress.org/Function_Reference/set_transient">set_transient</a></code>), to retrieve it (<code><a href="https://codex.wordpress.org/Function_Reference/get_transient">get_transient</a></code>) and some others to control storage of temporary data.</p>
<h3>Creating everything from scratch</h3>
<p>WordPress contains a heap of useful functions especially for database access. So before you start connecting manually to the WordPress database take a look at the <code><a href="https://codex.wordpress.org/Class_Reference/wpdb">$wpdb</a></code> class which contains everything you need to coennect to the database, <code><a href="https://codex.wordpress.org/Function_Reference/add_user_meta">add_user_meta</a></code>, <code><a href="https://codex.wordpress.org/Function_Reference/add_post_meta">add_post_meta</a></code>, and other useful functions to store, alter and delete data. Take a look at them before even thinking about creating your custom SQL statement. Besides being easy to use these function assure that your plugin will work even if the database layout is changed dramatically.</p>
<h3>After me, the deluge!</h3>
<p>Your plugin may be the best invention since sliced bread and everyone should use it. Nevertheless be convinced that there are definitely people who test you plugin and think that there must be something better and uninstall it. So take care that your plugin does no leave any clutter in the database by deleting any trace on uninstall. On <b>uninstall</b> not on <b>deactivation</b> because a user may deactivate your plugin though he wants to continue using it, e.g. for debugging purposes, and would be happy if his options are still set upon re-activation. So be nice!</p>
<p>There are many other things you can <em>do wrong &reg;</em> at programming a good WordPress plugin and I hope that <em><a href="http://twitter.com/nacin">@nacin</a></em> will create a blog about it some day.</p>
<p>The post <a href="http://elektroelch.de/net/yet-another-rant-about-bad-wordpress-plugin-programming-habits/">Yet another rant about bad WordPress plugin programming habits</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/yet-another-rant-about-bad-wordpress-plugin-programming-habits/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My favorite Greasemonkey-Script</title>
		<link>http://elektroelch.de/net/my-favorite-greasemonkey-script/</link>
		<comments>http://elektroelch.de/net/my-favorite-greasemonkey-script/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 11:00:15 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=523</guid>
		<description><![CDATA[<p>Greasemonkey is a fine Firefox-Addon that allows you to execute some Javascript on the page to change the content or do other stuff to enhance the experience. My all-time favorite is Jasper&#8217;s Google Reader subscribe. What does it do? Every blog, almost every news site, and many other web sites provide RSS feeds. They are<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/my-favorite-greasemonkey-script/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/my-favorite-greasemonkey-script/">My favorite Greasemonkey-Script</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="https://addons.mozilla.org/de/firefox/addon/greasemonkey/" title="Greasemonkey">Greasemonkey </a>is a fine Firefox-Addon that allows you to execute some Javascript on the page to change the content or do other stuff to enhance the experience.<br />
My all-time favorite is <a href="https://userscripts.org/scripts/show/2571">Jasper&#8217;s Google Reader subscribe</a>. What does it do?<br />
Every blog, almost every news site, and many other web sites provide RSS feeds. They are a handy thing but some sites make it hard to find the corresponding link or don&#8217;t display it at all. The only chance to find the link would be to browse the source code of the page. Scanning the code while you&#8217;re in front of a computer? Ridiculous! Let&#8217;s use the machine and that&#8217;s what this script does.<br />
It looks for links containing the strings &#8220;rss&#8221;, &#8220;atom&#8221;, or &#8220;rdf&#8221; and displays a small icon at the top right of your browser:</p>
<p><a href="http://elektroelch.de/net/files/2012/02/jasper1.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/02/jasper1.png" alt="" title="jasper1" width="84" height="68" class="aligncenter size-full wp-image-524" /></a></p>
<p>If you hover the mouse cursor over the icon all found feeds will be displayed:</p>
<p><a href="http://elektroelch.de/net/files/2012/02/jasper2.png"><img style=' display: block; margin-right: auto; margin-left: auto;'  src="http://elektroelch.de/net/files/2012/02/jasper2.png" alt="" title="jasper2" width="264" height="88" class="aligncenter size-full wp-image-527" /></a></p>
<p>As you see not only the main feed is found but also the comment feed and possible others. With this script installed you can simply click on this icon and subscribe to feeds without frantically scanning the page.</p>
<ul>
<li>
<a href="https://userscripts.org/scripts/show/2571">Download &#8220;Jasper’s Google Reader subscribe&#8221;</a>
</li>
</ul>
<p>The post <a href="http://elektroelch.de/net/my-favorite-greasemonkey-script/">My favorite Greasemonkey-Script</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/my-favorite-greasemonkey-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The selectbox mystery of WordPress</title>
		<link>http://elektroelch.de/net/the-selectbox-mystery-of-wordpress/</link>
		<comments>http://elektroelch.de/net/the-selectbox-mystery-of-wordpress/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 14:42:05 +0000</pubDate>
		<dc:creator>latz</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://elektroelch.de/net/?p=507</guid>
		<description><![CDATA[<p>The other day I wanted to use a selectbox with 5 elements in my plugin&#8217;s option page. No problem I thought: &#60;select size=&#34;5&#34;&#62; &#60;option &#34;test1&#34; /&#62; &#60;option &#34;test2&#34; /&#62; &#60;option &#34;test3&#34; /&#62; &#60;option &#34;test4&#34; /&#62; &#60;option &#34;test5&#34; /&#62; &#60;option &#34;test6&#34; /&#62; &#60;/select&#62; What everybody including me expects is something like this: But I actually got<div class="readmore"><button class="minimal-indent" onclick="window.location=&#34;http://elektroelch.de/net/the-selectbox-mystery-of-wordpress/&#34;">Read more &#187;</button></div></p><p>The post <a href="http://elektroelch.de/net/the-selectbox-mystery-of-wordpress/">The selectbox mystery of WordPress</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>The other day I wanted to use a selectbox with 5 elements in my plugin&#8217;s option page. No problem I thought:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="xhtml" style="font-family:monospace;">&lt;select size=&quot;5&quot;&gt;
  &lt;option &quot;test1&quot; /&gt;
  &lt;option &quot;test2&quot; /&gt;
  &lt;option &quot;test3&quot; /&gt;
  &lt;option &quot;test4&quot; /&gt;
  &lt;option &quot;test5&quot; /&gt;
  &lt;option &quot;test6&quot; /&gt;
&lt;/select&gt;</pre></td></tr></table></div>

<p>What everybody including me expects is something like this:<br />
<img style=' float: left; padding: 4px; margin: 0 7px 2px 0;'  src="http://elektroelch.de/net/files/2011/12/select1.png" alt="" title="select1" width="98" height="141" class="alignleft size-full wp-image-508" /><br clear="all"></p>
<p>But I actually got this:<br />
<img style=' float: left; padding: 4px; margin: 0 7px 2px 0;'  src="http://elektroelch.de/net/files/2011/12/select2.png" alt="" title="select2" width="88" height="60" class="alignleft size-full wp-image-509" /><br clear="all"></p>
<p>The mystery lies in the style sheet for the admin area:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wpcontent</span> select <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>This forces every selectbox to display only one element. I have no idea why this is implemented. There is also a <a href="http://core.trac.wordpress.org/ticket/10331">ticket</a> in the WP tracking system discussing this behaviour since two years. </p>
<p>The solution to this problem is quite easy:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>select style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;height:auto&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;5&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Seems easy but costed me over 1 hour of my lifetime.</p>
<p>The post <a href="http://elektroelch.de/net/the-selectbox-mystery-of-wordpress/">The selectbox mystery of WordPress</a> appeared first on <a href="http://elektroelch.de/net">elektroelch.net</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://elektroelch.de/net/the-selectbox-mystery-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
