Yes. You could use get_the_date()
. The important thing is use it within the loop (between while(have_posts()
and endwhile;
.
You could use
echo get_the_date();
OR
the_date(); //without echo
Another thing that you really really should consider is to NOT use query_posts(). Why? It's not easy to answer (it basically could mess up other queries), but take a look at https://wordpress.stackexchange.com/questions/50761/when-to-use-wp-query-query-posts-and-pre-get-posts.