WordPress Debug Bar

With version 3.1 of WordPress comes the Admin Bar, which we introduced in a previous article, and this also allows to add your own entries. And so there is, created by the development team of WordPress, a Plugin for additional information available. The Plugin Debug Bar docks on the Admin Bar and gives, with one click on the new menu link, additional details of the installation.
These include the query, cache, PHP messages and hints and tips for obsolete functions.
Continue reading …

Plugin To Add Custom Field To An Attachment In WordPress

5 Day
The media library is on WordPress in some areas, certainly not perfect, but it has great potential. Each attachment can contain various metadata and also WordPress stores some data directly while uploading - for example a part of the Exif data of an image.

However, it might not be enough for you and you need some additional custom data with the attachment, whether in order to control something in the backend of WordPress, or even display the data in the front end to the image. So here is a small tutorial how to add an additional field. You can use this solution directly and adding a new field with the help of a Plugin.
Continue reading …

Create Users Automatically In WordPress

WordPress is a web application by many - often you have to create a bridge to other systems. For example, to give users a single sign-on via the web applications. Therefore, automated creating users might be necessary. Depending on which system is the leader, the data must be synchronized. From past experience, the users are usually created in WordPress, as this is not the leading system for user administration. WordPress has the function wp_insert_user() for the automated creation of users.
Continue reading …

Control WordPress Content via Userrights or Time

WordPress comes with its own user administration, therefore we can control on the basis of various roles and objects the content. In some cases, it is a typical request that you give access to a complete content only to registered users. The same is possible only for parts of the content. There are certainly different possibilities to do this - I'm going to mention some solutions here.
Continue reading …

Custom Post Type and Permalink

Since WordPress 3.0 you can use Custom Post Types and you can define your own types of content - it's more like pages than posts! Thereby you can use automatically the Permalink structure of your WordPress installation. That means, if you create a new post type, you can use Permalinks.

But the Permalinks only work if you recreate the Rewrite Rules of WordPress - that's why many users initially have problems with it. If you create a new post type you probably get a 404 if you open this page because WordPress doesn't know the URL-structure in your Permalinks since you didn't create the Rewrite Rules again.

The easiest way is to safe the Permalink structure in your settings again. Alternatively you can include in your Plugin or Theme the function flush_rewrite_rules(). This enables to create the Rewrite Rules again. Important: Flush rules only on activation or deactivation. Don't do it on any other hook.