# NO BUG: MetaBox CPT hierarchical children Invalid Post Type

**URL:** <https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550>\
**Category:** Bugs\
**Created:** [January 24, 2023, 8:55pm UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550 "2023-01-24T20:55:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://forum.bricksbuilder.io/u/dan)\
**Post date:** [January 24, 2023, 8:55pm UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550/1 "2023-01-24T20:55:41Z")

</div>

**Bricks Version** : 1.6.2

Cannot edit children of MetaBox CPT’s - gives Invalid post type Error

Steps to Replicate:

1. Use Meta Box to add a CPT
2. Add a post and check you are able to edit using Bricks
3. Add a post and set as child to first CPT post
4. Try to edit child post in Bricks
5. Get Invalid post type error

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 2, 2023, 10:25am UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550/2 "2023-02-02T10:25:57Z")

</div>

Hi Dan,  
Thanks so much for your report!

I haven’t tried to replicate the issue yet, but have you re-saved your permalinks after adding the CPT?  
That might solve the “invalid post type” error. Please let me know if it helps, otherwise I’ll investigate deeper.

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![dan](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://forum.bricksbuilder.io/u/dan)\
**Post date:** [February 2, 2023, 10:28am UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550/3 "2023-02-02T10:28:18Z")

</div>

yes i have tried re-saving permalinks and also cleared cache too.

Spun up a brand new site last night and the issue still persists. For me anyhow

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 2, 2023, 10:52am UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550/4 "2023-02-02T10:52:40Z")

</div>

Hey,  
I followed your steps and created a CPT “Artists”, re-saved the permalinks, and can edit child posts as usual as you can see:

 ![CleanShot 2023-02-02 at 11.47.29@2x](https://forum.bricksbuilder.io/uploads/default/original/2X/9/937665d37665e66d52fbda63901f5b160f4d4707.png)

1. Do you have any custom code or other plugins installed that might influence the permalink behavior?
2. Can you provide us with login credentials (please send them + a link to this thread to [help@bricksbuilder.io](mailto:help@bricksbuilder.io) using the email address from purchasing Bricks)?

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![dan](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://forum.bricksbuilder.io/u/dan)\
**Post date:** [February 2, 2023, 10:51pm UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550/5 "2023-02-02T22:51:33Z")

</div>

Hmm, interesting.

I tried this on 3 different sites and did not work on any of them, even after saving permalinks.

Let me spin up some new sites and test some more over the weekend

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 7, 2023, 8:36am UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550/6 "2023-02-07T08:36:49Z")

</div>

Hey Dan,  
Any news on the issue?

---

<div class="post-metadata">

**Author:** ![dan](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://forum.bricksbuilder.io/u/dan)\
**Post date:** [February 7, 2023, 9:53am UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550/7 "2023-02-07T09:53:10Z")

</div>

I have spun up a couple of new sites and not getting this error. There is 1 site that is still causing problems but i suspect it is something with a plugin. Getting lots of errors on this site tbh so it could be anything.

Happy for this to be marked as no bug though as a new clean install is working as intended.

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [February 8, 2023, 2:45pm UTC](https://forum.bricksbuilder.io/t/no-bug-metabox-cpt-hierarchical-children-invalid-post-type/9550/8 "2023-02-08T14:45:32Z")

</div>

Thanks for getting back!
