wp-usersonline is stuttering
-
On my blog https://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, and in separate
- tags. I’ve also tried placing line breaks before the usercount. None of that works.
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:
-
<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>
<?php endif; ?>
<br style=”clear:both” />
<div id=”useronline-count”> <?php get_useronline(); ?></div>
- The topic ‘wp-usersonline is stuttering’ is closed to new replies.