Thread Starter
jaavid
(@jaavid)
geoip2/geoip2 v2.5.0 ==> v2.6.0
maxmind/web-service-common v0.3.1 ==> v0.4.1
browser cap version 4 is in development, version 2 in stable version but wp-statistcs use version 2.x, what is the reason?
Thread Starter
jaavid
(@jaavid)
🙂
global $wpdb;
$results = $wpdb -> get_results('SELECT wp_statistics_pages.id
FROM wp_statistics_pages
JOIN wp_posts
ON wp_posts.ID = wp_statistics_pages.id
WHERE wp_posts.post_type = 'publication'
GROUP BY id
ORDER BY count
DESC
LIMIT 10', ARRAY_A );
$args = array(
'post_type' => 'publication',
'post__in' => $results,
'orderby' => 'post__in'
);
$query = new WP_Query( $args );
Thread Starter
jaavid
(@jaavid)
the problem is WP-Jalali Plugin and resolved.