Try placing $myquery->the_post();
inside your while loop.
I think get_the_ID()
and get_the_title()
depend on that being setup first.
Also, wp_reset_query();
should be replaced with wp_reset_postdata();
.
Try placing $myquery->the_post();
inside your while loop.
I think get_the_ID()
and get_the_title()
depend on that being setup first.
Also, wp_reset_query();
should be replaced with wp_reset_postdata();
.