Retrieve first item ID from $posts array
-
Hello
How do you retrieve the first items id from the $posts array, normally in php that would be $posts[0][‘ID’] but not sure what to do when this is an object in a class. Should I be using $wp_query->something? Thanks in advance.
a+
gar
- The topic ‘Retrieve first item ID from $posts array’ is closed to new replies.