Der loop ist das, was die Einträge anzeigt.
Und die Abfrage sieht so aus:
<?php global $user_level; if ($user_level > 1) { ?>
Wenn registrierter User
<?php } else { ?>
Wenn keine registrierter User
<?php } ?>
In der index.php vom Default_theme es also so funktionieren:
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php global $user_level; if ($user_level > 1) { ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('j. F Y') ?> <!-- by <?php the_author() ?> --></small>
<div class="entry">
<?php the_content('weiter...'); ?>
</div>
<p class="postmetadata">Kategorie <?php the_category(', ') ?> <strong>|</strong> <?php comments_popup_link('0 Kommentare »', '1 Kommentar »', '% Kommentare »'); ?> <?php edit_post_link('Bearbeiten','<strong>|</strong> ',''); ?> </p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Vorherige Einträge') ?></div>
<div class="alignright"><?php previous_posts_link('Nächste Einträge »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Nicht gefunden</h2>
<p class="center">Sorry, aber Du suchst gerade nach etwas, was hier nicht ist.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php } else { ?>
<?php } ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Oder du testest mal das Plugin:
http://blog.taragana.com/index.php/arch…wordpress-blog/