get_query_var() and permalinks
WordPress rewrites rules invisibly translate pretty permalinks to the non-pretty format internally, and set the appropriate variables and load the requested page, you don’t need to do anything in your template to load posts from a category on a category page. The cat query var specifically will be set to the ID of the requested … Read more