lakin bir meta key'i olmamasından ötürü (sayaç dışa bağlı bir servis olduğundan ve api üzerinden çalıştığından) sitemdeki popüler postlar kısmına verileri entegre edemiyorum. eklentinin widget'ı ise benim temama uyumlu değil, tasarımsız ve kötü bir görüntüde listeliyor en çok okunan postları.
benim temamdaki yorum sayısına göre popüler postları sıralayan kodlamam şu şekilde
private function _get_popular_posts($instance) {
if (isset($instance['popular_recent_posts']) && $instance['popular_recent_posts']) {
add_filter('posts_where', array(&$this, 'filter_where'));
}
$args = array('orderby' => 'comment_count', 'order' => 'desc', 'posts_per_page' => $instance['popular_num_of_posts']);
if (!empty($instance['popular_categories']))
$args['cat'] = $instance['popular_categories'];
$posts = query_posts($args);
remove_filter('posts_where', array(&$this, 'filter_where'));
return $posts;
}eklentinin widget'ı ise şu: https://github.com/pressjitsu/pagevi...widget.php#L49ücretli veya ücretsiz bir yardım eli bekliyorum arkadaşlar. yardımcı olurmusunuz?
teşekkürler.