I currently have a Wordpress blog set up at blog.mydomain.com. I am in the process of creating a mobile version of my website at m.mydomain.com, which will include a section for the blog. My goal is to use the same database and pull in all the existing blog posts while displaying them with CSS tailored for the mobile site. How can I achieve this?
EDIT: Below is the code I am attempting to insert the blog posts into:
<div class="blog">
<div class="section-header">
<img class="section-logo" src="images/logo-small.png" alt="img">
<a href="#" class="section-navigation-deploy"><img class="navigation-deploy-icon" src="images/nav-icon.png" alt="img"></a>
<div class="clear"></div>
</div>
<div class="deco-open"></div>
<?php
require('http://blog.mydomain.com/wp-blog-header.php');
$posts = get_posts('numberposts=-1&order=DSC&orderby=date');
?>
<?php foreach ($posts as $post) : start_wp(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<section><?php the_excerpt(); ?></section>
<?php endforeach; ?>
<div class="deco-close"></div>
</div>