Popularity Contest 1.3b2 & Categories
-
I’ve included this code on a personal widget:
<?php if (is_category()) { ?>
<li id="popular">
<h2>Most popular of <?php single_cat_title(); ?></h2>
<ul><?php akpc_most_popular_in_cat(); ?></ul>
</li>
this causes the following error:
WordPress database error: [Unknown table 'wp_posts' in group statement]
SELECT ID, post_title FROM wp_posts p LEFT JOIN wp_term_relationships tr ON p.ID = tr.object_id LEFT JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id LEFT JOIN wp_ak_popularity pop ON p.ID = pop.post_id WHERE tt.term_id = '8' AND tt.taxonomy = 'category' AND post_status = 'publish' AND post_type = 'post' AND post_date < NOW() GROUP BY wp_posts.ID ORDER BY pop.total DESC LIMIT 10
And shows none results.
Can anyone help me, please?
- The topic ‘Popularity Contest 1.3b2 & Categories’ is closed to new replies.