[Resolved] [Plugin: Filter Pages by parent in admin] Filter appears at All Posts too
Your filter is very useful but it appears on the edit page for posts too (/wp-admin/edit.php, without any argument). As posts are not hierarchical and not assigned to parent pages this does make no sense. Calling the function get_post_type_object($post_type) you can check the returned object if it has the property ‘hierarchical’. This may help to restrict the display of your filter to such type of (custom) post types.
- The topic ‘[Resolved] [Plugin: Filter Pages by parent in admin] Filter appears at All Posts too’ is closed to new replies.