Tag archive for "custom-taxonomy"

Custom taxonomy with meta data

This snippet shows how you can add metadata to your existing custom taxonomy. So you can use update_metadata() and get_metadata() on your taxonomy. The filter on switch_blog is only necessary if the code runs on a blog network (recommended to implement anyway). The name of the database table is very ... more

A Better Related Posts Plugin

There are many plugins that find related posts for WordPress, and I was happy to use one of them in the past. However, WordPress evolves. One of the biggest change was the addition of custom post types. They are very useful and I use them a lot for my own ... more

WordPress rewrite rule for custom taxonomies

This makes it possible to have the taxonomy below some post type slug, e.g. the post type is at /cars/ and taxonomies are at /cars/manufacturer/, /cars/year-of-construction/ etc. You want to register the taxonomy with the same $slug. more

Better Lorem Ipsum Generator for WordPress

When you create WordPress plugins and themes it is often a good thing to test them on blogs with much data. Since 3.0 I use custom post types and custom taxonomies a lot and couldn't find a plugin that autogenerates them. Hence I wrote a new plugin. Features: Automatically create ... more

Automatically tag and categorize WordPress posts on save

The function should probably check if the post already has the tag/category before adding it a second time. I should probably look into the wp_is_post_revision() part again as well. more