Opened 3 years ago
Closed 3 years ago
#12643 closed defect (bug) (fixed)
Can't build hierarchy of hierarchical custom post types
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Post Types | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: | steph@… |
Description
You can't actually create a hierarchy of hierarchical custom post types, because when 'page-attributes' is supported, pages are shown in the parent dropdown no matter what content type you're looking at. Get_pages() supports hierarchical content types now (see #12600), so this should be possible.
Also, the quick edit feature doesn't work at all for hierarchical types, so there's no way to choose a parent there.
(Related to #9674.)
Change History (13)
The Rewrite rules for custom post_types do not support hierachial querying either.
I've got a patch in the works for this, After that, I'll look into the UI side of things to see what needs to be updated there.
comment:7
automattor — 3 years ago
- Resolution set to fixed
- Status changed from new to closed
That covers all the reported issues here i believe, re-open if one was missed.
In the future, it'd be appreciated if you can separate out issues when reporting (Parent selection not possible vs. Quick Edit being broken)
- Resolution fixed deleted
- Status changed from closed to reopened
Working beautifully. I found one tiny UI bug. In Safari, using quick edit, the template dropdown appears with a blank default choice. When you pull it down, Default Template is the first option and there is no blank one, but for some reason Default is not showing until you choose it explicitly.
comment:10
dd32 — 3 years ago
In Safari, using quick edit, the template dropdown appears with a blank default choice.
Can you test that on the other pages? (For example, Edit Pages)
That might be best off reported in another ticket if it affects other edits as well.
comment:11
sillybean — 3 years ago
- Resolution set to fixed
- Status changed from reopened to closed
Quite right, it does affect pages as well. Opened as #12653; closing this one. Thanks!
comment:12
aaroncampbell — 3 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
I recently upgraded to the latest nightly (I was about 10 days behind), and [13744] seems to be causing a warning for me. Specifically this error:
Warning: Illegal offset type in isset or empty in /var/www/vhosts/xavisys.com/httpdocs/clients/gfa/wp-includes/query.php on line 1715
comment:13
dd32 — 3 years ago
- Resolution set to fixed
- Status changed from reopened to closed
Specifically this error:
See #12704

The Rewrite rules for custom post_types do not support hierachial querying either.