Hi,
We check your issue and found your problem.
We have correct this and release in next update.
Currently, you have to add below code as manually.
First open below function.php file with FTP or Cpanel
\wp-content\themes\evolve-plus\functions.php
and add below code at last in function.php file
function evolve_set_post_views() {
global $post;
if ('post' == get_post_type() && is_single()) {
$postID = $post->ID;
if (!empty($postID)) {
$count_key = 'evolve_post_views_count';
$count = get_post_meta($postID, $count_key, true);
if ($count == '') {
$count = 0;
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
} else {
$count++;
update_post_meta($postID, $count_key, $count);
}
}
}
}
add_action('wp_head', 'evolve_set_post_views');
Thanks for your passions
I can see that the code is for “Evolve Plus” theme. Will it work on “Evolve normal” theme?
Hii,
Yes, it works definitely.
Add Above code on wp-content\themes\evolve-lite\functions.php
Thank You
Thank you very much, sir. It worked perfectly. Thanks a lot.