Password protection in template

2 views
Skip to first unread message

Christof Hurst

unread,
Sep 15, 2012, 4:53:46 AM9/15/12
to wordpress-ti...@googlegroups.com

Hi,
I'm now searching for a long time and I find no solution. I protected a page with a password. But the page is displayed normally.
I think some lookup for the password protection is missing in my template.
I'm using a plugin to display the content. The help pages for including the protection tags does not help me.
The content is displayed like this:

<?php
/*
Template Name: tplWish
*/

$page_url = get_pagenum_link();
$category = substr($page_url, strrpos(substr($page_url, 1, -1), "/") + 2, -1);

$sellFormat = "
<div class='blogbefore'></div>
<div class='blog'>
  <h3>%post_title%</h3>
  %post_content%
</div>
<div class='blogafter'></div>
";

?>

<?php get_header(); ?>

<div id="menucontainer">
<?php if (function_exists('dynamic_sidebar')) : ?>
  <?php dynamic_sidebar('normal'); ?>
<?php endif; ?>
</div>

<div id="contentcontainer">
    <?php c2c_get_recent_posts( 50, $sellFormat, '4', 'excerpt', 'ASC'); ?>
</div>

<?php get_footer(); ?>

Can anyone please help me to protect my code?
I also tried many plugins but no one works.
Thanks in advance
Chris

Cameron Taylor

unread,
Sep 15, 2012, 2:00:12 PM9/15/12
to wordpress-ti...@googlegroups.com
Hello Chris great question, but I am sorry I am to much of a newbie to actually help out. I have been watching this forum, to see if anyone actually uses it....at last someone has, you. I am not sure if many people actually use this board....so you MAY have to look else where for an answer. If you do find any good help, I would really love to follow you to a new site that people are actually discussing wordpress and participating. 
Good Luck

Christof Hurst

unread,
Sep 16, 2012, 12:08:44 PM9/16/12
to wordpress-ti...@googlegroups.com
Hello Cameron,
thanks for your answer.
I've asked the same question in the official forums but I've git no answer too.
Very sad...
If I find something helpful place, I will let you know.
Best regards
Chris

2012/9/15 Cameron Taylor <kit...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Wordpress Tips and Tricks" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wordpress-tips-and-tricks/-/kIiGiXZ1mgEJ.
To post to this group, send email to wordpress-ti...@googlegroups.com.
To unsubscribe from this group, send email to wordpress-tips-and...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wordpress-tips-and-tricks?hl=en.

Reply all
Reply to author
Forward
0 new messages