Hello!
I am new here.
First of all - Thank you WordPress!
I have a question about a conditional tag:
There is a website with normal static pages, and some template pages - and one password-protected page.
I have two problems
:
1. This one page should be password protected - so I can't use a template page - because somehow it's not password protected then. (I don't know how to make template pages password-protected).
2. The password-protected page is using the "standard-template" because that's the only way for me to get the passwordprotection work.
The problem is - it uses the same css and div elements like the other pages - when I try to customize the post boxes - it's not working, because when I change it, it changes on all pages...
Well - my idea: Should I use conditional tags?
here is the php code:
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="page-title"><h1><?php the_title(); ?></h1></div>
<a href="javascript:history.back()">««</a>
<div class="post-body-2">
<?php edit_post_link('Edit this page.', '<p>', '</p>'); ?>
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div><?php echo get_post_meta($post->ID, "Camera_Specs", true); ?>
</div>
<?php endwhile; endif; ?>
<?php comments_template(); ?>
</div>
<?php get_footer(); ?>
I would like to have something that says: if_is_page('1508') echo "post-body-new-width something like that. I am total new to php.
So I don't know where to put the code...
Maybe someone could give me a hint?!
Thank you very much!
Greetings,
Mad