1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BAW Post Views Count Not Incrementing

Discussion in 'Blogging' started by ChanzGrande, Dec 8, 2015.

  1. ChanzGrande

    ChanzGrande Elite Member

    Joined:
    Feb 16, 2008
    Messages:
    2,487
    Likes Received:
    1,177
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    Got a tube site using Tubeace theme which I purchased recently, but for some reason the post counts never increment. I'm using one of the tubeace default themes. I guess I thought this function would just work out of the box. Can someone let me know how to resolve this issue?

    I've researched to see if this is an issue related to my caching plugin WP-Super-Cache, and that appears as though it might an issue, or maybe it's that I use cloudflare CDN services. Who knows? I just know it looks real stupid when people try to sort a tubesite by views, and the page that comes up says "nothing found."

    Hoping someone else has already faced this demon down, and conquered it.

    Thanks!
     
  2. wpsoul

    wpsoul Junior Member

    Joined:
    Oct 15, 2015
    Messages:
    100
    Likes Received:
    15
    If post view script works without ajax - it will not work with Wp super cache.
     
  3. ChanzGrande

    ChanzGrande Elite Member

    Joined:
    Feb 16, 2008
    Messages:
    2,487
    Likes Received:
    1,177
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    Hey, thanks for weighing in. The plugin does work with Ajax. I was finally able to resolve this issue by placing the code below into a custom-functions.php file in theme I am using.

    Code:
    add_action('wp_head', 'bawpvc_main');
    I have posted the solution I used in case anybody else faces a similar situation.
     
    • Thanks Thanks x 1