On my WordPress blog, I’d like each blog post to show P, the pageview count of that blog post in the past N days.
N would be the same number across the entire blog e.g. 30 as in ‘the past 30 days.’
P is specific to each blog post, so would be different for each post.
What would be the simplest way to call the Piwik API in PHP to display P in my WordPress theme?