Question: Why can't you modify the query in a template page?

  1. The query can only be run inside the Loop.
  2. You can modify the query in a template page if you use `pre_get_posts()`.
  3. According to WordPress best practices, the query should only be modified in `functions.php`.
  4. Due to execution order, the query has already run by the time a template is loaded.

Answer: The correct answer of the above question is Option B:You can modify the query in a template page if you use `pre_get_posts()`.