Timeline for Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 5, 2017 at 8:52 | comment | added | deathlock |
@Milo: Ah yes, that's a typo (had to translate it from my language to make more sense). By the way, setting the hierarchical to false fixes it for now. Thanks! Would be nice if there's a way to allow hierarchical taxonomy though. :)
|
|
Jul 5, 2017 at 3:11 | comment | added | Milo |
I assume "tyoe" in register_taxonomy is a typo? The problem is "hierarchical" => true in your taxonomy. Those rewrite rules are capturing the request for single publication posts, it's looking for a type term matching your post name. You can fix it immediately if you just set "hierarchical" => false . If you really want a hierarchical taxonomy, it'll get a little more complicated.
|
|
Jul 5, 2017 at 2:22 | history | edited | deathlock | CC BY-SA 3.0 |
added 7 characters in body
|
Jul 5, 2017 at 2:13 | comment | added | deathlock | @Milo edited, added the relevant CPT, custom taxonomy, and permalink setting. | |
Jul 5, 2017 at 2:12 | history | edited | deathlock | CC BY-SA 3.0 |
added 3693 characters in body
|
Jul 5, 2017 at 1:18 | comment | added | Milo | if the questions you linked work, and your version doesn't, there would seem to be some difference, however most of the code you're using is not shown here, so it's difficult to say what that is. | |
Jul 4, 2017 at 20:11 | history | asked | deathlock | CC BY-SA 3.0 |