Add Already Registered Custom Taxonomy To Custom Post Type

Posted on Leave a commentPosted in wordpress

If you have already defined your custom taxonomy in another plugin and want to use it in a custom post type that you might register in a second plugin, you’ll need to add something like this in your custom post type definition. The ‘register_taxonomy_for_object_type($taxonomy, $object_type)‘ function is quite nifty. I’ve also used it to enable […]

WordPress Gitignore

WordPress Gitignore

Posted on Leave a commentPosted in wordpress

Wondering how git fits into your WordPress dev workflow? Here’s a great little file to help you get started – WordPress gitignore. Don’t know what a gitignore file is for? Read up on the gitignore file on the git manual. This version of my .gitignore for WordPress assumes you want to manage your WordPress git […]