<?php get_totalviews(); ?>
Thread Starter
Jiwang
(@jiwang)
tq for the code but how can i convert unit to K M ?
example 1k, 1.5k, and 1M count
The plugin doesn’t have function to do that. You can google (google is your best friend) for the code and put inside the function. The convert_count is just an example.
<?php echo convert_count( get_totalviews( true ) ); ?>
Note the use of true inside the function this time round because you want it to return and not echo it.
Thread Starter
Jiwang
(@jiwang)
i can’t find the best solution.. always get white screen
can you give url tutorial for this ?