I wanted to show the number of visits per post using the statistics recorded by the CyStat plugin. This appeared to be quite simple, because there exists a suitable template function. I just added the following line to my WordPress theme to make it working:

<div><span><?php cystats_getPostVisitsByID($post->ID, $showmode=TRUE); ?> Visits</span></div>
[Print]

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WP Hashcash

© 2010 Marcel Suffusion WordPress theme by Sayontan Sinha
Bear