-
·
Hide the password hiding stars
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!
-
·
Why you should use pagebar for your blog
You may ask yourself “Why should I use pagebar, the newer versions of the WordPress default themes already contain page navigation.” Here an example that may convince you that pagebar is the better choice.
-
·
New version of pagebar released (v2.60)
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…
-
·
WordPress: Publishing posts in the past
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 “Add new post” in the metabox “Publish” the following entry: If you click on Edit a field appears in…
-
·
WordPress: Get IDs of *ALL* post tags
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…
-
·
Yet another rant about bad WordPress plugin programming habits
The other day I came across a plugin that provided some useful functions to WordPress but is so badly coded that I can’t recommend it to anyone to use it. Though there are a lot of blog posts ranting about people “doing it wrong” this not be named plugin does so many things wrong in…
-
·
My favorite Greasemonkey-Script
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’s Google Reader subscribe. What does it do? Every blog, almost every news site, and many other web sites provide RSS feeds. They are…
-
·
The selectbox mystery of WordPress
The other day I wanted to use a selectbox with 5 elements in my plugin’s option page. No problem I thought: What everybody including me expects is something like this: But I actually got this: The mystery lies in the style sheet for the admin area: #wpcontent select { padding: 2px; height: 2em; font-size: 12px;…
-
·
WordPress: Shorten title
A frequently asked question in WordPress forum is how to shorten the title of a post to a predefined number of characters and to append a “…”. The problem is solved with a few lines of code: add_filter( ‘the_title’, ‘short_title’ ); function short_title( $title ) { $chars = 20; if ( strlen( $title ) >…
