0
votes
1answer
38 views

What does $_GET['iphone'] do?

I am working on a WordPress theme whose news stories are loaded in an iPhone app as well. We need the theme to detect whether the news story is being loaded from a mobile browser (chrome, safari, ...
2
votes
1answer
472 views

Ajax template: how to handle head section

I know it's easy stuff, but I'm new to this and I can't understand which is the best approach. Background The template I'm working on is a dual theme Desktop/Mobile, UA Sniffing based. Now I just ...
0
votes
1answer
44 views

Attaching images to posts manually (i.e. with custom code, without the use of an API)

I am working on mobile API for a WordPress site. The API is written in PHP and provides methods actions such as creation of a post. Now, I can create a post with one image (thumbnail) of the post. ...
1
vote
2answers
2k views

Hiding a php element from mobile browsers

I've stuck a static width content slider on my Wordpress sites front page. I'm using the Twenty Eleven theme with a small piece of code included into index.php to display the slider. Unfortunately ...
0
votes
1answer
212 views

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

I built a mobile version of a wordpress site and added some PHP code in the wordpress index.php file to detect mobile users and HTTP-redirects them to m.website.com (which is not a wordpress ...
0
votes
1answer
255 views

Creating a mobile site by adding a new class to the body tag from functions.php

Essentially is there a way to use a function in functions.php to turn the <body> tag into <body class="mobile">? I have code that recognizes mobile devices but right now it's set up to ...
8
votes
3answers
2k views

What's the best way to use the Featured Image for responsive web design?

I have a brilliant idea and since WordPress already takes care of some of the work, I just need to find a good method to make this work. I am working on a project that needs to be responsive to all ...
3
votes
3answers
789 views

Add Useragent to the body class?

I'm looking for a way to add body class depending on the User Agent of the client with php. I'm looking to implement it this way: page.php: <body id="front" <?php ( function_exists ( ...