Call Current Category

The problem is that your call to query_posts is overwriting the original query for the page. You have to get the original query, then modify any params from there. global $query_string; // start with the original query $myquery = wp_parse_args($query_string); // make any changes to the query here $myquery[‘posts_per_page’] = 9; query_posts($myquery);

Having Trouble With get_category_by_slug In a Custom Function

function ribbon_list_cats( $parent_cat_slug, $echo = true ) { $parent_category = get_category_by_slug( $parent_cat_slug ); if ( $parent_category->count > 0 ) { $output=”<ul>”; $output .= wp_list_categories(‘title_li=&child_of=”.$parent_category->term_id.”&hide_empty=0&show_option_none=&echo=0’); $output .= ‘</ul>’; } // Debug: uncomment the following line // echo ‘<pre>’; var_dump( $output ); echo ‘</pre>’; if ( $echo === false ) return $output; return print $output; } // … Read more

Change Category Page Display

Category pages or archives? If you’re a little more specific you will probably get multiple ideas, but in general, if you’ve got a loop you can use one of the two following functions: <?php the_excerpt(); ?> will show the custom or default excerpt for the post <?php the_content(‘Read More &raquo;’); ?> will show the full … Read more