Advertisement
zeelifestyle

previous/next page function not working

Jun 10th, 2011
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.  
  4. <!--Theme options script-->
  5. <?php
  6. global $options;
  7. foreach ($options as $value) {
  8. if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  9. }?>
  10.  
  11.  
  12. <div id="search_wrap">
  13.  
  14. <div class="wrap">
  15.  
  16.  
  17. <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
  18. <fieldset>
  19. <input type="text" name="s" id="s" onblur="if (this.value == '') {this.value = 'Search...';}" onfocus="if (this.value == 'Search...') {this.value = '';}" value="Search..." />
  20. <input type="submit" class="button" value="" />
  21. </fieldset>
  22. </form>
  23.  
  24.  
  25.  
  26. <div class="text_size"><?php chgfontsize_display_options(); ?></div>
  27. </div>
  28. </div>
  29. <!--Content-->
  30.  
  31.  
  32.  
  33.  
  34.  
  35. <div id="main">
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. <!--Content left part-->
  46. <div class="wrap">
  47.  
  48. <div id="tagline">
  49. <h3>
  50. <?php if (!have_posts()): ?>
  51. Page not found
  52. <?else: ?>
  53. <?php single_cat_title(); ?>
  54. <?php endif; ?>
  55. </h3>
  56. </div>
  57.  
  58.  
  59. <!--Sidebar-->
  60. <?php get_sidebar(); ?>
  61.  
  62.  
  63. <!--Content right part-->
  64. <div class="col_3_4">
  65.  
  66. <!--Blog items-->
  67.  
  68.  
  69.  
  70. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  71.  
  72. <div class="blog_item">
  73.  
  74.  
  75. <?php if ( has_post_thumbnail() ) { ?>
  76. <div class="image-holder size"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail('blog'); ?></a></div>
  77. <?php } ?>
  78.  
  79. <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  80.  
  81. <div class="blog_meta">
  82. <span class="left">Posted on: <?php the_time('F jS, Y') ?></span>
  83. <span class="right"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?></span>
  84. </div>
  85.  
  86. <div class="storycontent">
  87. <?php the_excerpt(); ?>
  88. </div>
  89.  
  90.  
  91. <a href="<?php the_permalink() ?>" class="more">Read more</a>
  92.  
  93. <div class="clearboth"></div>
  94. </div>
  95.  
  96. <?php comments_template(); // Get wp-comments.php template ?>
  97. <?php endwhile; else: ?>
  98. <p><?php _e('<h2>Sorry, no posts matched your criteria</h2>You might try to use our Site search <br>or try to browse the site with the main navigation menu'); ?></p>
  99. <?php endif; ?>
  100. <br />
  101. <div id="footer_nav"><?php posts_nav_link(' &nbsp;&nbsp;&nbsp;&nbsp; ', __('<span class="new">NEXT PAGE</span>'), __('<span class="old">PREVIOUS PAGE</span>')); ?></div>
  102.  
  103.  
  104.  
  105. </div>
  106.  
  107.  
  108.  
  109. </div>
  110. <!--End Content-->
  111. </div>
  112.  
  113. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement