Etkin temanın şablon dosyalarındaki aşağıdaki çağrıları, benzersiz bir kimliğe sahip bir div veya span ile değiştirin.
örneğin
<?php if(function_exists('the_views' )) { the_views(); } ?>ile
<div id="postviews_lscwp" > </div>ile değiştirin. ( Bu dediği dosya etkin temanın hangi dosyası? )
Sonuçları bu div'a çıkarmak için ajax isteğini güncelleyin.
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');********}****}});Ajax kodu şurada bulunabilir: ( Burayı anladım )
/wp-content/plugins/wp-postviews/postviews-cache.js
?? Dediğim gibi bu etkin temanın hangi dosyasında değişim yapacağım? Teşekkürler.
LiteSpeed Cache'i WP-PostViews ile nasıl uyumlu hale getirebilirim?
1
●129