28 reputation
5
bio website
location
age
visits member for 2 years, 2 months
seen Nov 13 at 3:22

Nov
7
awarded  Popular Question
Dec
5
awarded  Supporter
Dec
5
accepted How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
Dec
5
comment How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
@brasofilo Indeed there is. At the time I did not have the requisite reputation to actually +1 anything. However, I've now returned from Hogwarts to give proper credit to the answer.
Nov
4
awarded  Scholar
Nov
4
comment Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
No problem, will do.
Nov
4
revised Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
edited body
Nov
4
accepted Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
Nov
4
answered Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
Oct
17
comment How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
+1 Yes, that works - thanks! I will point out to other interested people that this snippet ONLY restricts the user's ability to nest pages below depth X. This does not prevent existing pages (which have already been designated as children of children [of children of etc...]) from appearing in the list of pages in the admin console, nor from being publicly accessible via its URL. (This may or may not be the behaviour what you are looking for.)
Oct
17
comment How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
I wasn't aware of the page_attributes_dropdown_pages_args hook. I'll try it and post back. Thanks.
Oct
17
asked How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
Oct
17
revised Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
Solving the problem.
Oct
12
awarded  Editor
Oct
12
revised Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
Added an update to provide further context.
Oct
11
awarded  Student
Oct
11
asked Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error