Open carlomanf opened 5 years ago
Will need to collect more info on this, i.e. what does show on the gutenberg post parent selector instead of funnel exteriors?
The answer to the above: in v.1.0.3, it shows funnel interiors, and in v1.0.4 and v1.0.5, it gives no other option but (no parent)
The same problem was also happening in the classic editor, which 19dd30c fixed. The problem still persists in the block editor, though.
I've also determined that the change in behaviour from v1.0.3 to v1.0.4 was due to the post type not being registered as hierarchical if it's not strictly an admin request. However, registering it as hierarchical still doesn't fix this issue because the selector still only looks for posts of the same post type. In other words, the same filter that is applied in the classic editor is not used in the block editor.
https://github.com/carlomanf/wp-funnel-manager/commit/28f04bf208871cdb6ce45bd6f996e8cab3afe7b8 ensured that the post parent selector for funnel interiors shows funnel exteriors. However, it only takes effect on the bulk edit screen and does not translate to the gutenberg editing screen.