Will this work in v2.3 ?
-
I use the following code to display the total posts of a category:
< ? php $count = $wpdb->get_var("SELECT category_count FROM $wpdb->categories WHERE cat_ID=7"); echo $count; ? >
What happens with the next line which I use pretty often in my templates:
< ? php query_posts("cat=7&showposts=3"); ? >
And last but not least I suppose the var $cat probably will not work anymore (I use it to display category specific content and more)
< ? php $headerline = $wpdb->get_var("SELECT cat_name FROM $wpdb->categories WHERE cat_ID=$cat"); $headerline= strtolower($headerline); echo $headerline; ? >
Will all this (not) be valid for the next version?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Will this work in v2.3 ?’ is closed to new replies.