wpcom_vip_get_most_shared_posts

Get the most shared posts of the current blog, ordered DESC by share count

Parameters

Name Type Description
$limit int Optional. Number of posts to retrieve. Defaults to 5.
$cache_duration int Optional. Length of time to cache the query. Defaults to 3600.

Return Value

array: Array of most shared post IDs

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.