• 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.