On my blog http://thegreatgeekmanual.com/blog/ I have four functions in my sidebar under the heading "Statistics":
<?php mdv_post_word_count(); ?>
<?php postCountMinusCat('19') ?><?php mdv_comment_count(); ?>
<?php get_useronline(); ?>
When I reload a page quickly, or open multiple pages quickly, the usersonline counter (from the wp-online plugin) displays twice, with two different counts. What's more, the two functions on the line above it aren't displayed at all.
I've tried putting the two lines in seperate <div> tags, in different
- tags. I've also tried placing line breaks before the usercount. None of that works.
-
<h2><?php _e('Statistics'); ?></h2>
<ul class="no-splitted">
<?php if (function_exists('useronline')): ?> - Blog-Wide Word Count: <?php mdv_post_word_count(); ?>
- <div id="useronline-count">Total Posts: <!--<?php postCountMinusCat('19') ?>--><?php mdv_post_count(); ?>, Total Comments: <?php mdv_comment_count(); ?></div>
I realize that this is probably too specific a problem for anyone to know the exact answer, but any suggests are welcome. I've posted the complete code below:
<?php endif; ?>
<br style="clear:both" />
<div id="useronline-count"> <?php get_useronline(); ?></div>