Sorting by post_date returns last revision date
-
Hello All,
I am trying to sort by post by date, but I don’t care for last update (revision date). The code is:
$the_query = new WP_Query('cat=-' .$catid. ',-' .$catid2. '&showposts=5&offset=1&orderby=post_date&order=desc');
How can I modify that line to ignore revisions and only show the posts?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Sorting by post_date returns last revision date’ is closed to new replies.