Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="featbox">
- <h3 class="sidetitl">Últimas</h3>
- <div class="featlist ">
- <?php
- $my_query = new WP_Query('category_name=Brasil&orderby=date&showposts=5');
- while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
- ?>
- <div class="fblock">
- <?
- $i_id = get_post_thumbnail_id();
- $i_url = wp_get_attachment_image_src($i_id,'clyp_slider');
- $i_url = $i_url[0];
- $d = $i_url;
- ?>
- <a>"><? if(!empty($d)){?>
- <img class="phumb" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=60&w=80&zc=1" alt=""/><? } else { ?>
- <img class="phumb" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=http://localhost/amanchete/wp-content/themes/Calypso/images/acompanhe.jpg&h=60&w=80&zc=1" alt=""/> <? }?></a>
- <h3><a>" title="<?php the_title(); ?>"><?php echo substr($post->post_title,0,20); ?></a></h3>
- <p> <?php the_content_rss('', TRUE, '', 10); ?> </p>
- </div>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement