show the latest articles of a category
I need to create a simple php file with the posts of the last week putted in a category, to create a simple weekly newsletter.
I tried to use query_posts(), but it seems to don’t work: it has no influence on the loop.
My code is:
query_posts("showposts=1"); while (have_posts()) : the_post(); the_content('Read the full post »'); endwhile;
of course I tried to search in codex examples, but the examples for me simply doesn’t work.
I only need to get a list of posts, I thought it was a simple thing. Maybe it’s easier for me to write an sql query.
Please help me.
- The topic ‘show the latest articles of a category’ is closed to new replies.