Title: Wp-Postviews
Last modified: February 3, 2019

---

# Wp-Postviews

 *  Resolved [Necip F. YAZICI](https://wordpress.org/support/users/necfya/)
 * (@necfya)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wp-postviews-5/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-postviews-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wp-postviews-5/#post-11165759)
 * Hi [@necfya](https://wordpress.org/support/users/necfya/), your pageview admin
   ajax is returning an empty string, please check is “Use AJAX To Update Views”
   turned [ON] on `Settings > PostViews`
 *  Thread Starter [Necip F. YAZICI](https://wordpress.org/support/users/necfya/)
 * (@necfya)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wp-postviews-5/#post-11167141)
 * Use AJAX To Update Views:YES
    its already YES but not working
 *  Thread Starter [Necip F. YAZICI](https://wordpress.org/support/users/necfya/)
 * (@necfya)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wp-postviews-5/#post-11167175)
 * Im not sure but my website link was starting HTTP. I installed SSL. I thinks 
   its not working since I installed SSL. Im not sure but maybe this is reason.
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/wp-postviews-5/#post-11175133)
 * Hi [@necfya](https://wordpress.org/support/users/necfya/), could you please [join our Slack channel](https://goo.gl/FG9S4N)
   or [submit a ticket here](https://store.litespeedtech.com/store/submitticket.php)
   for helping us to reproduce the bug, thanks!

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

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

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/wp-postviews-5/#post-11175133)
 * Status: resolved