wpcom_vip_top_posts_array

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.

Parameters

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?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.