Support » Plugin: WP-PostViews » Showing "0 Views" on all themes

  • Resolved behzadg

    (@behzadg)


    Hi,

    I’ve just installed plugin and added code to loop and single.php, first time it’s works but when i deactivated plugin and re-activate again, it’s stoped working and allways showing 0 Views.

    Yes my theme have wp_head and wp_footer. also i’ve checked this on default wordpress themes and still not working.

    any help ?!

    https://wordpress.org/plugins/wp-postviews/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Lester Chan

    (@gamerz)

    You might want to check if there is duplicated “views” custom field in the post edit page. Normally when it shows 0, there is another theme of plugin using the same “views” custom field.

    Thread Starter behzadg

    (@behzadg)

    Thnaks for your response.

    fixed on my live server, but on localhost i’ve checked there is just one “views” custom field in my post but still showing 0

    Plugin Author Lester Chan

    (@gamerz)

    Any caching plugin being used? In WP-Admin -> Settings -> PostViews, what is the value of “Count Views From:”?

    Thread Starter behzadg

    (@behzadg)

    Hi again,

    Working fine 🙂 Thanks

    One question: can this plugin run after play jplayer with this code:

    jQuery(".music").bind($.jPlayer.event.play, function(event) {
    	$.ajax({
    		url: '/numberOfPlays.php',
    		type: 'POST',
    		data: 'mp3id=' + $('.music li.play').attr('mp3'),
    		success: function(result){
    			console.log( result );
    		},
    		error: function(result){
    			console.log( result );
    		}
    	});
    });

    Cheers

    Plugin Author Lester Chan

    (@gamerz)

    No because the views are counted before the page is loaded.

    Thread Starter behzadg

    (@behzadg)

    Thanks for your great support. I found another solution with like button plugin for count number of plays. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Showing "0 Views" on all themes’ is closed to new replies.