WP-Members
-
I am using the default theme Twenty Ten 1.1 and have WP_Members activated however when I add the code as per the documentation to hide comments unless the user is a member I get a syntax error. instructions are:
if you want to restrict comments from being viewed along with posts, add the following at the top your comments.php template file: <?php if (!is_user_logged_in() && !get_post_custom_values(‘unblock’)) { $post->post_password = wpmem_generatePassword(); } ?>
If I do the above I get a syntax error and the code appears in the post
Comments are still showing underneath the default registration request on members only pages.Is this a compatibility issue with the theme or am I doing something wrong?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘WP-Members’ is closed to new replies.