Child missing in REST API
-
Hi, I have created a custom post type called “Projects” and it has a parent and child relationship in it.
However, there is this weird problem, creating a child for a parent project causes the child of the next parent project to disappear from Rest API. This is SUPER WEIRD, I couldn’t figure out why this happens, it doesn’t make sense.
I could get the vanished child to re-appear by deleting the one that is not appearing in rest api, and then create a new child for it (using same page name and slug). But again, the next parent’s child disappears, and this goes on forever, when it reaches the last project, it loops back to the first project (the first project’s child disappear). Hence I will always be missing one children post.
- The topic ‘Child missing in REST API’ is closed to new replies.