I’m developing a custom theme and I would like to know how to use wordpress functions within the file theme.php . For example function bloginfo doesn’t exist. I’m trying to use $wpdb but doesn’t work.
WordPress functions should work, eventually you need to include some php core files. $wpdb must work, eventually declare it global at the start of the file.