Use same database on main domain & sub domain

You cant have 2 sites that uses the same data from the same database, because of how WordPress works (permalinks etc), i am guessing you want to do this to show 2 different themes, 1 for the desktop version and 1 for the mobile version, try doing that with 1 WordPress installation and change the … Read more

Call to undefined function get_user_meta() – trying to access data in MySQL from custom fields

For one thing, you don’t have to include wp-config or wp-db when you use wp-load. And as t31os says, single-quotes around variables will keep them from being interpreted by PHP. <?php include_once(‘wp-load.php’); ?> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /> <title>Untitled Document</title> <style type=”text/css”> /* styles … Read more