csseur3
Forum Replies Created
-
Forum: Plugins
In reply to: Count the number of posts of only one categoryi upgrade to wp 2.7 and i have no errors ?? but it’s only possible to calculate the number of posts of only one sub-category (example the cat 1.1) and not the principal category (example cat 1) ??
bye
Forum: Plugins
In reply to: Count the number of posts of only one categorywith:
<?php wp_list_categories('orderby=name&show_count=1&include=97&use_desc_for_title=0'); ?>
i have the error:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/blog/wp-includes/taxonomy.php on line 1965
Warning: join() [function.join]: Invalid arguments passed in /home/blog/wp-includes/taxonomy.php on line 1965
Warning: Invalid argument supplied for foreach() in /home/blog/wp-includes/taxonomy.php on line 1972
Forum: Plugins
In reply to: Count the number of posts of only one categorysorry, doesn’t work, but i’m sure that is the correct id ??
Forum: Plugins
In reply to: Count the number of posts of only one categoryI try:
<?php $post_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id=14 AND WHERE term_taxonomy_id=1 AND WHERE term_taxonomy_id=2 AND WHERE term_taxonomy_id=3;");?> <p><?php echo 'post count is ' . $post_count; ?></p>
but no result ?? is not the good syntax?
bye
Forum: Plugins
In reply to: Count the number of posts of only one categoryOh, i see,
this is my organization:
category_principal
—- cat 1
———cat 1.1
———cat 1.2
—- cat 2
———cat 2.1
———cat 2.2so, it’s not possible to count the total number of posts directly on category_principal?
so, how to have many cat in “WHERE term_taxonomy_id=1” ?
bye ??
Forum: Plugins
In reply to: Count the number of posts of only one categoryi try this:
<div> <p> <?php $mycats=get_categories ('include=14'); echo 'my cat count is '. $mycats[0]->category_count; ?> posts in this category. </p> </div>
but i have only the echo text, and no number ??
bye
Forum: Plugins
In reply to: Count the number of posts of only one categoryit’s weird;
with the plugin, i have 5 for result
with the plugin and your code it’s 20
but i have 104 posts in the category :/Forum: Fixing WordPress
In reply to: See posts by category ordernobody? ??
Forum: Fixing WordPress
In reply to: Select posts of onyl one categoryup
Forum: Fixing WordPress
In reply to: Rename a meta_keynobody? ??
Forum: Fixing WordPress
In reply to: Rename a meta_keyhello,
for rename blablabla to blublublu
it is:
UPDATE wp_postmeta SET meta_key=( REPLACE (meta_key, 'blablabla', 'blublublu'));
yes? is good?
Forum: Fixing WordPress
In reply to: Rename a meta_keyhelp please ??
Forum: Fixing WordPress
In reply to: Select posts of onyl one categorynobody? ??
Forum: Fixing WordPress
In reply to: Select posts of onyl one categoryI try to add query_posts(“cat=3”); before the while, but nothing is changed ??
help me please ??
Forum: Fixing WordPress
In reply to: Last comment of a categorySorry, but what the relationship with my problem? lol