Lessons Learned

I encountered this error while building a custom post type and taxonomy: Fatal error: Call to a member function add_rewrite_tag() on a non-object I’d written lots of custom CPTs before using the same syntax without any issues. The problem ended up being calling these functions too early in WordPress’s execution. In my case, I had […]