Thanks. ..not being a programmer I'm hoping you'll help me flesh this out just a bit more.
I have my template created. It is a copy of my standard page.php. I get in theory how the if/then statement should work but I'm not all that familiar with the exact syntax to use.
Here is what I believe I need to have within your If/then statement. This is the "if" part:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry-text">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages('<p><strong>
</div>
</div>
<?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
The "Else" should simply be:
You must be a registered user to view this page! {insert login page / registration link}
Any help is most appreciated!
Main Topics
Browse All Topics





by: strobbePosted on 2008-05-13 at 21:28:22ID: 21561264
Create a page template using the attached code and then assign that template to the pages you want to be protected. For info on creating page templates, see the Wordpress site: /Pages#Pag e_Template s
-easier-ne ws/
http://codex.wordpress.org
Alternatively, here's a plugin for a similar capability. Never used it, can't vouch for it:
http://www.awsom.org/awsom
Select allOpen in new window