Forums
(@csseur3)
15 years, 9 months ago
there is my loop:
<?php if (have_posts()) : ?> <?php query_posts('orderby=category&order=asc&cat=133'); ?> <?php while (have_posts()) : the_post(); ?> codes etc... <?php endwhile; ?> <?php endif; ?>
oups, i think have missed one thing, but when i try the new query
$test_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->postmeta WHERE meta_key = 'actu' AND FROM $wpdb->terms WHERE term_ID=133");
nothing again ??
Thanks!
i try to limit this at a category but nothing is show:
$wpdb->get_var("SELECT COUNT(*) FROM $wpdb->postmeta WHERE term_ID='3' AND meta_key = 'actu';");
what is wrong?
bye
15 years, 10 months ago
https://pastebin.com/m1be645a2 this is my entire function
oOups, i have a problem with my function: the posts are 5 times re-listed, why? ??
up :/
up ??
up.
15 years, 11 months ago
up …
help please ??
nobody? ??
16 years, 1 month ago
same problem on slackware, any suggestion?
16 years, 2 months ago
with <?php echo _get_category_count(3); ?>
i would like to count the number of posts of this category AND the sub-category. how to do that?
re,
already no solution for calculate number of posts of a general category and the sub-category, in a same only one result? ??
bye.