- Code: Select all
<?php if (current_user_can("access_s2member_level1")){ ?>
Some premium content for all Level 1 Members.
<?php if (current_user_can("access_s2member_ccap_" . S2MEMBER_CURRENT_USER_LOGIN)){ ?>
Display links for music as well.
<?php } ?>
<?php if (current_user_can("access_s2member_ccap_videos")){ ?>
Display videos as well.
<?php } ?>
<?php } else { ?>
Some public content.
<?php } ?>
Now. Instead of static text like
Display links for music as well
i'd like to insert some wp queries like
- Code: Select all
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-header">
<h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<p>by <?php the_author(); ?> on <?php the_time('F j, Y') ?></p>
</div>
<?php the_excerpt(); ?>
<div class="post-meta">
<ul>
<li><?php comments_popup_link('Leave your comment', 'One comment', '% comments'); ?><?php the_tags(' • Tagged as: ', ', ', ''); ?></li>
<li>Share on <a href="http://twitter.com/home?status=Currently reading: <?php the_title_attribute(); ?> <?php the_permalink(); ?>">Twitter</a>, <a href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?>&t=<?php the_title_attribute(); ?>">Facebook</a>, <a href="http://del.icio.us/post?v=4;url=<?php the_permalink(); ?>">Delicious</a>, <a href="http://digg.com/submit?url=<?php the_permalink(); ?>">Digg</a>, <a href="http://www.reddit.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title_attribute(); ?>">Reddit</a></li>
<?php edit_post_link('Edit this post', '<li>', '</li>'); ?>
</ul>
Unfortunately i can't get this to work.
any idea? thank you so much! flo