Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <?php if(is_home()){
- <div class="post">
- <?php the_content(); ?>
- </div>
- } else {
- <div class="post">
- <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
- <a href="<?php the_permalink(); ?>">
- <img src="<?php $thumbnail = get_post_custom_values('thumbnail'); echo $thumbnail[0]; ?>" alt="<?php the_title(); ?>">
- </a>
- <?php the_content('Read More'); ?>
- </div>
- }
- ?>
- <?php endwhile; else: ?>
- <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
- <?php endif; ?>
- <!-- end The Loop -->
Add Comment
Please, Sign In to add comment