Call to a member function add_rewrite_tag() on null

While I don’t like taking credit for someone else’s answer, I also don’t like leaving a question without answer when the answer does exist and it’s already been given.
I hope Milo won’t mind if I copy the answer from his comment.

The register_taxonomy calls should be hooked to init.

Leave a Comment