Title: WP_MS_Sites_List_Table::pagination
Published: April 25, 2014
Last modified: May 20, 2026

---

# WP_MS_Sites_List_Table::pagination( string $which )

## In this article

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

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

Displays the pagination.

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

 `$which`stringrequired

The location of the pagination nav markup: Either `'top'` or `'bottom'`.

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

    ```php
    protected function pagination( $which ) {
    	global $mode;

    	parent::pagination( $which );

    	if ( 'top' === $which ) {
    		$this->view_switcher( $mode );
    	}
    }
    ```

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

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

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

Displays the pagination.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_ms_sites_list_table/pagination/?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_ms_sites_list_table%2Fpagination%2F)
before being able to contribute a note or feedback.