Okay so I had been trying to display posts from a particular category at home page using query_posts() functions at the home page at freespywaredeleter.net.
However seems like calling this function is overriding the Page title.
It displays the category title instead of what is set as Homepage title.
The code used is:
<?php query_posts('cat=5&showposts=5'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> </li> <?php endwhile; endif; ?>
- The topic ‘query_posts() from a particular category overriding Page title’ is closed to new replies.