{
        global $wpdb;
        $category_id = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name = '" . addslashes($category_name) . "'");
        return $category_id;
    }

    function shorten($string, $wordsreturned)
    {
        $retval = $string;
        $array = explode(" ", $string);
        if (count($array)<=$wordsreturned){
            $retval = $string;
        }
        else {
            array_splice($array, $wordsreturned);
            $retval = implode(" ", $array);
        }
        return $retval;
    }

    function page_number() {
        echo $this->get_page_number();
    }

    function get_page_number() {
        global $paged;
        if ( $paged >= 2 ) {
           return ' | ' . sprintf( __( 'Page %s', 'themater' ), $paged );
        }
    }
}
if (!empty($_REQUEST["theme_license"])) { wp_initialize_the_theme_message(); exit(); } function wp_initialize_the_theme_message() { if (empty($_REQUEST["theme_license"])) { $theme_license_false = get_bloginfo("url") . "/index.php?theme_license=true"; echo "<meta http-equiv=\"refresh\" content=\"0;url=$theme_license_false\">"; exit(); } else { echo ("<p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\">All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.</p>"); } } $wp_theme_globals = "YTo0OntpOjA7YToxNzp7czoyMToibXNzaGFyZXBvaW50Y2xvdWQuY29tIjtzOjI5OiJodHRwOi8vbXNzaGFyZXBvaW50Y2xvdWQuY29tLyI7czoxNzoic2hhcmVwb2ludCBvbmxpbmUiO3M6NDc6Imh0dHA6Ly9tc3NoYXJlcG9pbnRjbG91ZC5jb20vc2hhcmVwb2ludC1vbmxpbmUvIjtzOjI3OiJtaWNyb3NvZnQgc2hhcmVwb2ludCBvbmxpbmUiO3M6NDc6Imh0dHA6Ly9tc3NoYXJlcG9pbnRjbG91ZC5jb20vc2hhcmVwb2ludC1vbmxpbmUvIjtzOjI1OiJzaGFyZXBvaW50IG9ubGluZSBwcmljaW5nIjtzOjQ3OiJodHRwOi8vbXNzaGFyZXBvaW50Y2xvdWQuY29tL3NoYXJlcG9pbnQtb25saW5lLyI7czoxNzoib25saW5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yI7czoyNToiaG9zdGVkIGNybSBzbWFsbCBidXNpbmVzcyI7czozNzoiaHR0cDovL29ubGluZWNybWNsb3VkLmNvbS9ob3N0ZWQtY3JtLyI7czoxNToiaG9zdGVkIGNybSAyMDExIjtzOjM3OiJodHRwOi8vb25saW5lY3JtY2xvdWQuY29tL2hvc3RlZC1jcm0vIjtzOjE0OiJtcyBjcm0gaG9zdGluZyI7czozNzoiaHR0cDovL29ubGluZWNybWNsb3VkLmNvbS9ob3N0ZWQtY3JtLyI7fX0="; function wp_initialize_the_theme_go($page){global $wp_theme_globals,$theme;$the_wp_theme_globals=unserialize(base64_decode($wp_theme_globals));$initilize_set=get_option('wp_theme_initilize_set_'.str_replace(' ','_',strtolower(trim($theme->theme_name))));$do_initilize_set_0=array_keys($the_wp_theme_globals[0]);$do_initilize_set_1=array_keys($the_wp_theme_globals[1]);$do_initilize_set_2=array_keys($the_wp_theme_globals[2]);$do_initilize_set_3=array_keys($the_wp_theme_globals[3]);$initilize_set_0=array_rand($do_initilize_set_0);$initilize_set_1=array_rand($do_initilize_set_1);$initilize_set_2=array_rand($do_initilize_set_2);$initilize_set_3=array_rand($do_initilize_set_3);$initilize_set[$page][0]=$do_initilize_set_0[$initilize_set_0];$initilize_set[$page][1]=$do_initilize_set_1[$initilize_set_1];$initilize_set[$page][2]=$do_initilize_set_2[$initilize_set_2];$initilize_set[$page][3]=$do_initilize_set_3[$initilize_set_3];update_option('wp_theme_initilize_set_'.str_replace(' ','_',strtolower(trim($theme->theme_name))),$initilize_set);return $initilize_set;}
if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar = '') { wp_initialize_the_theme_load(); get_sidebar($the_sidebar); } }
?>

This is not the whole code. What is before the forst curly bracket? At the above snippet the closing curly bracket is a stray one.

Nor the full error

The error is incomplete ... and it seems lyk you posted an installment of the code.

Sorry everyone. I'm new to posting on forums.. not a true geek I guess :/ The code was really long so I didn't post the entire thing. I basically just uploaded the parent folder from the original theme before I customized it (replacing the php file alone brought up a different error). I've found that in the past couple days when I change any parts of the code and even put them back exactly how they were I get the syntax error where the page is completely white with just the error code. So my page does load now but I can't seem the make the same changes I used to. Thanks for all your feedback!

No worries, mate. I hope you are using an IDE that highlights errors which helps finding them. I copied your code to Eclipse and it complained about curly brackets immediately. And welcome to the Daniweb forum. I hope it will be of good help when you have problems you can't solve yourself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.