WordPress 3.1 not compatible with jQuery Mobile?

Just a guess, but your error message indicates that WordPress is using jQuery 1.4.4. If you look at the jQuery Mobile website, they’re using 1.5. Have you tried using wp_enqueue_script to use a jQuery 1.5? You’d want to try something like: <?php function my_init_method() { if (!is_admin()) { wp_deregister_script( ‘jquery’ ); wp_register_script( ‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js’); wp_enqueue_script( … Read more

$args numberposts variable

Yes, there is no way to get screen size with PHP, because it runs on server, while the screen is something related to client (browser). However, in OP you say: for a desktop visitor I show 10 posts and for a mobile visitor I show 3 posts and even if you can’t get the screen … Read more

How to add iOS & fav icons to the theme?

Hook into wp_head in your functions.php file. add_action(‘wp_head’, ‘add_your_stuff’); function add_your_stuff() { ?> <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/157869/<?php echo get_stylesheet_directory_uri();?>/favicon.ico” type=”image/x-icon” /> <link rel=”apple-touch-icon” href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon.png” /> <link rel=”apple-touch-icon” sizes=”57×57″ href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon-57×57.png” /> <link rel=”apple-touch-icon” sizes=”72×72″ href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon-72×72.png” /> <link rel=”apple-touch-icon” sizes=”76×76″ href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon-76×76.png” /> <link rel=”apple-touch-icon” sizes=”114×114″ href=”<?php echo get_stylesheet_directory_uri();?>/apple-touch-icon-114×114.png” /> … Read more

Using subdomain m.website.com for mobile theme?

You can have a subdomain, but you cannot detect mobile users reliably. And you shouldn’t. How to use a subdomain with the same content In your wp-config.php, look at $_SERVER[‘HTTP_HOST’]. If it matches m.example.com, enforce the current domain as main domain with … const DOMAIN_CURRENT_SITE = ‘m.example.com’; … and filter the active theme: add_filter( ‘stylesheet’, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)