I don't like WordPress, and I have worked professionally with it for a long time. My post called "WordPress is stupid" consistently gets traffic, unfortunately it doesn't have good content. Fortunately I moved on from WordPress a few years ago.
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
Build a custom WordPress query and order the posts however you want them. Notice that this won't work properly if you page results, so it is only useful in very specific cases. Btw, wrap everything into your class and get rid o the global var when you use this ;-) more
Show the user a useful search form when on a 404 page. Turn the query string into a search. 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
Run the filter whenever you want your post type in the main loop. Add ishome(), iscategory() etc. Example is for the post type 'paste'. more
There's obviously a little context missing for this paste, but the basic idea should be clear ;-) more