Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $posts = get_posts('numberposts=2&offset=0&cat=19'); foreach ($posts as $post) : start_wp(); ?>
- <?php static $count1 = 0; if ($count1 == "2") { break; } else { ?>
- <div class="homeresources">
- <?php
- $terms = get_the_terms($post->ID, 'resources');
- echo '';
- foreach ($terms as $taxindex => $taxitem) {
- echo '<h3>' . $taxitem->name . ':</h3>';
- }
- echo ''
- ?>
- <a class="homeresourcestext" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
- <?php the_title(); ?>
- </a>
- <a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
- <?php the_post_thumbnail(); ?>
- </a>
- </div>
- <?php $count1++; } ?>
- <?php endforeach; ?>
- <?php $posts = get_posts('numberposts=1&offset=2&cat=19'); foreach ($posts as $post) : start_wp(); ?>
- <?php static $count2 = 0; if ($count2 == "1") { break; } else { ?>
- <div class="homeresources3">
- <?php
- $terms = get_the_terms($post->ID, 'resources');
- echo '';
- foreach ($terms as $taxindex => $taxitem) {
- echo '<h3>' . $taxitem->name . ':</h3>';
- }
- echo ''
- ?>
- <a class="homeresourcestext" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
- <?php the_title(); ?>
- </a>
- </span>
- <a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
- <?php the_post_thumbnail(); ?>
- </a>
- </div>
- <?php $count2++; } ?>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement