Hi all,
How can I exclude the latest post from the Loop?
There was a similar post a year ago but it didn't get solved, Google doesn't have an answer either. What I'm trying to achieve is a simple query that will exclude one latest post. Not some ID, not posted at some specific date or time, just the latest one.
Thanks in advance.
Justine
To skip the latest post, using the WordPress Default theme for example, in the wp-content/themes/default/index.php file, just before the line:
<?php if (have_posts()) : ?>
put this:
<?php query_posts($query_string . '&orderby=date&order=ASC'); ?>
The query_posts() article explains the arguments in detail.
`
Thank you, got it working now.
Justine