Translating SQL to <?php query_posts() ?>
-
How would I take the following SQL statement, and feed its query to the db using query_posts() function?
SELECT * FROM
wp_postsWHERE DATE_SUB(CURDATE(),INTERVAL 7 DAY) <= post_date;
I know the codex is down, but does anyone have info on what parameters can be used with the query_posts() function?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Translating SQL to <?php query_posts() ?>’ is closed to new replies.