where and how to put in that magic snippet?
-
I tried the following:
<?php if( have_posts() ) : ?> <?php while( have_posts() ) : the_post(); ?> <?php get_template_part( 'loop-header' ); ?> <?php responsive_entry_before(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php responsive_entry_top(); ?> <?php get_template_part( 'post-meta-page' ); ?> <div class="post-entry"> <?php the_content( __( 'Read more ›', 'responsive' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="pagination">' . __( 'Pages:', 'responsive' ), 'after' => '</div>' ) ); ?> <?php $id = get_the_ID(); ?> <a href="<?php echo wp_get_attachment_url($id); ?>"> <?php echo get_the_post_thumbnail($id); ?> </a> </div> <!-- end of .post-entry -->
but that does nothing. if i select attachment-page as link-target, it still shows the jpg-file ??
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘where and how to put in that magic snippet?’ is closed to new replies.