Get permalink for a post from inside WordPress and route to a related site

I’d use responsive design rather than a mobile subdomain copy of the site, however if you really do want this, then put this code in a plugin: // this function doesn’t exist prior to wordpress v3.4 if(!function_exists(‘wp_is_mobile’)){ /** * Test if the current browser runs on a mobile device (smart phone, tablet, etc.) * * … Read more

WordPress Mobile Edition not working with WP v3.5

The plugin you are using hasn’t been updated in 2 years. Check out the Jetpack for WordPress plugin. It comes with MANY useful modules, one of which is the Mobile Theme module. Another plugin that comes to mind is WPtouch, which is available in basic and pro ($$) builds.

Using WordPress as a Mobile App Backend

You could use WP and all it’s associated goodness for a mobile app backend (I’m going to do it soon myself). Custom post types are not a problem. Make a page, grab the data with a WP_Query and serve up the query results as JSON instead of HTML, though you’ll have to do this bit … Read more

Add exception to WP Mobile Detector

By means of preg_match and the like you can only write rules for specific devices (in your case the GT-P5100). What you want to do, however, is to affect only your device (meaning: not all Galaxy Tabs). I’d vote for setting a cookie and act upon it’s particular value: setcookie(‘no_mobile_theme_please’, 1, time()+60*60*24*30, “https://wordpress.stackexchange.com/”, $_SERVER[‘SERVER_NAME’], false, … Read more

Changing the loop w/o killing category links

Okay, assuming you only want to restrict the categories for the front page, but still list all categories everywhere else, just add the according template file to your theme: front-page.php <?php get_header(); ?> <?php $my_query = new WP_Query(‘cat=79,120’); ?> <?php if ($my_query->have_posts()) : ?> <div id=”post-area”> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div id=”post-<?php the_ID(); … Read more

How to disable fancybox on small screens

You could have a try with wp_is_mobile(): if ( wp_is_mobile() ) { remove_action( ‘wp_print_scripts’, ‘mfbfw_load’ ); remove_action( ‘wp_print_styles’, ‘mfbfw_css’ ); remove_action( ‘wp_head’, ‘mfbfw_init’ ); } You should also check with tablets since they might have a big resolution and hence not fall in your “small screen” condition. You should note that the User Agent string … Read more

website is viewing as mobile, how do I turn this off?

The website is working perfectly fine for me. You are using a responsive website, this means that the appearance of the site changes depending on how big your screen or browser window is. You probably had a too small browser window, if you just make it bigger it should look normal again.