Hallo, ich würde gerne die Thumbnails auf der Startseite mit den jeweiligen Beiträgen verlinken - Irgendwie bekomme ichs aber nicht hin - Kann mir da bitte einer auf die Sprünge helfen... Nachfolgend der Text der content.php
Schonmal vielen Dank für Eure Hilfe!
PHP
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php
if ( is_single() ) :
the_title( '<h2 class="title">', '</h2>' );
else :
the_title( '<h2 class="title"><a href="' . esc_url( get_permalink() ) . '">', '</a></h2>' );
endif;
?>
<p class="post-date"><?php the_time( get_option( 'date_format' ) ); ?></p>
</header>
<?php if ( is_single() ) : ?>
<div class="post-content">
<?php else : ?>
<div class="post-content auto-columns">
<?php endif; ?>
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
the_content( 'Continue Reading', false, 'template1' );
?>
</div>
<footer>
<?php wp_link_pages(); ?>
<?php comments_popup_link( 'Comment' , '1 Comment', '% Comments', 'comments-button button' );
?>
<p class="post-info">von <?php the_author_link(); ?> <?php edit_post_link( __( '[Edit]', 'template1' ) ); ?><br />
<?php the_tags( '<span class="post-tags">' . __( 'Tags:', 'template1 ) . '</span> ', ', ' ); ?></p>
</footer>
</article>
Alles anzeigen