Hallo,
ich benutze das "blueleaves"-Theme, in dessen index.php folgendes steht:
PHP
<h3><img src="<?php bloginfo('stylesheet_directory'); ?>/images/document.gif" alt="" /> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<small><img src="<?php bloginfo('stylesheet_directory'); ?>/images/timeicon.gif" alt="" /> <?php the_time('F jS, Y') ?> by <img src="<?php bloginfo('stylesheet_directory'); ?>/images/author.gif" alt="" /> <?php the_author() ?></small>
<div class="entry">
<?php the_content('Weiterlesen'); ?>
</div>
<p class="info">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/comments.gif" alt="" /> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
Alles anzeigen
Diese Anganbe regel die Kopfzeile über und die Fußzeile unter Beiträge und Seiten. Nun möchte ich eine If-Anweisung einbauen, die unterscheidet, ob es sich beim anzuzeigenden Beitrag um eine "Seite" oder einen Blog-Beitrag handelt und die bei der Seite dann nur die Titelzeile (oben der erste Absatz des Codes) zeigt.
Leider habe ich keine Ahnung von php. Kann mir da jemand weiterhelfen?