The S2Member restricted posts are displaying in my local machine, not in server.
Anybody can tell what could be the prob?
My code is,
- Code: Select all
<?php
$debut = 0; // The first article to be displayed
$myposts = get_posts('numberposts=-1&offset=$debut');
foreach($myposts as $post) :
$postAccessLevel = ws_plugin__s2member_check_specific_post_level_access($post->ID);
$postLevel = $postAccessLevel['s2member_level_req'];
if($postLevel == 2 || $postLevel == 3 || $postLevel == 4 ){
?> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>" class="postlist"><?php the_title(); ?></a><br/> <?php
}
endforeach;
?>