Using the below code get the category name
<?php echo get_cat_name(category ID here) ?>
Example:
<?php query_posts("cat=3");?>
<?php echo get_cat_name(3);?>
<?php while(have_posts()): the_post();?>
<?php the_content();?>
<?php endwhile;?>
Using the below code get the category name
<?php echo get_cat_name(category ID here) ?>
Example:
<?php query_posts("cat=3");?>
<?php echo get_cat_name(3);?>
<?php while(have_posts()): the_post();?>
<?php the_content();?>
<?php endwhile;?>
Problem : Page navigation problem with custom query ?
Solution : Find below
wp_Pagenavi in query posts:
<?php query_posts('showposts=6'.'&paged='.get_query_var('paged') ;?> <?php while ( have_posts() ) : the_post(); ?> <?php the_content();?> <?php endwhile; // end of the loop. ?> <?php wp_pagenavi() //call pagenavi?>
Making WordPress Speak Your Language
Everything Around WordPress Themes
PHP - Wordpress - Joomla - Developer
Create cool applications that integrate with WordPress.com
The latest news on WordPress.com and the WordPress community.