Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="front-columns">
- <div id="column1"><!-- EDIT CATEGORIES INTO HERE -->
- Events
- <?php
- wp_reset_query();
- global $post;
- $mypost1 = get_posts('numberposts=1&category=4');
- foreach($mypost1 as $post) :
- $mypost1img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
- ?>
- <a href="<?php echo the_permalink(); ?>"> <div class="column-image" ><img src="<? echo $mypost1img[0]; ?>" id="column1" alt="" /> </div> <h3><?php the_title(); ?></h3> </a><div class="column-text"><?php /* echo $mantra_columntext1 */ ?>
- <?php
- endforeach;
- wp_reset_query();
- $myposts1 = get_posts('numberposts=5&offset=1&category=4');
- foreach($myposts1 as $post) :
- ?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php endforeach; ?>
- </div>
- <?php if($mantra_columnreadmore) {?> <div class="columnmore"> <a href="http://www.newhuntsville.com/?cat=4"><?php/* echo $mantra_columnreadmore */?>»</a> </div><?php } ?>
- <? wp_reset_query(); ?>
- </div>
- <div id="column2">
- Music
- <?php
- global $post;
- $mypost2 = get_posts('numberposts=1&category=10');
- foreach($mypost2 as $post) :
- $mypost2img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
- ?>
- <a href="<?php echo the_permalink(); ?>"> <div class="column-image" ><img src="<? echo $mypost2img[0]; ?>" id="column2" alt="" /> </div> <h3><?php the_title(); ?></h3> </a><div class="column-text"><?php /*echo $mantra_columntext2 */?>
- <?php
- endforeach;
- wp_reset_query();
- $myposts2 = get_posts('numberposts=5&offset=1&category=10');
- foreach($myposts2 as $post) :
- ?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php endforeach; ?>
- </div>
- <?php if($mantra_columnreadmore) {?> <div class="columnmore"> <a href="http://www.newhuntsville.com/?cat=10"><?php/* echo $mantra_columnreadmore */?>»</a> </div><?php } ?>
- <? wp_reset_query(); ?>
- </div>
- <?php if($mantra_nrcolumns != '2') { ?>
- <div id="column3">
- Eat and Drink
- <?php
- global $post;
- $mypost3 = get_posts('numberposts=1&category=3');
- foreach($mypost3 as $post) :
- $mypost3img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
- ?>
- <a href="<?php echo the_permalink(); ?>"> <div class="column-image" ><img src="<? echo $mypost3img[0]; ?>" id="column3" alt="" /> </div> <h3><?php the_title(); ?></h3> </a><div class="column-text"><?php echo $mantra_columntext3 ?></div>
- <?php endforeach;
- wp_reset_query();
- $myposts3 = get_posts('numberposts=5&offset=1&category=3');
- foreach($myposts3 as $post) :
- ?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php endforeach; ?>
- <?php if($mantra_columnreadmore) {?> <div class="columnmore"> <a href="http://www.newhuntsville.com/?cat=3"><?php /*echo $mantra_columnreadmore*/ ?>»</a> </div><?php } ?>
- <? wp_reset_query(); ?>
- </div>
- <?php if($mantra_nrcolumns == '4') { ?>
- <div id="column4">
- Site News
- <?php
- global $post;
- $mypost4 = get_posts('numberposts=1&category=14');
- foreach($mypost4 as $post) :
- $mypost4img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
- ?>
- <a href="<?php echo the_permalink(); ?>"> <div class="column-image" ><img src="<? echo $mypost4img[0]; ?>" id="column4" alt="" /> </div> <h3><?php the_title(); ?></h3> </a><div class="column-text"><?php echo $mantra_columntext4 ?></div>
- <?php endforeach;
- wp_reset_query();
- $myposts4 = get_posts('numberposts=5&offset=1&category=14');
- foreach($myposts4 as $post) :
- ?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php endforeach; ?>
- <?php if($mantra_columnreadmore) {?> <div class="columnmore"> <a href="http://www.newhuntsville.com/?cat=14"><?php /*echo $mantra_columnreadmore*/ ?>»</a> </div><?php } ?>
- <? wp_reset_query(); ?>
- </div>
- <?php } } ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment