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


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?

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.