I insert this code:
- Code: Select all
<?php echo s2member_pro_login_widget(); ?>
And nothing shows up?
Any ideas why this wouldn't work?
PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
<?php echo s2member_pro_login_widget(); ?>
<?php
/**
* Template Name: Presskit Test
*/
?>
<?php get_header(); ?>
<!-- The class "grid_7" restricts the div to 7 columns wide -->
<div id="content" class="grid_10 prefix_1">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">
<?php echo s2member_pro_login_widget(); ?>
</div><!-- end entry -->
</div><!-- end post -->
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
<br />
</div><!-- end content -->
<div id="sidebar" class="grid_4">
</div>
<?php get_footer(); ?>
<?php if (is_user_logged_in() && current_user_can("access_s2member_ccap_presskit")) { ?>
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php } else { ?>
<h1>Members of the Press Only</h1>
Please login to view this page.
<?php echo s2member_pro_login_widget(); ?>
<?php } ?>
<?php if (is_user_logged_in() && current_user_can('access_s2member_ccap_presskit'))
the_content('<p class="serif">Read the rest of this page »</p>');
else
echo '<h1>Members of the Press Only</h1> Please login to view this page.', s2member_pro_login_widget(); ?>
jacksonmurphy wrote:Would it have anything to do with PHP settings on the server?
http://www.annawilson.com/test.php
<?php
/**
* Template Name: Presskit-Test
*/
?>
<?php get_header(); ?>
<!-- The class "grid_7" restricts the div to 7 columns wide -->
<div id="content" class="grid_10 prefix_1">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">
This is Presskit-Test Template:<br /><br />
The login widget should show up here:<br />
<?php echo s2member_pro_login_widget(); ?>
</div><!-- end entry -->
</div><!-- end post -->
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
<br />
</div><!-- end content -->
<div id="sidebar" class="grid_4">
<?php
if ( ! dynamic_sidebar( 'press-widget' ) ) : ?>
<?php endif; // end primary widget area ?><br />
</div>
<?php get_footer(); ?>
Users browsing this forum: No registered users and 2 guests