Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 6th, 2012  |  syntax: PHP  |  size: 1.13 KB  |  views: 232  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         <?php
  2.         /*
  3.         Template Name: Area Riservata
  4.         */
  5.         ?>
  6.  
  7.                         <?php get_header(); ?>
  8.  
  9.         <?php if ( post_password_required() ) { ?>
  10.     <form method="post" action="/wp-login.php?action=postpass">
  11.         <p>This content is password protected. To view it please enter your password below:</p>
  12.         <input type="password" style="margin:10px 0;" size="20" id="pwbox-<?php the_ID(); ?>" name="post_password"/></label><br/>
  13.         <input type="submit" value="Submit" name="Submit"/></p>
  14.     </form>
  15. <?php } else { ?>
  16.                 <?php query_posts('cat=9'); ?>
  17.             <?php while ( have_posts() ) : the_post(); ?>
  18.  
  19.  
  20.             <a href="<?php the_permalink(); ?>"><h1 style="padding-top:0;margin-top:-5px" class="entry-title"><?php the_title(); ?></h1></a>
  21.                 <div class="entry-content" style="padding:0"><?php the_content(); ?></div>
  22.                                         <div class="entry-meta">
  23.                     <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  24.                     </div>
  25.  
  26.  
  27.             <?php endwhile; ?>
  28. <?php } ?>             
  29.  
  30.  
  31.                         <?php get_footer(); ?>
clone this paste RAW Paste Data