Strange Behaviour: Get the posts of a certain category, inside a page
To get the articles of a certain category inside a page, I always used this code:
<?php /* Template Name: Template_News */ // Which page of the blog are we on? $paged = get_query_var('paged'); // Set the category whom to fetch the posts query_posts('cat=3&paged='.$paged); // make posts print only the first part with a link to rest of the post. global $more; $more = 0; //load index to show blog load_template(TEMPLATEPATH . '/index.php'); ?>
But now it’s not working anymore.
Can someone help me?
It’s a very common problem, I just want to obtain some articles in a page.
How do I do that?
- The topic ‘Strange Behaviour: Get the posts of a certain category, inside a page’ is closed to new replies.