some1 help with my syntax? $posts=
-
This is the first string I’ve needed in my category template – i want to alphabetize posts IF in category 7 or 3. This (my guess) is obviously not viable! Can anyone help me with this?
<?php if (is_category('7')) { $posts = query_posts($query_string . '&orderby=title&order=asc&posts_per_page=10') } else if(is_category('3')) $posts = query_posts($query_string . '&orderby=title&order=asc&posts_per_page=10'); if (have_posts()) : while (have_posts()) : the_post(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘some1 help with my syntax? $posts=’ is closed to new replies.