I want to have output of an WP_Query to an array.for example an array of my last 10 post titles or an array of last post urls
Leave a Reply
You must be logged in to post a comment.
I want to have output of an WP_Query to an array.for example an array of my last 10 post titles or an array of last post urls
You must be logged in to post a comment.
If you want to collect the results from
WP_Query()
into another array, you can try this:And this example will give you the 10 last post titles into the array
$my_array()