Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header() ?>
- <?php $removeDuplicates = array(); ?>
- <div id="cntt">
- <?php $cnt_args=array(
- 'cat' => 27,
- 'posts_per_page' => 1);
- $regQueen = new WP_Query($cnt_args);
- while ( $regQueen->have_posts() ) : $regQueen->the_post(); ?>
- <h1><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
- <?php the_content('Continue ...');
- $removeDuplicates[] = get_the_ID();
- endwhile;
- wp_reset_query(); ?>
- </div>
- <div id="risi">
- <h2>Images</h2>
- <?php $img_args=array(
- 'cat'=> -27,
- 'post__not_in' => $removeDuplicates,
- 'posts_per_page' => -1,
- );
- $imageQueen = new WP_Query($img_args);
- $counter = 0;
- while ( $imageQueen->have_posts() && $counter < 6 ) : $imageQueen->the_post();
- if( has_post_thumbnail() ) : ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
- <?php echo get_the_post_thumbnail($thumbnail->ID, 'thumbnail') ?>
- </a>
- <?php $removeDuplicates[] = get_the_ID();
- $counter++;
- endif;
- endwhile;
- wp_reset_query(); ?>
- </div>
- <div id="lesi">
- <h2><?php echo date(" F d");?></h2>
- <?php get_search_form(); ?>
- <?php $oth_args=array(
- 'post__not_in' => $removeDuplicates,
- 'posts_per_page' => 10,
- );
- $otherQueen = new WP_Query($oth_args);
- while ( $otherQueen->have_posts() ) : $otherQueen->the_post();
- <h4><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
- endwhile;
- wp_reset_query(); ?>
- </div>
- <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement