Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $my_query = new WP_Query('category_name=news&posts_per_page=1');
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID;?>
- <div id="featured-post" class="three columns">
- <a class="thumb-shadow" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail('home-thumb', array("class" => "picture shadow")); } ?></a>
- <h4>What's New?</h4>
- <h5><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
- <?php endwhile; wp_reset_postdata(); // End the loop ?>
- </div>
- <?php $my_query = new WP_Query('category_name=children&posts_per_page=1');
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID;?>
- <div id="featured-post" class="three columns">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail('home-thumb', array("class" => "picture shadow")); } ?></a>
- <h4>Children</h4>
- <h5><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
- <?php endwhile; wp_reset_postdata(); // End the loop ?>
- </div>
- <?php $my_query = new WP_Query('category_name=genealogy&posts_per_page=1');
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID;?>
- <div id="featured-post" class="three columns">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail('home-thumb', array("class" => "picture shadow")); } ?></a>
- <h4>Genealogy</h4>
- <h5><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
- <?php endwhile; wp_reset_postdata(); // End the loop ?>
- </div>
- <?php $my_query = new WP_Query('category_name=events&posts_per_page=1');
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID;?>
- <div id="featured-post" class="three columns">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail('home-thumb', array("class" => "picture shadow")); } ?></a>
- <h4>Events</h4>
- <h5><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
- <?php endwhile; wp_reset_postdata(); // End the loop ?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement