Support » Plugin: WP Statistics » مشکل شرت کد

  • Resolved tehroongard

    (@tehroongard)


    سلام دوستان سپاس بابت این افزونه ارزشمند من از قالب جنت استفاده میکنم میخواستم ببینم راهی وجود داره که آمار بازدید نوشته ها و صفحات رو با این افزونه انجام بدم ؟ منظورم اینه که مبنای رتبه بندی نوشته ها درقالب سایت این افزونه باشه و محبوبترین نوشته با این افزونه انتخاب بشه امیدوارم که منظورم رو رسونده باشم برای مثال الان منبع بازدید پست ها در قالب و
    هستش و قابل تغییره چون دقت کافی نداره میخوام از افزونه شما استفاده کنم tie_views رتبه بندیشون

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi guys thanks for this amazing plugin im using jannah theme and igot issue with it post viewing counter it doesnt show correct views and start from zero im using your plugin as view plugin before i change my theme and i wanna save it i don’t want lose my previous views ، in view post setting of theme it support Third party post views plugin” and i need to get the views meta key from your plugin can you plz help me

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hi,

    Thank you for your feedback, It’s possible, just you should get the popular post from wp_statistics_pages with below query:

    
    SELECT page_id FROM wp_statistics_pages WHERE type = 'post' ORDER BY count DESC LIMIT 10
    

    Then use the retrieved id’s to post__in

    
    $query = new WP_Query( array( 'post_type' => 'post', 'post__in' => 'IDS' ) );
    
    • This reply was modified 2 months, 1 week ago by  Mostafa Soufi.
    • This reply was modified 2 months, 1 week ago by  Mostafa Soufi.
    • This reply was modified 2 months, 1 week ago by  Mostafa Soufi.
    • This reply was modified 2 months, 1 week ago by  Mostafa Soufi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.