• Resolved feedpoint24x7

    (@feedpoint24x7)


    Hi,
    In the evolve tab widget, “Recent Posts” are working fine. But “Popular Posts” are not showing any posts.

    I set it according to “Highest views”.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter feedpoint24x7

    (@feedpoint24x7)

    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

    • This reply was modified 8 years, 3 months ago by savanipriyank.
    Thread Starter feedpoint24x7

    (@feedpoint24x7)

    Thank you very much, sir. It worked perfectly. Thanks a lot.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Evolve Tab Error’ is closed to new replies.