Timeline for How To Read Read Custom Post Type Data in Headless CMS Mode
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 16, 2021 at 21:05 | vote | accept | Volomike | ||
Sep 13, 2021 at 9:19 | comment | added | Tom J Nowell♦ | And you have to register meta to have it show up in the REST API | |
Sep 13, 2021 at 9:18 | comment | added | Tom J Nowell♦ |
Of note, the canonical answer to this is to ensure permalinks are flushed and the CPT in question has show_in_rest set to true, but because you used a plugin to build your post types that solution is unavailable to you. Having said that, custom post types are straight forward and there are code generators online that write the code for you based on inputs and checkboxes. You don't need a plugin to auto-register post types for you
|
|
Sep 13, 2021 at 9:16 | comment | added | Tom J Nowell♦ | I thought you had used it then abandoned it based on your question. 3rd party plugin support is off topic here. This is not a place to get help with the Custom Post Types plugin. | |
Sep 13, 2021 at 4:21 | history | edited | Volomike | CC BY-SA 4.0 |
added 6 characters in body
|
Sep 13, 2021 at 1:31 | answer | added | Volomike | timeline score: 0 | |
Sep 13, 2021 at 1:16 | history | edited | Volomike | CC BY-SA 4.0 |
deleted 76 characters in body
|
Sep 13, 2021 at 1:14 | comment | added | Volomike | @TomJNowell I'm using the Custom Post Types plugin from TotalPress.org, which saves me the coding. It is doing the registering. I also figured out why the /staff wasn't working in the API -- it was how I declared it. I'll be editing this post on that part, at least. I just can't get the custom fields. | |
Sep 13, 2021 at 0:39 | comment | added | Tom J Nowell♦ | have you declared that they're available via rest api when registering? There is no code in your question | |
Sep 12, 2021 at 23:50 | history | asked | Volomike | CC BY-SA 4.0 |