{"action":"created","issue":{"url":"https://api.github.com/repos/jjgrainger/wp-custom-post-type-class/issues/28","labels_url":"https://api.github.com/repos/jjgrainger/wp-custom-post-type-class/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jjgrainger/wp-custom-post-type-class/issues/28/comments","events_url":"https://api.github.com/repos/jjgrainger/wp-custom-post-type-class/issues/28/events","html_url":"https://github.com/jjgrainger/wp-custom-post-type-class/issues/28","id":64861251,"number":28,"title":"Register taxonomies first?","user":{"login":"FriendlyWP","id":781725,"avatar_url":"https://avatars.githubusercontent.com/u/781725?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendlyWP","html_url":"https://github.com/FriendlyWP","followers_url":"https://api.github.com/users/FriendlyWP/followers","following_url":"https://api.github.com/users/FriendlyWP/following{/other_user}","gists_url":"https://api.github.com/users/FriendlyWP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendlyWP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendlyWP/subscriptions","organizations_url":"https://api.github.com/users/FriendlyWP/orgs","repos_url":"https://api.github.com/users/FriendlyWP/repos","events_url":"https://api.github.com/users/FriendlyWP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendlyWP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-27T22:13:08Z","updated_at":"2015-03-28T12:33:33Z","closed_at":null,"body":"Thanks for this class, very useful!\r\n\r\nOne note, in order to ensure taxonomy permalinks always work, it's useful to switch lines 168 and 171, so that the taxonomies are registered first. Bizarre but true, see this post: http://clarknikdelpowell.com/blog/the-right-way-to-do-wordpress-custom-taxonomy-rewrites/\r\n\r\nIn the current configuration, taxonomy slugs that include a path (\"books/genre\") instead of just a simple slug (\"genre\") get created correctly, but result in 404's when you surf to them. Swap so taxonomies are registered first, and they work."},"comment":{"url":"https://api.github.com/repos/jjgrainger/wp-custom-post-type-class/issues/comments/87219469","html_url":"https://github.com/jjgrainger/wp-custom-post-type-class/issues/28#issuecomment-87219469","issue_url":"https://api.github.com/repos/jjgrainger/wp-custom-post-type-class/issues/28","id":87219469,"user":{"login":"jjgrainger","id":904708,"avatar_url":"https://avatars.githubusercontent.com/u/904708?v=3","gravatar_id":"","url":"https://api.github.com/users/jjgrainger","html_url":"https://github.com/jjgrainger","followers_url":"https://api.github.com/users/jjgrainger/followers","following_url":"https://api.github.com/users/jjgrainger/following{/other_user}","gists_url":"https://api.github.com/users/jjgrainger/gists{/gist_id}","starred_url":"https://api.github.com/users/jjgrainger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjgrainger/subscriptions","organizations_url":"https://api.github.com/users/jjgrainger/orgs","repos_url":"https://api.github.com/users/jjgrainger/repos","events_url":"https://api.github.com/users/jjgrainger/events{/privacy}","received_events_url":"https://api.github.com/users/jjgrainger/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T12:33:33Z","updated_at":"2015-03-28T12:33:33Z","body":"Interesting! I'll get to this today/tomorrow when I get 5mins.\r\n\r\nThanks :)"}}