[resolved] Change the depth of parent dropdown list (1 post)

  1. tzeldin88
    Posted 4 years ago #

    This is a response to http://wordpress.org/support/topic/change-the-depth-of-parent-dropdown-list?replies=1, but the Topic was already "closed", so i couldn't just reply to that post. (Why is that, by the way??)

    Filter the Parent dropdown (in Admin > Edit page > Page attributes), so it shows ONLY top-level pages. This makes it much easier to find the page you want, assuming your parent-page will always be a top-level page.

    function tz_parent_dropdown($dropdown_args){
    	$dropdown_args['depth'] = 1;
    	return $dropdown_args;

Topic Closed

This topic has been closed to new replies.

About this Topic