I have a problem with the WP Member plugin. I am displaying one post of one category (#7) on my homepage. This post is not blocked but still the login form appears. I have deactivated the "Block Posts by default" setting.
Is there any conflict with the WP_Query? How do I unblock this post on the homepage. I don`t have this problem anywhere else on the site.
This is the code:
<?php $recent = new WP_Query("cat=7&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <div class="box post" id="post-<?php the_ID(); ?>"> <p class="date"><?php the_time('F j, Y') ?></p> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> </div> <?php endwhile; ?>
Please help, otherwise this plugin works great!