Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- get_header();
- ?>
- <div id="movie_section">
- <?
- $counter = 0;
- if( have_posts() ) : while( have_posts() ) : the_post();
- if( $counter == 0 ):
- ?>
- <ul class="movie_row">
- <? endif;
- $extraclasses = $counter == 0 ? 'movie_row_item first' : 'movie_row_item';
- ?>
- <li id="post-<? the_ID(); ?>" <? post_class($extraclasses); ?>>
- <?
- $thumbid = get_post_meta( $post->ID, 'thumbnail_id', true );
- //$headerid = get_post_meta( $post->ID, 'header_id', true );
- //the_excerpt();
- if( $thumbid ) :?>
- <img src="<? echo wp_get_attachment_url( $thumbid, true ); ?>" alt="" />
- <? endif; ?>
- <? if( $headerid ) :?>
- <img src="<? echo wp_get_attachment_url( $headerid, true ); ?>" alt="" />
- <? endif; ?>
- </li> <!-- End Post -->
- <? if( $counter == 0 ) : ?>
- <?
- endif;
- if( $counter == 3 ){?>
- </ul> <!-- End Movie Row -->
- <?$counter = 0;
- }
- else{
- $counter++;
- }
- ?>
- <?
- endwhile;
- endif;?>
- </div> <!-- End Movie Section -->
- <?
- get_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement