WordPress by example: $wp_query
We should be familiar with the concept of the loop. As demonstrated below, the WordPress template logic will continue to get posts until there are no more. With each iteration of the loop, we get the post using a SQL query and save the retrieve information int the global variable $wp_query. Notice that we do not need to… Read More »