• postviews not working. I made all this settings. Whats “unique id” in this step “<div id=”postviews_lscwp” > </div>”. I didnt change this. Problem is that?

    “To make LiteSpeed Cache compatible with WP-PostViews:

    Replace the following calls in the active theme’s template files with a div or span with a unique ID.

    e.g. Replace
    <?php if(function_exists(‘the_views’ )) { the_views(); } ?>
    with
    <div id=”postviews_lscwp” > </div>
    Update the ajax request to output the results to that div.

    Example:

    jQuery.ajax({
    type:”GET”,
    url:viewsCacheL10n.admin_ajax_url,
    data:”postviews_id=”+viewsCacheL10n.post_id+”&action=postviews”,
    cache:!1,
    success:function(data) {
    if(data) {
    jQuery(‘#postviews_lscwp’).html(data+’ views’);
    }
    }
    });
    The ajax code can be found at

    /wp-content/plugins/wp-postviews/postviews-cache.js
    After purging the cache, the view count should be updating.”

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

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

The topic ‘Wp-Postviews’ is closed to new replies.