# Parent Page Column for Pages

> Adds a Parent column to the Pages list with a link to each page's parent, so the structure of a large site is clear even when the list is sorted or searched.

- Type: PHP
- Runs: Admin only
- Category: [Admin](https://wpide.com/library/category/admin/)
- Tags: admin-columns, pages, hierarchy
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/admin-parent-page-column/

## Code

```php
add_filter( 'manage_page_posts_columns', function ( $columns ) {
    $columns['wpide_parent'] = 'Parent';
    return $columns;
} );

add_action( 'manage_page_posts_custom_column', function ( $column, $post_id ) {
    if ( 'wpide_parent' !== $column ) {
        return;
    }
    $parent = (int) wp_get_post_parent_id( $post_id );
    if ( ! $parent ) {
        echo '&ndash;';
        return;
    }
    printf( '<a href="%s">%s</a>', esc_url( get_edit_post_link( $parent ) ), esc_html( get_the_title( $parent ) ) );
}, 10, 2 );
```

## Notes

Top-level pages show a dash.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Parent Page Column for Pages" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
