I have a website here with a lot of content and with the content where is necessary to create pages in hierarchy. But it is uncomfortable to go through the dropdown in the administration with a lot of pages. So my point is – in the admin at the moment i create/edit page and need to select the parent page from the list, I want to somehow filter or limit or search the list of possible parent pages. Thank you!
Leave a Reply
You must be logged in to post a comment.
Not sure if this will help, but I have used the code on the following page to add a parent page filter to the list of pages:
http://www.finalwebsites.com/add-a-parent-pages-filter-function-your-wordpress-admin-section/
Very handy if you have a parent page for each section.
There is just one problem – it only returns the children not grandchildren etc. I am just now trying to figure out how to get it to return results at all depths.
If you are using
wp_dropdown_pages
, then use the argumentexclude_tree
to exclude a parent and all of that parent’s child Pages. See here for an explanation of all arguments : http://codex.wordpress.org/Function_Reference/wp_dropdown_pagesFound a plugin but haven’t tried it: Parent Page Filter.
The following function can show children of site-root-level pages. This is useful for many instances, but unfortunately not useful if you want to filter for children of any page that is not at site root. I don’t know PHP or WP well enough to suggest how to make this work on any page, instead of site-root-level pages.
Source
I assume this answer was first attempting to link to this page, but the link was dead. Found live link through Google.