Get the WP.com top posts

Reproduces the result of /wp-admin/index.php?page=stats&blog=&view=postviews&numdays=30&summarize returning the top 10 posts if called with default params.


Name Type Description
$num_days int The length of the desired time frame. Default is 30. Maximum 90 days.
$limit int The maximum number of records to return. Default is 10. Maximum 100.
$end_date string The last day of the desired time frame. Format is 'Y-m-d' (e.g. 2007-05-01) and default is UTC date.

Return Value

array: Result as array.

Ready to get started?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.