Title: What is Global WordPress Objects?
Last modified: August 20, 2016

---

# What is Global WordPress Objects?

 *  [alhoseany](https://wordpress.org/support/users/alhoseany/)
 * (@alhoseany)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/what-is-global-wordpress-objects/)
 * I was trying to load wordpress in a smarty template and i have got a lot of errors
   that has the same origin “Fatal error: Call to a member function the_function()
   on a non-object”.
 * The solution to such error is by declaring the wordpress global objects before
   loading wordpress like this:
 * `global $wp_rewrite;`
 * Is there is a list of these objects that I can use to declare all of them so 
   I don’t get any of these errors again?

The topic ‘What is Global WordPress Objects?’ is closed to new replies.

## Tags

 * [integration](https://wordpress.org/support/topic-tag/integration/)
 * [wp-load](https://wordpress.org/support/topic-tag/wp-load/)

 * 0 replies
 * 1 participant
 * Last reply from: [alhoseany](https://wordpress.org/support/users/alhoseany/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/what-is-global-wordpress-objects/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
