Posted By

ryarwood on 04/10/12


Tagged

template wordpress mobile wp news p11


Versions (?)

WP Mobile News


 / Published in: PHP
 

  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Ciro_Theme
  5.  */
  6. /*
  7. Template Name: Mobile News
  8. */
  9. ?>
  10.  
  11. <?php
  12. $includespath = $_SERVER['DOCUMENT_ROOT'] . '/m/includes/';
  13. $currentnav = 'news';
  14. include($includespath . 'inc-header-news.php');
  15. ?>
  16.  
  17. <div id="subheadSecondary" style="background-color:#3B4D19">
  18. <h2>News</h2>
  19. </div>
  20.  
  21. <div id="content-10">
  22.  
  23. <?php
  24. $temp = $wp_query;
  25. $wp_query= null;
  26. $wp_query = new WP_Query();
  27. $wp_query->query("caller_get_posts=1&paged=$paged");
  28. ?>
  29.  
  30. <?php
  31. if (have_posts()) : while (have_posts()) : the_post();
  32. ?>
  33.  
  34. <div class="blogEntry">
  35. <h3><?php the_title(); ?></h3>
  36. <h4><?php the_time('F jS, Y') ?></h4>
  37. <?php the_content('Read the rest of this entry &raquo;'); ?>
  38. </div>
  39.  
  40. <?php endwhile; ?>
  41.  
  42. <div class="navigation">
  43. <div class="alignleft"><?php next_posts_link('Older Entries') ?></div>
  44. <div class="alignright"><?php previous_posts_link('Newer Entries') ?></div>
  45. </div>
  46.  
  47. <?php else : ?>
  48.  
  49. <h2 class="center">Not Found</h2>
  50. <p class="center">Sorry, but you are looking for something that isn't here.</p>
  51. <?php get_search_form(); ?>
  52.  
  53. <?php endif; ?>
  54.  
  55. </div>
  56.  
  57.  
  58. <?php
  59. include($includespath . 'inc-nav-comm.php');
  60. include($includespath . 'inc-footer.php');
  61. ?>
  62.  

Report this snippet  

You need to login to post a comment.