Title: WP_Themes_List_Table::tablenav
Published: April 25, 2014
Last modified: May 20, 2026

---

# WP_Themes_List_Table::tablenav( string $which = 'top' )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_themes_list_table/tablenav/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_themes_list_table/tablenav/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_themes_list_table/tablenav/?output_format=md#related)

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_themes_list_table/tablenav/?output_format=md#parameters)󠁿

 `$which`stringoptional

Default:`'top'`

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

    ```php
    public function tablenav( $which = 'top' ) {
    	if ( $this->get_pagination_arg( 'total_pages' ) <= 1 ) {
    		return;
    	}
    	?>
    	<div class="tablenav themes <?php echo $which; ?>">
    		<?php $this->pagination( $which ); ?>
    		<span class="spinner"></span>
    		<br class="clear" />
    	</div>
    	<?php
    }
    ```

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

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

| Used by | Description | 
| [WP_Themes_List_Table::display()](https://developer.wordpress.org/reference/classes/wp_themes_list_table/display/)`wp-admin/includes/class-wp-themes-list-table.php` |

Displays the themes table.

  |

## User Contributed Notes

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