Advertisement
Guest User

navigation disappears when using query_posts

a guest
Apr 14th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.38 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: pagina index
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9. <?php get_sidebar(); ?>
  10.    
  11.      <div id="news">
  12.      <h2><img src="<?php bloginfo('template_directory'); ?>/images/news.png"  alt="news" /></h2>
  13.  
  14. <div class="breadcrumbs">
  15.     <?php if(function_exists('bcn_display'))
  16.    {
  17.        bcn_display();
  18.    }?>
  19. </div>
  20.  
  21.      <!-- Start the Loop. -->
  22.      <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-42&paged=$paged"); ?>
  23.         <?php while (have_posts()) : the_post(); ?>
  24.  
  25.              <div class="entry">
  26.  
  27.  
  28.  <!-- Display the Title as a link to the Post's permalink. -->
  29.  <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  30.  <small class="articletitle">Scritto il <?php the_time('jS F, Y'); ?></small>
  31.  
  32.  <!-- Display the Time. -->
  33.  
  34.  
  35.  <!-- Display the Post's Content in a div box. -->
  36. <div class="entrycontent">
  37.    <?php the_content(); ?>
  38.    <div class="commenti" > <a href="<?php comments_link(); ?> ">Lascia un commento </a></div>
  39.  </div>
  40.  
  41.  </div>
  42.  
  43.  
  44.  <!-- Stop The Loop (but note the "else:" - see next line). -->
  45.  <?php endwhile; ?>
  46.  
  47.  
  48.       <div id="navbox">
  49.  
  50.  
  51.      <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
  52.  
  53.  
  54.         </div>
  55.        
  56.    </div>
  57.  
  58.  
  59. <?php get_footer(); ?>
  60.  
  61.       </div>
  62.    
  63.    
  64.    
  65. <div id="bordosotto"> </div>
  66. </body>
  67. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement