Title: Loading posts with Ajax
Last modified: August 19, 2016

---

# Loading posts with Ajax

 *  [baia](https://wordpress.org/support/users/baia/)
 * (@baia)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/loading-posts-with-ajax/)
 * When I do :
 * `jQuery('#mydiv').load(mypage.php);`
 * I get this error message : “Call to undefined function wp_head() in … mypage.
   php”
 * How is that possible if mypage.php is my theme folder just as the rest of my 
   theme pages ?

The topic ‘Loading posts with Ajax’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [baia](https://wordpress.org/support/users/baia/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/loading-posts-with-ajax/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
