$args = array('numberposts' => 10, 'tag' => 'my-tag', 'ID' => 555');
$posts = get_posts($args);
I want to bring only 10 records from an specific tag and that the ID is less than a number. Is there any way to do this with the get_posts arguments? How can I specify Greater Than, Less Than or Not Like in the arguments array?
Thanks...
SELECT * FROM wp_posts WHERE ID IN(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ..., 554, 555);
), absolutely tanking the performance! – Abjuration