WordPress: New Version 0.5 of LinkList plugin

For a long time there was no update of my Linklist plugin because it simply worked, no need for a change. The other day I got a request to expand the functionality and I agreed to the proposal.

Version 0.5 now contains the option to include/exclude individual posts or pages from displaying the linklist:

linklist-addnew

The plugin still assumes that you want to add the linklist ater each post or page because that’s why you installed the plugin after all. Nevertheless you can disable the list by de-selecting the provided checkbox.

If you want to change the display for an existing post/page you not need to go to the posts edit page but can easily do it using the Quick edit feature:

linklist-quickedit

I decided to use a drop down menu instead of a check box because WordPress renders the edit screen in a wilful manner and it can’t be manipulated (Can it? Drop me a mail!).

To change the display of the linklist for a large amount of posts/pages you do not need to edit every single post/page individually but can use the Bulk Edit feature:

linklist-bulkedit-1

(If you don’t know how to use Quick or Bulk Edit you can learn it on wordpress.tv.)

You can update your installation by using WordPress’ own update feature or by downloading it from the repository.




WordPress – You’ve got updates!

On March, 11th an update of the popular plugin “WordPress SEO” was published because the previous version contains serious security vulnerabilities (CSRF and blind SQL injection).
During the day some people noted that Yoast didn’t use all possible channels to call attention to the situation.

I personally couldn’t understand the problem because I already had installed the new version before noon. How could this be?

New version of Linklist (v0.4) WordPress plugin

A user of my WordPress plugin Linklist wanted to use it in conjunction with a Like/Unlike plugin.

Unfortunately Linklist also listed the like/unlike links of the plugin and put the list behind the Like icon:

linklist1

This is not the way it’s supposed to be. So I added two more options:

  1. You can define several class names of DIVs that will be excluded from being searched by Linklist. This option will also deal with incomplete DIVs (<div> without any closing div).
  2. You can set the priority of the plugin. This will enable Linklist to collect the links and add the list in the post before other plugins are adding their own content to the post.

In the above example the result will look like this:

linklist2

… and yes, Linklist is compatible with WordPress 3.8.

Minor update to pagebar plugin (v2.65)

The last update to the pagebar plugin has been made over a year ago. Since all new ideas will be included in version 3 and the plugin was working fine with every new update of WordPress there was no need for an update.

The other day Borisa Djuraskovic of “Webhosting Hub” wrote me an email that he has created a Serbian language file. This was a good opportunity to introduce a small feature that was spinning in my head for some time:

New ideas for pagebar v3 – Part 2: Customization by Drag’n Drop

Though pagebar is quite customizable you can’t define the overall look. “Previous page” is always on the most left, followed by “First” and so on but maybe you want the elements in a different order. I’m not aware that any of the paging plugins provide this feature, pagebar hopefully will do so in the next major version.

Ideas for pagebar v3 – Part 1: Direct page access

It’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 a selection box containing all page numbers. This might work if you’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:

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 activate the new layout you have to copy the included file pagebar.css to your current theme.

2.

I took the advice of Pippin and added some actions:

  • pagebar_before/pagebar_after (This action is executed before and after every kind of pagebar)

Additionally every bar has an action of its own:

  • postbar_before/postbar_after, commentbar_before/commentbar_after, multipagebar_before/multipagebar_after

3.

One of the main problems of the automagic insertion of postbbar was a second query in the sidebar displaying “Recent posts” that is used by many themes. Version 3.3 introduced a new function called “is_main_query” which enables the plugins to display the postbar only after the main main query. I hope this works for all themes because @toscho thinks that the function has some issues.

4.

Finally there is a new translation for pagebar: Romanian (ro_RO). I received the translation ages ago, excuses go to Web Geek Science

Links:

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 which you can enter the desired publishing date:

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 OK because otherwise the new date isn’t used when you publish the post:

If you press Publish the post will be published with the date set above:

Update: Monika Thon-Soun advised me that this practice may not be suitable if you’re focusing on search engine ranking since the subsequent entry may confuse Google et al.

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:

The variable $chars has to be set to the number of characters you want to have in your title and in line 6 you have to define the text to replace the omitted part of the title (&hellip; is the typographically correct version of three points, called ellipse).

It’s a bit disadvantageous that the title could be cut in the middle of a word. If you like you can extend the function accordingly:

If you copy the function into the file functions.php of your theme all calls of the_title will return the shortened title.