Title: Overwrite query for page template?
Last modified: August 24, 2016

---

# Overwrite query for page template?

 *  [ahnuts](https://wordpress.org/support/users/ahnuts/)
 * (@ahnuts)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-query-for-page-template/)
 * I have a function that is creating subdomains based on specific pages. So solutions.
   mywordpresssite.com is loading the content from [http://www.mywordpresssite.com/solutions/](http://www.mywordpresssite.com/solutions/).
   I’m doing this by overwriting the query_posts() and matching the subdomain to
   the subfolder. The problem is, solutions.mywordpressite.com still thinks it’s
   the homepage. It is displaying the correct content from /solutions/, but the 
   template and other data is all being pulled directly from the static homepage.
   Is there a way that I can tell my subdomain to pull the rest of the data from
   the /solutions/ page as well?

The topic ‘Overwrite query for page template?’ is closed to new replies.

## Tags

 * [subdomain](https://wordpress.org/support/topic-tag/subdomain/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [ahnuts](https://wordpress.org/support/users/ahnuts/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/overwrite-query-for-page-template/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
