Hey @tedslater, it’s been a while!
Yes, you could do something like this:
<?php
global $wpdb;
$total_views_count = $wpdb->get_var( "SELECT SUM(pageviews) FROM {$wpdb->prefix}popularpostsdata;" );
echo "<p>Total views count is {$total_views_count}</p>";
?>
Sweet! I’ll give that a shot.
So, when will you release a “Pro” version of this plugin, with additional features accessible through the WordPress dashboard? You know I’ll be your first paid customer. 🙂
Well, I still have to sit down and make a list of stuff that would make good/desirable “pro” features first, then implement the ones that make the most sense for everyone, find/write a licensing system so I can sell license keys to people who might want those features, and only then I’ll be able to release that Pro version 😛 So yeah not anytime soon hahaha.
I get it. Thanks for the quick reply, Héctor. I appreciate the work you’ve put into this plugin, and for making it available to others at no cost.
That code worked perfectly. Thanks again, Héctor.