<?php if(function_exists('the_views')) { the_views(); } ?>
Views satırını yanlış ekliyorsun sanırım yukardaki gibi olmalı tema dosyanı eklersen daha fazla yardımcı olabilirim.
https://www.dosyaupload.com/fvPE 86. satır hocam.
yapılmak istenen:
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="+viewsCach eL10n.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.