Anyone know a way round this?
http://wordpress.org/support/topic/set-draft-page-as-parent
I can’t risk publishing as a public-facing system updates periodically from the same install.
Anyone know a way round this?
http://wordpress.org/support/topic/set-draft-page-as-parent
I can’t risk publishing as a public-facing system updates periodically from the same install.
You must be logged in to post a comment.
This works for me:
There is one way to do this, but it’s kind of wonky. Instead of not publishing the page, you can hide the content.
Make a theme template named HidePageTemplate.php. On the page you want hidden change your template file to whatever you named your template
In the template copy the structure of the 404 page. This way the page is published, so the child pages are published, but the content isn’t visible.
/*
Template Name: Hide Page Template
*/
get header
404-Not Found
get sidebar
get footer
I am facing the same problem, and the only solution I can think of without having to hide to content or edit the php (as previously suggested) is this:
Create all of the pages as drafts and once they are ready to be published, publish them and immediately go back in and change the child pages to the correct parent page.
There is the Inclusive Parents plugin – but it hadn’t been updated for 5 years now – so it won’t support Gutenberg either (see this comment).
It would be nice if someone could make a new WordPress plugin that is maintained and has Gutenberg support.
When using Gutenberg Editor, you can use the
rest_page_query
filter and add the draft status in the query parameters :You can’t use unpublished pages as parents (or as a static front page, for that matter).
Eileen has, I think, a very elegant workaround.