예제 #1
0
if (have_posts()) {
    ?>
      <h5 class="archive-description">Confira abaixo todos os posts relacionados a categoria selecionada.</h5>
      
      <?php 
    while (have_posts()) {
        the_post();
        ?>
        <div class="result <?php 
        if ($cor = !$cor) {
            print "alter";
        }
        ?>
">
          <?php 
        the_thumb('thumbnail', 'class="alignleft" width="75" height="75"');
        ?>
          <p class="archive-published">Publicado em <?php 
        the_date('d/m/Y');
        ?>
</p>
          <h2><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
예제 #2
0
        ?>
" /></a>
						</div>
						<?php 
    } else {
        ?>
						<div class="home_recent_thumb">
							<a href="<?php 
        the_permalink();
        ?>
" rel="bookmark" title="Permanent Link to <?php 
        the_title();
        ?>
"><?php 
        if (function_exists('the_thumb')) {
            the_thumb('altappend=recent_&subfolder=recent&width=48&height=48&keepratio=0');
        }
        ?>
</a>
						</div>
						<?php 
    }
    ?>
	
						
						<div class="home_recent_title" id="post-<?php 
    the_ID();
    ?>
">
							<a href="<?php 
    the_permalink();
예제 #3
0
    ?>
                       <li> <div <?php 
    post_class();
    ?>
 id="post-<?php 
    the_id();
    ?>
" >
                        <a class="tool" title="<?php 
    the_title();
    ?>
" href="<?php 
    the_permalink();
    ?>
"><?php 
    the_thumb();
    ?>
</a>
                        </div></li>
                    <?php 
}
?>
                    </ul>
                </div>
        </div>
    </div>
</div>
<!--Latest Posts-->

<?php 
get_footer();
예제 #4
0
        <?php 
        while ($highlights->have_posts()) {
            $highlights->the_post();
            ?>
          <?php 
            array_push($useds, $post->ID);
            ?>
          <div>
            <a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
"><?php 
            the_thumb('thumbnail');
            ?>
</a>
            <h2 class="post-title"><a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
"><?php 
            the_title();
            ?>
</a></h2>
            <div class="info">
              <?php 
            _e('Published', 'painter');
예제 #5
0
$programs = new WP_Query('cat=8');
?>
	<?php 
if ($programs->have_posts()) {
    ?>
		<div id="programs">
			<h2>Programas</h2>
			<div id="programs-content">
				<div id="programs-cycle">
					<?php 
    while ($programs->have_posts()) {
        $programs->the_post();
        ?>
						<div>
							<?php 
        the_thumb('medium');
        ?>
				<div class="detalhesProgram"><?php 
        the_content();
        ?>
</div>
						</div>
					<?php 
    }
    ?>
				</div>
				<div id="programs-navigator"></div>
			</div>
		</div>
	<?php 
}