WordPress.org

Ready to get started?Download WordPress

Forums

Theme options are not loaded. (2 posts)

  1. ArticSun
    Member
    Posted 1 year ago #

    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!

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

Topic Closed

This topic has been closed to new replies.

About this Topic