wp_db get 2 most recent items
-
in my theme I’ve got a wp_db query which fetches the most recent resut from a table and then sets this as a variable.
What I would like to be able to do is get the two most recent results and set those as separate variables. How can I go about doing this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘wp_db get 2 most recent items’ is closed to new replies.