Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Area Riservata
- */
- ?>
- <?php get_header(); ?>
- <?php if ( post_password_required() ) { ?>
- <form method="post" action="/wp-login.php?action=postpass">
- <p>This content is password protected. To view it please enter your password below:</p>
- <input type="password" style="margin:10px 0;" size="20" id="pwbox-<?php the_ID(); ?>" name="post_password"/></label><br/>
- <input type="submit" value="Submit" name="Submit"/></p>
- </form>
- <?php } else { ?>
- <?php query_posts('cat=9'); ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <a href="<?php the_permalink(); ?>"><h1 style="padding-top:0;margin-top:-5px" class="entry-title"><?php the_title(); ?></h1></a>
- <div class="entry-content" style="padding:0"><?php the_content(); ?></div>
- <div class="entry-meta">
- <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
- </div>
- <?php endwhile; ?>
- <?php } ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement