Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

mortonc on "wp_db get 2 most recent items"

$
0
0

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 all articles
Browse latest Browse all 8245

Trending Articles