Title: WP_List_Table::display
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_List_Table::display()

## In this article

 * [More Information](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#wp--skip-link--target)

Displays the table.

## 󠀁[More Information](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#more-information)󠁿

Call this method to render the completed list table to the page.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#source)󠁿

    ```php
    	public function display() {
    		$singular = $this->_args['singular'];

    		$this->display_tablenav( 'top' );

    		$this->screen->render_screen_reader_content( 'heading_list' );
    		?>
    <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
    		<?php $this->print_table_description(); ?>
    	<thead>
    	<tr>
    		<?php $this->print_column_headers(); ?>
    	</tr>
    	</thead>

    	<tbody id="the-list"
    		<?php
    		if ( $singular ) {
    			echo " data-wp-lists='list:$singular'";
    		}
    		?>
    		>
    		<?php $this->display_rows_or_placeholder(); ?>
    	</tbody>

    	<tfoot>
    	<tr>
    		<?php $this->print_column_headers( false ); ?>
    	</tr>
    	</tfoot>

    </table>
    		<?php
    		$this->display_tablenav( 'bottom' );
    	}
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-wp-list-table.php#L1613)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-wp-list-table.php#L1613-L1647)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_List_Table::print_table_description()](https://developer.wordpress.org/reference/classes/wp_list_table/print_table_description/)`wp-admin/includes/class-wp-list-table.php` |

Print a table description with information about current sorting and order.

  | 
| [WP_List_Table::display_rows_or_placeholder()](https://developer.wordpress.org/reference/classes/wp_list_table/display_rows_or_placeholder/)`wp-admin/includes/class-wp-list-table.php` |

Generates the tbody element for the list table.

  | 
| [WP_List_Table::display_tablenav()](https://developer.wordpress.org/reference/classes/wp_list_table/display_tablenav/)`wp-admin/includes/class-wp-list-table.php` |

Generates the table navigation above or below the table

  | 
| [WP_List_Table::get_table_classes()](https://developer.wordpress.org/reference/classes/wp_list_table/get_table_classes/)`wp-admin/includes/class-wp-list-table.php` |

Gets a list of CSS classes for the [WP_List_Table](https://developer.wordpress.org/reference/classes/wp_list_table/) table tag.

  | 
| [WP_List_Table::print_column_headers()](https://developer.wordpress.org/reference/classes/wp_list_table/print_column_headers/)`wp-admin/includes/class-wp-list-table.php` |

Prints column headers, accounting for hidden and sortable columns.

  |

| Used by | Description | 
| [wp_ajax_search_install_plugins()](https://developer.wordpress.org/reference/functions/wp_ajax_search_install_plugins/)`wp-admin/includes/ajax-actions.php` |

Handles searching plugins to install via AJAX.

  | 
| [wp_ajax_search_plugins()](https://developer.wordpress.org/reference/functions/wp_ajax_search_plugins/)`wp-admin/includes/ajax-actions.php` |

Handles searching plugins via AJAX.

  | 
| [display_themes()](https://developer.wordpress.org/reference/functions/display_themes/)`wp-admin/includes/theme-install.php` |

Displays theme content based on theme list.

  | 
| [display_plugins_table()](https://developer.wordpress.org/reference/functions/display_plugins_table/)`wp-admin/includes/plugin-install.php` |

Displays plugin content based on plugin list.

  | 
| [post_comment_meta_box()](https://developer.wordpress.org/reference/functions/post_comment_meta_box/)`wp-admin/includes/meta-boxes.php` |

Displays comments for post.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_list_table/display/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_list_table%2Fdisplay%2F)
before being able to contribute a note or feedback.