Tag archive for "custom taxonomy"
This snippet shows how you can add metadata to your existing custom taxonomy. So you can use updatemetadata() and getmetadata() on your taxonomy. The filter on switchblog is only necessary if the code runs on a blog network (recommended to implement anyway). The name of the database table is very … more
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
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 wpispost_revision() part again as well. more