• Hi all,

    I got a question about the theme options.

    The template I’m using tries to use the variable “$data” right at the start of the template code. The variable is not defined in the template file however. After some research I now know it expects this variable to be an array with the data from the “wp_options” table. When I create the array by hand in the code the page loads quite well, but I don’t understand why the $data variable is not loaded automaticly anymore.

    This problem occurred after moving the website + database from one hosting location to the other. After that I changed ALL the occurrences of the old URL in the database, so that shouldn’t be the problem.

    Can anyone help me out with this problem? Or maybe anyone who knows where this $data variable is filled normally so I can try to find out the problem in that code?

    Thank you!

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    After that I changed ALL the occurrences of the old URL in the database, so that shouldn’t be the problem.

    Paradoxically, that is part of the problem.

    You don’t want to change every instance in the DB, just the instances in wp_posts.

Viewing 1 replies (of 1 total)
  • The topic ‘Theme options are not loaded.’ is closed to new replies.